mirror of
https://github.com/jackyzha0/quartz.git
synced 2026-03-24 23:15:46 -05:00
change homepage, add alltags partial
This commit is contained in:
parent
498b077cad
commit
16c25c15de
@ -13,18 +13,7 @@
|
||||
{{ i18n "last_updated" }} {{ partial "date-fmt.html" .}}
|
||||
{{ partial "github.html" . }}
|
||||
</p>
|
||||
<ul class="tags">
|
||||
{{ range (.GetTerms "tags") }}
|
||||
<li><a href="{{ .Permalink }}">
|
||||
{{if (eq $.Site.Language.Lang "en")}}
|
||||
{{ .LinkTitle | humanize }}
|
||||
{{else}}
|
||||
{{ .LinkTitle }}
|
||||
{{end}}
|
||||
</a>
|
||||
</li>
|
||||
{{ end }}
|
||||
</ul>
|
||||
{{partial "tags.html" .}}
|
||||
{{partial "toc.html" .}}
|
||||
{{partial "textprocessing.html" . }}
|
||||
</article>
|
||||
|
||||
@ -8,13 +8,14 @@
|
||||
<!-- Begin actual content -->
|
||||
{{partial "header.html" .}}
|
||||
<article>
|
||||
{{partial "toc.html" .}}
|
||||
{{partial "textprocessing.html" . }}
|
||||
{{if $.Site.Data.config.enableRecentNotes}}
|
||||
{{partial "recent.html" . }}
|
||||
{{end}}
|
||||
{{partial "toc.html" .}}
|
||||
{{partial "textprocessing.html" . }}
|
||||
{{partial "allTags.html" .}}
|
||||
{{partial "recent.html" . }}
|
||||
<!-- {{if $.Site.Data.config.enableRecentNotes}} -->
|
||||
<!-- {{end}} -->
|
||||
</article>
|
||||
{{partial "footerIndex.html" .}}
|
||||
<!-- {{partial "footerIndex.html" .}} -->
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
||||
|
||||
9
layouts/partials/allTags.html
Normal file
9
layouts/partials/allTags.html
Normal file
@ -0,0 +1,9 @@
|
||||
<h2>Topics</h2><br>
|
||||
{{range $name, $taxonomy := .Site.Taxonomies.tags}} {{ $cnt := .Count }}
|
||||
{{ with $.Site.GetPage (printf "/tags/%s" $name) }}
|
||||
<div class="tagbutton">
|
||||
<a href={{ .RelPermalink }} title="All pages with tag <i>{{$name}}</i>">{{$name}}</a>
|
||||
<sup>{{$cnt}}</sup>
|
||||
</div>
|
||||
{{end}}
|
||||
{{end}}
|
||||
5
layouts/partials/tags.html
Normal file
5
layouts/partials/tags.html
Normal file
@ -0,0 +1,5 @@
|
||||
<ul class="tags">
|
||||
{{ range (.GetTerms "tags") }}
|
||||
<li><a href="{{ .Permalink }}">{{ .LinkTitle | title}}</a></li>
|
||||
{{ end }}
|
||||
</ul>
|
||||
Loading…
Reference in New Issue
Block a user