Configure tag and post lists.

This commit is contained in:
Danila Fedorin 2019-08-02 22:29:26 -07:00
parent 81f519d010
commit 8e70f7739e
6 changed files with 42 additions and 1 deletions

3
content/blog/_index.md Normal file
View File

@ -0,0 +1,3 @@
---
title: "Posts"
---

View File

@ -0,0 +1,9 @@
{{ define "main" }}
<h2>{{ .Title }}</h2>
<ul>
{{ range .Pages }}
<li><a href="{{ .Permalink }}">{{ .Title }}</a></li>
{{ end }}
</ul>
{{ end }}

View File

@ -7,6 +7,6 @@
<a href="https://github.com/DanilaFe">GitHub</a> <a href="https://github.com/DanilaFe">GitHub</a>
<a href="/about">About</a> <a href="/about">About</a>
<a href="/tags">Tags</a> <a href="/tags">Tags</a>
<a href="/archive">Archive</a> <a href="/blog">All Posts</a>
</div> </div>
</nav> </nav>

View File

@ -0,0 +1,9 @@
{{ define "main" }}
<h2>Tagged "{{ .Title }}"</h2>
<ul>
{{ range .Pages }}
<li><a href="{{ .Permalink }}">{{ .Title }}</a></li>
{{ end }}
</ul>
{{ end }}

View File

@ -0,0 +1,10 @@
{{ define "main" }}
<h2>{{ .Title }}</h2>
{{ .Content }}
<ul>
{{ range .Pages }}
<li><a href="{{ .Permalink }}">{{ .Title }}</a></li>
{{ end }}
</ul>
{{ end }}

View 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 }}