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'
|
title: 'mgCameraShake'
|
||||||
description: 'used to visually shake the camera'
|
description: 'used to visually shake the camera'
|
||||||
layout: 'LuaFunctions'
|
layout: 'LuaFunctions'
|
||||||
page_status: 'stub'
|
page_status:
|
||||||
|
- 'stub'
|
||||||
---
|
---
|
||||||
|
|
||||||
## Usage
|
## Usage
|
||||||
|
|
|
@ -1,9 +1,12 @@
|
||||||
{{ define "main" }}
|
{{ define "main" }}
|
||||||
|
{{ partial "header.html" }}
|
||||||
<article>
|
<article>
|
||||||
<a href="..">go up</a>
|
|
||||||
<header>
|
<header>
|
||||||
<h1><code>{{ .Title }}</code> – {{ .Description }}</h1>
|
<h1><code>{{ .Title }}</code> – {{ .Description }}</h1>
|
||||||
</header>
|
</header>
|
||||||
{{ .Content }}
|
{{ .Content }}
|
||||||
|
<footer>
|
||||||
|
{{ partial "categories.html" }}
|
||||||
|
</footer>
|
||||||
</article>
|
</article>
|
||||||
{{ end }}
|
{{ end }}
|
||||||
|
|
|
@ -1,11 +1,8 @@
|
||||||
{{ define "main" }}
|
{{ define "main" }}
|
||||||
<main>
|
<main>
|
||||||
|
{{ partial "header.html" }}
|
||||||
<article>
|
<article>
|
||||||
<header>
|
<header>
|
||||||
<nav>
|
|
||||||
<a href="/">home</a>
|
|
||||||
<a href="..">go up</a>
|
|
||||||
</nav>
|
|
||||||
<h1>{{ .Title }}</h1>
|
<h1>{{ .Title }}</h1>
|
||||||
<h2>{{ .Description }}</h2>
|
<h2>{{ .Description }}</h2>
|
||||||
</header>
|
</header>
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
{{ define "main" }}
|
{{ define "main" }}
|
||||||
|
{{ partial "header.html" }}
|
||||||
<article>
|
<article>
|
||||||
<a href="..">go up</a>
|
|
||||||
<header>
|
<header>
|
||||||
<h1>{{ .Title }}</h1>
|
<h1>{{ .Title }}</h1>
|
||||||
<h2>{{ .Description }}</h2>
|
<h2>{{ .Description }}</h2>
|
||||||
|
|
|
@ -1,11 +1,13 @@
|
||||||
{{ define "main" }}
|
{{ define "main" }}
|
||||||
<main>
|
<main>
|
||||||
<div>
|
<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 -->
|
<!-- ranges through each of the content files associated with a particular taxonomy term and renders the summary.html content view -->
|
||||||
|
<ul>
|
||||||
{{ range .Pages }}
|
{{ range .Pages }}
|
||||||
{{ .Render "summary" }}
|
<li><a href="{{ .Permalink }}">{{ .Title }}</a></li>
|
||||||
{{ end }}
|
{{ end }}
|
||||||
|
</ul>
|
||||||
</div>
|
</div>
|
||||||
</main>
|
</main>
|
||||||
{{ end }}
|
{{ 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