diff options
Diffstat (limited to 'layouts')
| -rw-r--r-- | layouts/_default/baseof.html | 26 | ||||
| -rw-r--r-- | layouts/partials/footer.html | 13 | ||||
| -rw-r--r-- | layouts/shortcodes/mail.html | 9 |
3 files changed, 29 insertions, 19 deletions
diff --git a/layouts/_default/baseof.html b/layouts/_default/baseof.html index a299bc0..6a1b6ff 100644 --- a/layouts/_default/baseof.html +++ b/layouts/_default/baseof.html @@ -19,18 +19,32 @@ <main> <header><h1>{{ with .Params.icon }}<img src="/pix/{{ . }}" class=titleicon>{{ end }}{{ .Title }}</h1></header> <article>{{ with .Params.img }}<img src="/pix/{{ . }}" class=titleimg>{{ end }} -{{ block "main" . }} +{{ block "main" . -}} {{ .Content }} -{{ end }} -{{ if .Param "nextprev" }}{{ partial "nextprev.html" . -}}{{ end -}} -{{ if .Param "taglist" }}{{ partial "taglist.html" . }}{{ end -}} +{{- end -}} </article> +{{- if in .Params.tags "basic" -}} +{{ with .NextInSection }} +<a class=next href="{{ .RelPermalink }}">Next: {{ .Title }}</a> +{{- end }} +{{- with .PrevInSection }} +<span class=prev>Or Previous: <a href="{{ .RelPermalink }}">{{ .Title }}</a></span> +{{- end -}} +{{- end }} +{{ if in .Params.tags "mail" -}} +{{ with .NextInSection -}} +<a class=next href="{{ .RelPermalink }}">Next: {{ .Title }}</a> +{{- end -}} +{{- with .PrevInSection }} +<span class=prev>Or Previous: <a href="{{ .RelPermalink }}">{{ .Title }}</a></span> +{{- end -}} +{{- end }} </main> -{{ block "footer" . }} +{{ block "footer" . -}} <footer> <a href="{{ .Site.BaseURL }}">{{ .Site.BaseURL }}</a> {{- if .Param "showrss" }}<br><br><a href="/index.xml"><img src="/rss.svg" style="max-height:1.5em" alt="RSS Feed" title="Subscribe via RSS for updates."></a>{{ end }} </footer> -{{ end }} +{{- end }} </body> </html> diff --git a/layouts/partials/footer.html b/layouts/partials/footer.html deleted file mode 100644 index 7742c7e..0000000 --- a/layouts/partials/footer.html +++ /dev/null @@ -1,13 +0,0 @@ - {{ if in .Params.tags "basic" }} - {{ with .NextInSection }} - <a class=next href="{{ .RelPermalink }}">Next: {{ .Title }}</a> - {{ end }} - {{ with .PrevInSection }} - <span class=prev>Or Previous: <a href="{{ .RelPermalink }}">{{ .Title }}</a></span> - {{ end }} - - {{ end }} - </main> - <footer><a href="{{ .Site.BaseURL }}">{{ .Site.BaseURL }}</a></footer> -</body> -</html> diff --git a/layouts/shortcodes/mail.html b/layouts/shortcodes/mail.html new file mode 100644 index 0000000..53cc3b9 --- /dev/null +++ b/layouts/shortcodes/mail.html @@ -0,0 +1,9 @@ +<ol class=ll> +{{range.Site.RegularPages.ByWeight.Reverse}}{{ if in .Params.tags "mail" }}<li> +<a href="{{.Permalink}}"> +{{ with .Params.icon }}<img src="pix/{{ . }}">{{ end }} +<span class=title>{{.Title}}</span> +{{ with .Params.short_desc }}<span class=desc>{{ . }}</span>{{ end }}</a><span style="display:none">{{.Params.Tags}}</span> +</li>{{ end }}{{ end }} +</ol> + |
