Compare commits

...

3 Commits

Author SHA1 Message Date
la Fleur a8217f6241 scope with links to parents 2020-11-16 17:50:05 +01:00
la Fleur 008cf21abf add scope partial 2020-11-16 14:56:39 +01:00
la Fleur 725478234e display list before content in list view 2020-11-16 14:56:20 +01:00
4 changed files with 13 additions and 7 deletions

View File

@ -10,7 +10,7 @@ a {
}
a.exposed, span.exposed {
font-weight: bold;
font-size: 1.3em;
font-size: 1.1em;
}
a:visited {
}

View File

@ -1,10 +1,5 @@
{{ define "main" }}
<main>
{{ with .Content }}
<section>
{{ . }}
</section>
{{ end }}
<ul>
{{ range .Pages }}
<li>
@ -12,5 +7,10 @@
</li>
{{ end }}
</ul>
{{ with .Content }}
<section>
{{ . }}
</section>
{{ end }}
</main>
{{ end }}

View File

@ -20,7 +20,7 @@
{{ range $.Site.Sections }}
{{ if eq $currentPage.Section .Section }}
<span class="exposed">
{{ .Title | markdownify }}
{{ partial "scope.html" $currentPage }}
</span>
{{ else }}
<a href="{{ .Permalink }}">

View File

@ -0,0 +1,6 @@
{{- if .Parent.IsHome -}}
<a href="{{ .RelPermalink }}">{{ .Title }}</a>
{{- else -}}
{{- partial "scope.html" .Parent }}
> <a href="{{ .RelPermalink }}">{{ .Title }}</a>
{{- end -}}