diff options
Diffstat (limited to 'layouts/_partials')
| -rw-r--r-- | layouts/_partials/list-pages.html | 16 | ||||
| -rw-r--r-- | layouts/_partials/list-terms.html | 5 |
2 files changed, 21 insertions, 0 deletions
diff --git a/layouts/_partials/list-pages.html b/layouts/_partials/list-pages.html new file mode 100644 index 0000000..6ad1411 --- /dev/null +++ b/layouts/_partials/list-pages.html @@ -0,0 +1,16 @@ +<ul>{{ range .Pages.ByDate }} + {{ $aboutCheck := eq ( eq $.Section "about" ) ( eq .Section "about" ) }} + {{ if and ( isset .Params "title" ) $aboutCheck }} + <li class="pages-iter-item" + {{ with merge .Site.Params .Params }} + {{ if .accentColorCheck }} + style="--instance-hue: {{ .accentHue }};" + {{ else if .themeColorCheck }} + style="--instance-hue: {{ .themeHue }};" + {{ end }} + {{ end }} + ><a href="{{ .RelPermalink }}">{{ .Title }}</a> + </li> + {{ end }} +{{ end }}</ul> + diff --git a/layouts/_partials/list-terms.html b/layouts/_partials/list-terms.html new file mode 100644 index 0000000..10bc437 --- /dev/null +++ b/layouts/_partials/list-terms.html @@ -0,0 +1,5 @@ +<ul>{{ range .Data.Terms }} + <li> + <a href="{{ .Page.RelPermalink }}">{{ .Page.LinkTitle }}</a> + </li> +{{ end }}</ul> |