From aa449203a4da02b9ff9b92f2a0e44ba9b62a3218 Mon Sep 17 00:00:00 2001 From: Thomas Schwery Date: Tue, 21 Jan 2020 20:46:25 +0100 Subject: [PATCH] Minor improvements to the page and other layouts --- articles/about.md | 2 +- config.toml | 2 ++ themes/hugo-tschwery/layouts/_default/single.html | 7 ++++--- themes/hugo-tschwery/layouts/other/single.html | 14 ++++++++++++++ 4 files changed, 21 insertions(+), 4 deletions(-) create mode 100644 themes/hugo-tschwery/layouts/other/single.html diff --git a/articles/about.md b/articles/about.md index a8f355e..755cb8a 100644 --- a/articles/about.md +++ b/articles/about.md @@ -1,7 +1,7 @@ --- title: About me hidefromhome: true -type: page +type: other --- I am Thomas, a software engineer. I love new challenges and learning diff --git a/config.toml b/config.toml index 7abe650..1a60df8 100644 --- a/config.toml +++ b/config.toml @@ -15,6 +15,8 @@ copyright = "Thomas Schwery, No rights reserved (CC0)." pygmentsCodeFences = true pygmentsCodeFencesGuessSyntax = true +disableKinds = ["taxonomy","taxonomyTerm"] + [params] logo = "/images/logo.png" subtitle = "A Glog ... Plog ... Blog ..." diff --git a/themes/hugo-tschwery/layouts/_default/single.html b/themes/hugo-tschwery/layouts/_default/single.html index 3ee24e5..4fa60a0 100644 --- a/themes/hugo-tschwery/layouts/_default/single.html +++ b/themes/hugo-tschwery/layouts/_default/single.html @@ -3,9 +3,10 @@

{{ .Title }}

- {{ if ne .Type "page"}} - {{ .Date }} - {{ end }} +
{{ .Content }}
diff --git a/themes/hugo-tschwery/layouts/other/single.html b/themes/hugo-tschwery/layouts/other/single.html new file mode 100644 index 0000000..1b0c63e --- /dev/null +++ b/themes/hugo-tschwery/layouts/other/single.html @@ -0,0 +1,14 @@ +{{ partial "header.html" . }} + +
+
+

{{ .Title }}

+ +
+ {{ .Content }} +
+
+
+ +{{ partial "footer.html" . }}