more taxonomy changes + separate header
too eepy to write a proper commit message
This commit is contained in:
parent
90a58c28c6
commit
e46e36412d
7 changed files with 28 additions and 11 deletions
|
@ -1,9 +1,12 @@
|
|||
{{ define "main" }}
|
||||
{{ partial "header.html" }}
|
||||
<article>
|
||||
<a href="..">go up</a>
|
||||
<header>
|
||||
<h1><code>{{ .Title }}</code> – {{ .Description }}</h1>
|
||||
</header>
|
||||
{{ .Content }}
|
||||
<footer>
|
||||
{{ partial "categories.html" }}
|
||||
</footer>
|
||||
</article>
|
||||
{{ end }}
|
||||
|
|
|
@ -1,11 +1,8 @@
|
|||
{{ define "main" }}
|
||||
<main>
|
||||
{{ partial "header.html" }}
|
||||
<article>
|
||||
<header>
|
||||
<nav>
|
||||
<a href="/">home</a>
|
||||
<a href="..">go up</a>
|
||||
</nav>
|
||||
<h1>{{ .Title }}</h1>
|
||||
<h2>{{ .Description }}</h2>
|
||||
</header>
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
{{ define "main" }}
|
||||
{{ partial "header.html" }}
|
||||
<article>
|
||||
<a href="..">go up</a>
|
||||
<header>
|
||||
<h1>{{ .Title }}</h1>
|
||||
<h2>{{ .Description }}</h2>
|
||||
|
|
|
@ -1,11 +1,13 @@
|
|||
{{ define "main" }}
|
||||
<main>
|
||||
<div>
|
||||
<h1>{{ .Title }}</h1>
|
||||
<h1>{{ .Name | lower }}</h1>
|
||||
<!-- ranges through each of the content files associated with a particular taxonomy term and renders the summary.html content view -->
|
||||
{{ range .Pages }}
|
||||
{{ .Render "summary" }}
|
||||
{{ end }}
|
||||
<ul>
|
||||
{{ range .Pages }}
|
||||
<li><a href="{{ .Permalink }}">{{ .Title }}</a></li>
|
||||
{{ end }}
|
||||
</ul>
|
||||
</div>
|
||||
</main>
|
||||
{{ end }}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue