more taxonomy changes + separate header

too eepy to write a proper commit message
This commit is contained in:
magmaus3 2023-08-10 00:15:35 +02:00
parent 90a58c28c6
commit e46e36412d
Signed by: magmaus3
GPG key ID: 966755D3F4A9B251
7 changed files with 28 additions and 11 deletions

View file

@ -2,7 +2,8 @@
title: 'mgCameraShake'
description: 'used to visually shake the camera'
layout: 'LuaFunctions'
page_status: 'stub'
page_status:
- 'stub'
---
## Usage

View file

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

View file

@ -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>

View file

@ -1,6 +1,6 @@
{{ define "main" }}
{{ partial "header.html" }}
<article>
<a href="..">go up</a>
<header>
<h1>{{ .Title }}</h1>
<h2>{{ .Description }}</h2>

View file

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

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

View file

@ -0,0 +1,4 @@
<nav>
<a href="/">home</a>
<a href="..">go up</a>
</nav>