Configure tag and post lists.
This commit is contained in:
parent
81f519d010
commit
8e70f7739e
3
content/blog/_index.md
Normal file
3
content/blog/_index.md
Normal file
|
@ -0,0 +1,3 @@
|
|||
---
|
||||
title: "Posts"
|
||||
---
|
|
@ -0,0 +1,9 @@
|
|||
{{ define "main" }}
|
||||
<h2>{{ .Title }}</h2>
|
||||
|
||||
<ul>
|
||||
{{ range .Pages }}
|
||||
<li><a href="{{ .Permalink }}">{{ .Title }}</a></li>
|
||||
{{ end }}
|
||||
</ul>
|
||||
{{ end }}
|
|
@ -7,6 +7,6 @@
|
|||
<a href="https://github.com/DanilaFe">GitHub</a>
|
||||
<a href="/about">About</a>
|
||||
<a href="/tags">Tags</a>
|
||||
<a href="/archive">Archive</a>
|
||||
<a href="/blog">All Posts</a>
|
||||
</div>
|
||||
</nav>
|
||||
|
|
9
themes/vanilla/layouts/tags/list.html
Normal file
9
themes/vanilla/layouts/tags/list.html
Normal file
|
@ -0,0 +1,9 @@
|
|||
{{ define "main" }}
|
||||
<h2>Tagged "{{ .Title }}"</h2>
|
||||
|
||||
<ul>
|
||||
{{ range .Pages }}
|
||||
<li><a href="{{ .Permalink }}">{{ .Title }}</a></li>
|
||||
{{ end }}
|
||||
</ul>
|
||||
{{ end }}
|
10
themes/vanilla/layouts/tags/term.html
Normal file
10
themes/vanilla/layouts/tags/term.html
Normal file
|
@ -0,0 +1,10 @@
|
|||
{{ define "main" }}
|
||||
<h2>{{ .Title }}</h2>
|
||||
{{ .Content }}
|
||||
|
||||
<ul>
|
||||
{{ range .Pages }}
|
||||
<li><a href="{{ .Permalink }}">{{ .Title }}</a></li>
|
||||
{{ end }}
|
||||
</ul>
|
||||
{{ end }}
|
10
themes/vanilla/layouts/tags/terms.html
Normal file
10
themes/vanilla/layouts/tags/terms.html
Normal file
|
@ -0,0 +1,10 @@
|
|||
{{ define "main" }}
|
||||
<h2>{{ .Title }}</h2>
|
||||
Below is a list of all the tags ever used on this site.
|
||||
|
||||
<ul>
|
||||
{{ range .Pages }}
|
||||
<li><a href="{{ .Permalink }}">{{ .Title }}</a></li>
|
||||
{{ end }}
|
||||
</ul>
|
||||
{{ end }}
|
Loading…
Reference in New Issue
Block a user