From 9116e9a3d4ffd4865b89f000bee2badb7b3663f3 Mon Sep 17 00:00:00 2001 From: d-asnaghi Date: Sun, 17 May 2020 14:26:19 -0400 Subject: [HUGO] base example format --- layouts/_default/list.html | 16 +++++++++------- layouts/partials/header.html | 2 +- theme.toml | 2 +- 3 files changed, 11 insertions(+), 9 deletions(-) diff --git a/layouts/_default/list.html b/layouts/_default/list.html index 77d4fba..d4ba228 100644 --- a/layouts/_default/list.html +++ b/layouts/_default/list.html @@ -12,7 +12,7 @@
-

{{ .Title }}

+

{{ .Title | default "Title" }}

{{ if .Params.description }}

{{ .Params.description }} @@ -37,12 +37,14 @@

{{ range .Pages }} - {{if .Content}} -
-

{{ .Title }}

- - {{ .Content }} -
+ {{if .Content }} + {{if .Title }} +
+

{{ .Title }}

+ + {{ .Content }} +
+ {{ end }} {{ end }} {{ end }} diff --git a/layouts/partials/header.html b/layouts/partials/header.html index 6e9c92c..e0be750 100644 --- a/layouts/partials/header.html +++ b/layouts/partials/header.html @@ -1,7 +1,7 @@ - {{ .Params.Title }} + {{ .Params.Title | default "Title" }} diff --git a/theme.toml b/theme.toml index cef827e..9c56ba5 100644 --- a/theme.toml +++ b/theme.toml @@ -5,7 +5,7 @@ description = "A port of HTML5's dimension theme, optimized for markdown based C homepage = "https://github.com/your-identity/hugo-theme-dimension/" tags = ["blog", "clean", "customizable", "dark", "highlighting", "minimal", "personal", "responsive", "simple", "responsive"] features = ["blog", "syntax highlighting"] -min_version = 0.59.0 +min_version = 0.57 [author] name = "d-asnaghi" -- cgit v1.2.3