<title>{{ if .IsHome }}{{ site.Title }}{{ else }}{{ printf "%s | %s" .Title site.Title }}{{ end }}</title>
{{ partialCached "head/css.html" . }}
{{ partialCached "head/js.html" . }}
+{{ with $ctx.style }}
<style>
-{{ partialCached "head/terms.css" . | safeCSS }}
+ {{ partial . $style | safeCSS }}
</style>
+{{ end }}
+++ /dev/null
-{{- define "main" }}
-
-{{- if .Title }}
-<header class="page-header">
- <h1>{{ .Title }}</h1>
- {{- if .Description }}
- <div class="post-description">
- {{ .Description }}
- </div>
- {{- end }}
-</header>
-{{- end }}
-
-<ul class="terms-tags">
- {{- $type := .Type }}
- {{- range $key, $value := .Data.Terms.Alphabetical }}
- {{- $name := .Name }}
- {{- $count := .Count }}
- {{- with site.GetPage (printf "/%s/%s" $type $name) }}
- <li>
- <a href="{{ .Permalink }}">{{ .Name }} <sup><strong><sup>{{ $count }}</sup></strong></sup> </a>
- </li>
- {{- end }}
- {{- end }}
-</ul>
-
-{{- end }}{{/* end main */ -}}
+++ /dev/null
-{{- define "main" }}
-
-{{- if .Title }}
-<header class="page-header">
- <h1>{{ .Title }}</h1>
- {{- if .Description }}
- <div class="post-description">
- {{ .Description }}
- </div>
- {{- end }}
-</header>
-{{- end }}
-
-<ul class="terms-tags">
- {{- $type := .Type }}
- {{- range $key, $value := .Data.Terms.Alphabetical }}
- {{- $name := .Name }}
- {{- $count := .Count }}
- {{- with site.GetPage (printf "/%s/%s" $type $name) }}
- <li>
- <a href="{{ .Permalink }}">{{ .Name }} <sup><strong><sup>{{ $count }}</sup></strong></sup> </a>
- </li>
- {{- end }}
- {{- end }}
-</ul>
-
-{{- end }}{{/* end main */ -}}
--- /dev/null
+{{- define "main" }}
+
+{{ if not .Params.style }}
+ {{ $ctx = merge . (dict "style" "head/terms.css") }}
+{{ end }}
+
+{{- if .Title }}
+<header class="page-header">
+ <h1>{{ .Title }}</h1>
+ {{- if .Description }}
+ <div class="post-description">
+ {{ .Description }}
+ </div>
+ {{- end }}
+</header>
+{{- end }}
+
+<ul class="terms-tags">
+ {{- $type := .Type }}
+ {{- range $key, $value := .Data.Terms.Alphabetical }}
+ {{- $name := .Name }}
+ {{- $count := .Count }}
+ {{- with site.GetPage (printf "/%s/%s" $type $name) }}
+ <li>
+ <a href="{{ .Permalink }}">{{ .Name }} <sup><strong><sup>{{ $count }}</sup></strong></sup> </a>
+ </li>
+ {{- end }}
+ {{- end }}
+</ul>
+
+{{- end }}{{/* end main */ -}}