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
|
@ -2,7 +2,8 @@
|
|||
title: 'mgCameraShake'
|
||||
description: 'used to visually shake the camera'
|
||||
layout: 'LuaFunctions'
|
||||
page_status: 'stub'
|
||||
page_status:
|
||||
- 'stub'
|
||||
---
|
||||
|
||||
## Usage
|
||||
|
|
|
@ -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 }}
|
||||
|
|
10
layouts/partials/categories.html
Normal file
10
layouts/partials/categories.html
Normal file
|
@ -0,0 +1,10 @@
|
|||
<div class="categories">
|
||||
{{ with .GetTerms "page_status" }}
|
||||
<p>{{ (site.GetPage "page_status").LinkTitle }}:</p>
|
||||
<ul>
|
||||
{{ range . }}
|
||||
<li><a href="{{ .RelPermalink }}">{{ .LinkTitle }}</a></li>
|
||||
{{ end }}
|
||||
</ul>
|
||||
{{ end }}
|
||||
</div>
|
4
layouts/partials/header.html
Normal file
4
layouts/partials/header.html
Normal file
|
@ -0,0 +1,4 @@
|
|||
<nav>
|
||||
<a href="/">home</a>
|
||||
<a href="..">go up</a>
|
||||
</nav>
|
Loading…
Reference in a new issue