From 4fa8a63925021561a4754c79180ba5e30bbe5a81 Mon Sep 17 00:00:00 2001 From: James Tombleson Date: Wed, 28 Sep 2022 23:03:47 -0700 Subject: [PATCH] list view will display pictures if given --- .../layouts/_default/list.html | 51 ++++++++++--------- themes/hugo-bulma-cookbook/theme.toml | 4 +- 2 files changed, 28 insertions(+), 27 deletions(-) diff --git a/themes/hugo-bulma-cookbook/layouts/_default/list.html b/themes/hugo-bulma-cookbook/layouts/_default/list.html index f0ff922..dc37307 100644 --- a/themes/hugo-bulma-cookbook/layouts/_default/list.html +++ b/themes/hugo-bulma-cookbook/layouts/_default/list.html @@ -2,36 +2,37 @@ {{ partial "hero.html" . }}
- {{ range .RegularPages }} -
-
-
-
-
- Placeholder image -
-
-
-

- {{ .Title }} -

-

{{ .Params.subtitle }}

- - {{ with .Params.tags }} -
    - {{ range . }} - - {{ . }} - - {{ end }} -
- {{ end }} +
+
+
+
+
+ {{ with .Params.listthumbnail }} + Placeholder image + {{ end }} +
+
+ +
+

+ {{ .Title }} +

+

{{ .Params.subtitle }}

+ {{ with .Params.tags }} +
    + {{ range . }} + + {{ . }} + + {{ end }} +
+ {{ end }} +
-
{{ end }}
diff --git a/themes/hugo-bulma-cookbook/theme.toml b/themes/hugo-bulma-cookbook/theme.toml index 19a0ad7..880d0d6 100644 --- a/themes/hugo-bulma-cookbook/theme.toml +++ b/themes/hugo-bulma-cookbook/theme.toml @@ -3,7 +3,7 @@ name = "cookbook" license = "MIT" -licenselink = "https://github.com/matcornic/hugo-theme-learn/blob/master/LICENSE.md" +licenselink = "https://github.com/jtom38/hugo-bulma-cookbook/blob/master/LICENSE.md" description = "Minimal cookbook template for Hugo based on Bulma CSS." #homepage = "https://github.com/matcornic/hugo-theme-learn/" #repo = "https://github.com/matcornic/hugo-theme-learn" @@ -13,5 +13,5 @@ min_version = 0.25 [author] name = "James Tombleson" - homepage = "https://matcornic.github.io/" + homepage = "https://github.com/jtom38/hugo-bulma-cookbook"