Add "complexity" taxonomy for recipes blog and button

pull/8/head
earnest ma 7 months ago
parent 914ed8ee07
commit eac4b28745
Signed by: earnest ma
GPG Key ID: A343F43342EB6E2A
  1. 2
      layouts/recipes/single.html

@ -7,6 +7,7 @@
<i>(<b>updated</b> {{ dateFormat "2006-01-02" .Lastmod.Local }})</i>
{{ end }}{{ end }}</li>
<li>Tags: {{ range (.GetTerms "tags") }}<a href="{{ .Permalink }}">#{{ .LinkTitle }}</a> {{ end }}</li>
<li>Complexity: {{ range (.GetTerms "complexity") }}<a href="{{ .Permalink }}">{{ .LinkTitle }}</a> {{ end }}</li>
{{ if .Params.source }}<li><a href="{{ .Params.source }}">🔗Source link</a>{{ if .Params.sourceAuthor }}: {{ .Params.sourceAuthor }}{{ end }}</li>{{ end }}
</ul>
@ -27,6 +28,7 @@ Comments will not be loaded: at <code>localhost</code>.
<div align="center">
{{ with .PrevInSection }}<a href="{{ .Permalink }}"><button>Previous post</button></a>{{ end }}
<a href="/recipes"><button>Back to list</button></a>
{{ with .NextInSection }}<a href="{{ .Permalink }}"><button>Next post</button></a>{{ end }}
</div>
{{ end }}

Loading…
Cancel
Save