summaryrefslogtreecommitdiff
path: root/layouts/_partials/list-pages.html
blob: 6ad1411c6426b55eb08a7387fba5238eb3d2d0ca (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
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>