From e46e36412db4c25d69affaa52e0c4250033d0730 Mon Sep 17 00:00:00 2001 From: magmaus3 Date: Thu, 10 Aug 2023 00:15:35 +0200 Subject: [PATCH] more taxonomy changes + separate header too eepy to write a proper commit message --- content/LuaFunctions/mgCameraShake.md | 3 ++- layouts/_default/LuaFunctions.html | 5 ++++- layouts/_default/list.html | 5 +---- layouts/_default/single.html | 2 +- layouts/_default/taxonomy.html | 10 ++++++---- layouts/partials/categories.html | 10 ++++++++++ layouts/partials/header.html | 4 ++++ 7 files changed, 28 insertions(+), 11 deletions(-) create mode 100644 layouts/partials/categories.html create mode 100644 layouts/partials/header.html diff --git a/content/LuaFunctions/mgCameraShake.md b/content/LuaFunctions/mgCameraShake.md index bebe898..12d11b0 100644 --- a/content/LuaFunctions/mgCameraShake.md +++ b/content/LuaFunctions/mgCameraShake.md @@ -2,7 +2,8 @@ title: 'mgCameraShake' description: 'used to visually shake the camera' layout: 'LuaFunctions' -page_status: 'stub' +page_status: +- 'stub' --- ## Usage diff --git a/layouts/_default/LuaFunctions.html b/layouts/_default/LuaFunctions.html index cf60bf4..602c5f7 100644 --- a/layouts/_default/LuaFunctions.html +++ b/layouts/_default/LuaFunctions.html @@ -1,9 +1,12 @@ {{ define "main" }} + {{ partial "header.html" }}
- go up

{{ .Title }} – {{ .Description }}

{{ .Content }} +
+ {{ partial "categories.html" }} +
{{ end }} diff --git a/layouts/_default/list.html b/layouts/_default/list.html index fadf2fe..1bd33a5 100644 --- a/layouts/_default/list.html +++ b/layouts/_default/list.html @@ -1,11 +1,8 @@ {{ define "main" }}
+ {{ partial "header.html" }}
-

{{ .Title }}

{{ .Description }}

diff --git a/layouts/_default/single.html b/layouts/_default/single.html index 5879956..2541e74 100644 --- a/layouts/_default/single.html +++ b/layouts/_default/single.html @@ -1,6 +1,6 @@ {{ define "main" }} + {{ partial "header.html" }}
- go up

{{ .Title }}

{{ .Description }}

diff --git a/layouts/_default/taxonomy.html b/layouts/_default/taxonomy.html index 9e40a34..e04d88b 100644 --- a/layouts/_default/taxonomy.html +++ b/layouts/_default/taxonomy.html @@ -1,11 +1,13 @@ {{ define "main" }}
-

{{ .Title }}

+

{{ .Name | lower }}

- {{ range .Pages }} - {{ .Render "summary" }} - {{ end }} +
{{ end }} diff --git a/layouts/partials/categories.html b/layouts/partials/categories.html new file mode 100644 index 0000000..07cb3d8 --- /dev/null +++ b/layouts/partials/categories.html @@ -0,0 +1,10 @@ +
+ {{ with .GetTerms "page_status" }} +

{{ (site.GetPage "page_status").LinkTitle }}:

+ + {{ end }} +
diff --git a/layouts/partials/header.html b/layouts/partials/header.html new file mode 100644 index 0000000..5d56c7f --- /dev/null +++ b/layouts/partials/header.html @@ -0,0 +1,4 @@ +