From 90a58c28c666b3e8c89aa921de158f5e8632b7d8 Mon Sep 17 00:00:00 2001 From: magmaus3 Date: Wed, 9 Aug 2023 23:36:20 +0200 Subject: [PATCH] page_status, minor style change --- archetypes/{lua_func.md => LuaFunctions.md} | 4 +++- content/LuaFunctions/_index.md | 1 + content/LuaFunctions/_template.md | 3 +++ content/LuaFunctions/mgCameraShake.md | 5 +++-- hugo.toml | 6 ++++++ layouts/_default/LuaFunctions.html | 9 +++++++++ static/index.css | 5 +++++ 7 files changed, 30 insertions(+), 3 deletions(-) rename archetypes/{lua_func.md => LuaFunctions.md} (72%) create mode 100644 layouts/_default/LuaFunctions.html diff --git a/archetypes/lua_func.md b/archetypes/LuaFunctions.md similarity index 72% rename from archetypes/lua_func.md rename to archetypes/LuaFunctions.md index 5a1b7a1..b58ce65 100644 --- a/archetypes/lua_func.md +++ b/archetypes/LuaFunctions.md @@ -1,9 +1,11 @@ --- title: "{{ replace .Name "-" " " | title }}" +description: "{{ .Description }}" date: {{ .Date }} +type: "lua_func" --- -# `{{ .Name }}` – {{ short_description }} +# `{{ .Name }}` – {{ .Description }} ## Usage diff --git a/content/LuaFunctions/_index.md b/content/LuaFunctions/_index.md index cd46b88..3b73f4e 100644 --- a/content/LuaFunctions/_index.md +++ b/content/LuaFunctions/_index.md @@ -1,5 +1,6 @@ --- title: 'List of Lua Functions' +layout: 'list' --- Some commands might have documentation on the [Smashing Tech Wiki](https://antifandom.com/smashhitlab/wiki/List_of_Lua_Functions) diff --git a/content/LuaFunctions/_template.md b/content/LuaFunctions/_template.md index 27de893..a6e8c77 100644 --- a/content/LuaFunctions/_template.md +++ b/content/LuaFunctions/_template.md @@ -1,3 +1,6 @@ +--- +draft: true +--- # `{{ cmd }}` – {{ short_description }} ## Usage diff --git a/content/LuaFunctions/mgCameraShake.md b/content/LuaFunctions/mgCameraShake.md index 7ee272d..bebe898 100644 --- a/content/LuaFunctions/mgCameraShake.md +++ b/content/LuaFunctions/mgCameraShake.md @@ -1,9 +1,10 @@ --- title: 'mgCameraShake' +description: 'used to visually shake the camera' +layout: 'LuaFunctions' +page_status: 'stub' --- -# `mgCameraShake` – used to visually shake camera - ## Usage ```lua diff --git a/hugo.toml b/hugo.toml index 7b2631e..6f3eaac 100644 --- a/hugo.toml +++ b/hugo.toml @@ -1,3 +1,9 @@ baseURL = 'http://example.org/' languageCode = 'en-us' title = 'Granny Smith Technical' + +[taxonomies] + # category = 'categories' + page_status = 'page_status' + # tag = 'tags' + diff --git a/layouts/_default/LuaFunctions.html b/layouts/_default/LuaFunctions.html new file mode 100644 index 0000000..cf60bf4 --- /dev/null +++ b/layouts/_default/LuaFunctions.html @@ -0,0 +1,9 @@ +{{ define "main" }} +
+ go up +
+

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

+
+ {{ .Content }} +
+{{ end }} diff --git a/static/index.css b/static/index.css index e202536..af5265f 100644 --- a/static/index.css +++ b/static/index.css @@ -11,6 +11,11 @@ nav { box-shadow: 0px 5px 15px #121212; } +pre > code { + padding: 10px; + font-size: inherit; +} + nav a { width: fit-content; padding: 0.2em;