changed tags templates, tags logic, and config links
This commit is contained in:
@@ -9,15 +9,12 @@
|
||||
{{ template "_internal/disqus.html" . }}
|
||||
|
||||
<div class="page-footer">
|
||||
{{ $taxonomy := "tags" }}
|
||||
{{ with .Param $taxonomy }}
|
||||
<hr class="footer-divider">
|
||||
{{ range $index, $tag := . }}
|
||||
{{ with $.Site.GetPage (printf "/%s/%s" $taxonomy $tag) }}
|
||||
<a class="tag" href="{{ .Permalink }}">#{{ $tag | urlize }}</a>
|
||||
{{if .Params.tags}}
|
||||
{{ range .Params.tags }}
|
||||
<a class="tag" href="/tags/{{ . | urlize }}">#{{.}}</a>
|
||||
{{ end }}
|
||||
{{ end }}
|
||||
{{ end }}
|
||||
{{ end }}
|
||||
</div>
|
||||
|
||||
{{end}}
|
11
layouts/_default/terms.html
Normal file
11
layouts/_default/terms.html
Normal file
@@ -0,0 +1,11 @@
|
||||
{{ define "main" }}
|
||||
<!-- Shows all of the site's tags -->
|
||||
<h1>Tags</h1>
|
||||
<ul>
|
||||
{{ range .Data.Terms.Alphabetical }}
|
||||
<li><a href="{{ .Page.Permalink }}">{{ .Page.Title }}</a> {{ .Count }}</li>
|
||||
{{ end }}
|
||||
</ul>
|
||||
|
||||
<div class="page-footer"></div>
|
||||
{{end}}
|
Reference in New Issue
Block a user