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

View file

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

View file

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

View file

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

View file

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

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>