Browse Source

sitemap css and raw html allowed in markdown

master
Marcell Mars 2 years ago
parent
commit
d1fb1e2fb9
  1. 6
      _vendor/git.sandpoints.org/Drawwell/SandpointsTheme/customizations/Dotawo/assets/css/site.css
  2. 2
      _vendor/git.sandpoints.org/Drawwell/SandpointsTheme/customizations/Dotawo/static/css/site.min.css
  3. 29
      _vendor/git.sandpoints.org/Drawwell/SandpointsTheme/layouts/_default/list.html
  4. 2
      _vendor/modules.txt
  5. 5
      config.toml

6
_vendor/git.sandpoints.org/Drawwell/SandpointsTheme/customizations/Dotawo/assets/css/site.css generated vendored

@ -615,6 +615,10 @@ details {
padding-right: 1rem;
}
.sitemap {
padding-left: 3rem;
}
@media (max-width: 767px) {
html {
box-sizing: border-box;
@ -658,4 +662,4 @@ details {
.sessiongrid {
display: none;
}
}
}

2
_vendor/git.sandpoints.org/Drawwell/SandpointsTheme/customizations/Dotawo/static/css/site.min.css generated vendored

File diff suppressed because one or more lines are too long

29
_vendor/git.sandpoints.org/Drawwell/SandpointsTheme/layouts/_default/list.html generated vendored

@ -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 }}

2
_vendor/modules.txt vendored

@ -1 +1 @@
# git.sandpoints.org/Drawwell/SandpointsTheme v0.0.0-20201211005413-95fbcba77ebb
# git.sandpoints.org/Drawwell/SandpointsTheme v0.0.0-20201213012726-0f455e09d8b4

5
config.toml

@ -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…
Cancel
Save