From 34e903d09f6ac6b99b60c24fe1a62d9fcf3342ee Mon Sep 17 00:00:00 2001 From: Marty Sluijtman Date: Thu, 18 Aug 2022 14:52:42 +0200 Subject: [PATCH] New ramble format --- archetypes/posts.md | 13 ------------- archetypes/rambles.md | 7 +++++++ layouts/_default/index.html | 4 ++-- 3 files changed, 9 insertions(+), 15 deletions(-) delete mode 100644 archetypes/posts.md create mode 100644 archetypes/rambles.md diff --git a/archetypes/posts.md b/archetypes/posts.md deleted file mode 100644 index 9cacca3..0000000 --- a/archetypes/posts.md +++ /dev/null @@ -1,13 +0,0 @@ -+++ -title = "{{ replace .TranslationBaseName "-" " " | title }}" -date = "{{ .Date }}" -author = "" -authorTwitter = "" #do not include @ -cover = "" -tags = ["", ""] -keywords = ["", ""] -description = "" -showFullContent = false -readingTime = false -hideComments = false -+++ diff --git a/archetypes/rambles.md b/archetypes/rambles.md new file mode 100644 index 0000000..856a12b --- /dev/null +++ b/archetypes/rambles.md @@ -0,0 +1,7 @@ +--- +title: "{{ replace .TranslationBaseName "-" " " | title }}" +date: "{{ .Date }}" +author: "" +tags: ["", ""] +description: "" +--- diff --git a/layouts/_default/index.html b/layouts/_default/index.html index 5c18a63..4387144 100644 --- a/layouts/_default/index.html +++ b/layouts/_default/index.html @@ -1,8 +1,8 @@ {{ define "main" }} {{ .Content -}}
- {{ $isntDefault := not (or (eq (trim $.Site.Params.contentTypeName " ") "posts") (eq (trim $.Site.Params.contentTypeName " ") "")) }} - {{ $contentTypeName := cond $isntDefault (string $.Site.Params.contentTypeName) "posts" }} + {{ $isntDefault := not (or (eq (trim $.Site.Params.contentTypeName " ") "rambles") (eq (trim $.Site.Params.contentTypeName " ") "")) }} + {{ $contentTypeName := cond $isntDefault (string $.Site.Params.contentTypeName) "rambles" }} {{ $PageContext := . }} {{ if .IsHome }}