sitemap css and raw html allowed in markdown
This commit is contained in:
parent
43467bcb43
commit
d1fb1e2fb9
|
@ -615,6 +615,10 @@ details {
|
|||
padding-right: 1rem;
|
||||
}
|
||||
|
||||
.sitemap {
|
||||
padding-left: 3rem;
|
||||
}
|
||||
|
||||
@media (max-width: 767px) {
|
||||
html {
|
||||
box-sizing: border-box;
|
||||
|
|
File diff suppressed because one or more lines are too long
|
@ -1,3 +1,26 @@
|
|||
<ul>
|
||||
<li>{{ .Title }}</li>
|
||||
</ul>
|
||||
{{ define "singlebody" }}
|
||||
<div class="coretitle"><span class="supt">Sitemap⁄{{ substr $.Site.Title 0 1 }}</span>{{ substr $.Site.Title 1 }}</div>
|
||||
{{ $s := partialCached "scratch.html" . }}
|
||||
{{ $noTriad := (slice) }}
|
||||
{{ range $p := .Site.RegularPages }}
|
||||
{{ $scratch := $s.Get (printf "/%s" $p.File) }}
|
||||
{{ if eq $scratch.depth "core" }}
|
||||
<div class="sitemap"><a href="{{- $p.RelPermalink -}}{{- if eq hugo.Environment "offline" -}}index.html{{- end -}}"{{- with $p.Title}} title="{{- $p.Title -}}"{{- end -}}><span class="sup">{{- substr $p.File.Dir 0 -1 -}}⁄</span>{{- $p.Title -}}</a>
|
||||
{{ range $coreKid := $scratch.has_children }}
|
||||
<div class="sitemap"><a href="{{- $coreKid.RelPermalink -}}{{- if eq hugo.Environment "offline" -}}index.html{{- end -}}"{{- with $coreKid.Title}} title="{{- $coreKid.Title -}}"{{- end -}}><span class="sup">{{- substr $coreKid.File.Dir 0 -1 -}}⁄</span>{{- $coreKid.Title -}}</a>
|
||||
{{ $scratchCKid := $s.Get (printf "/%s" $coreKid.File) }}
|
||||
{{ range $mantleKid := $scratchCKid.has_children }}
|
||||
<div class="sitemap"><a href="{{- $mantleKid.RelPermalink -}}{{- if eq hugo.Environment "offline" -}}index.html{{- end -}}"{{- with $mantleKid.Title}} title="{{- $mantleKid.Title -}}"{{- end -}}><span class="sup">{{- substr $mantleKid.File.Dir 0 -1 -}}⁄</span>{{- $mantleKid.Title -}}</a></div>
|
||||
{{ end }}
|
||||
</div>
|
||||
{{ end }}
|
||||
{{ else if not (in (slice "core" "mantle" "crust") $scratch.depth)}}
|
||||
{{ $noTriad = $noTriad | append $p }}
|
||||
{{ else }}
|
||||
</div>
|
||||
{{ end }}
|
||||
{{ end }}
|
||||
{{ range $noTriad }}
|
||||
<div class="sitemap"><a href="{{- .RelPermalink -}}{{- if eq hugo.Environment "offline" -}}index.html{{- end -}}"{{- with .Title }} title="{{- . -}}"{{- end -}}><span class="sup">{{- substr .File.Dir 0 -1 -}}⁄</span>{{- .Title -}}</a></div>
|
||||
{{ end }}
|
||||
{{ end }}
|
||||
|
|
|
@ -1 +1 @@
|
|||
# git.sandpoints.org/Drawwell/SandpointsTheme v0.0.0-20201211005413-95fbcba77ebb
|
||||
# git.sandpoints.org/Drawwell/SandpointsTheme v0.0.0-20201213012726-0f455e09d8b4
|
||||
|
|
|
@ -28,6 +28,9 @@ disableKinds = ["RSS", "sitemap"]
|
|||
ordered = true
|
||||
startLevel = 1
|
||||
|
||||
[markup.goldmark.renderer]
|
||||
unsafe = true
|
||||
|
||||
[module]
|
||||
# replacements = "git.sandpoints.org/Drawwell/SandpointsTheme -> /home/m/devel/SandpointsTheme"
|
||||
[[module.imports]]
|
||||
|
@ -64,5 +67,3 @@ disableKinds = ["RSS", "sitemap"]
|
|||
[[module.imports.mounts]]
|
||||
source = "customizations/Dotawo/static/css/site.min.css"
|
||||
target = "static/css/site.min.css"
|
||||
|
||||
|
||||
|
|
Loading…
Reference in New Issue