added tags to home page

master
Adam Veldhousen 4 years ago
parent 25b71d5fd6
commit 2b95b42eb6
Signed by: adam
GPG Key ID: 6DB29003C6DD1E4B

@ -9,6 +9,7 @@
</h2>
<div class="post-content">
{{ partial "tags.html" . }}
<p>{{ .Summary | plainify | safeHTML }} {{ if .Truncated }} … {{ end }}</p>
</div>

@ -3,15 +3,7 @@
<h1 class="title"><a href="{{ .Permalink }}">{{ .Title }}</a> {{ if .Draft }}(Draft){{ end }}</h1>
<p class="meta">
<span class="postdate">Posted {{ .Date.Format "January 02 2006" }}</span><br/>
{{ $taxo := "tags" }} <!-- Use the plural form here -->
<ul id="{{ $taxo }}" >
{{ range .Param $taxo }}
{{ $name := . }}
{{ with $.Site.GetPage (printf "/%s/%s" $taxo ($name | urlize)) }}
<li><a href="{{ .Permalink }}">{{ $name }}</a></li>
{{ end }}
{{ end }}
</ul>
{{ partial "tags.html" . }}
</p>
<div class="post-content">{{ .Content | safeHTML }}</div>

@ -1,9 +1,8 @@
<div id="partial-footer">
<p class="copyright">
&copy; 2019 - {{ now.Format "2006"}} Adam Veldhousen.
<a href="https://creativecommons.org/licenses/by/3.0/" title="Creative Commons Attribution">
Some rights reserved
</a>. Powered by <a href="https://vdhsn.com">Hugo</a>.
<a href="https://creativecommons.org/licenses/by/3.0/" title="Creative Commons Attribution">Some rights reserved</a>.
Powered by <a href="https://vdhsn.com">Hugo</a>.
</p>
</div>
<script type="text/javascript">

@ -0,0 +1,9 @@
{{ $taxo := "tags" }} <!-- Use the plural form here -->
<ul id="{{ $taxo }}" >
{{ range .Param $taxo }}
{{ $name := . }}
{{ with $.Site.GetPage (printf "/%s/%s" $taxo ($name | urlize)) }}
<li><a href="{{ .Permalink }}">{{ $name }}</a></li>
{{ end }}
{{ end }}
</ul>
Loading…
Cancel
Save