From 331e72fc5f7d4b586ec8a0e35a6b0586c315f279 Mon Sep 17 00:00:00 2001 From: LordMathis Date: Tue, 12 Aug 2025 21:36:49 +0200 Subject: [PATCH] Remove single layout template and update metadata display settings in Markdown syntax guide --- content/post/markdown-syntax.md | 7 ++++++ layouts/_default/single.html | 42 --------------------------------- 2 files changed, 7 insertions(+), 42 deletions(-) delete mode 100644 layouts/_default/single.html diff --git a/content/post/markdown-syntax.md b/content/post/markdown-syntax.md index 06990d7..cd779b2 100644 --- a/content/post/markdown-syntax.md +++ b/content/post/markdown-syntax.md @@ -14,6 +14,13 @@ categories = [ ] series = ["Themes Guide"] aliases = ["migrate-from-jekyl"] + +showMetadata = true # Master switch +showPublishedDate = false # Hide published date for this post +showReadingTime = false # Hide reading time for this post +showTags = false # Show tags +showAuthors = true # Hide authors +showCategories = false # Show categories +++ This article offers a sample of basic Markdown syntax that can be used in Hugo content files, also it shows whether basic HTML elements are decorated with CSS in a Hugo theme. diff --git a/layouts/_default/single.html b/layouts/_default/single.html deleted file mode 100644 index 6a96b05..0000000 --- a/layouts/_default/single.html +++ /dev/null @@ -1,42 +0,0 @@ -{{ define "title"}} -{{ .Title }} | {{ .Site.Params.author.name }} -{{ end }} - -{{ define "main" }} -
-

{{ .Title }}

- {{ if .Description}} -

{{.Description}}

- {{ end }} - {{ if .Params.showMetadata | default true }} - - {{ end }} -
- {{ .Content }} -
-
- {{ template "_internal/disqus.html" . }} -
-
-{{ end }}