From 0e96aa8c951fe768e73fb4a26540c3b952372726 Mon Sep 17 00:00:00 2001 From: Kishan B Date: Sun, 5 Aug 2018 19:16:21 +0530 Subject: Add ability to add site description below company name. Fixes #2 --- exampleSite/config.toml | 2 ++ layouts/partials/products/list/product-list.html | 1 + layouts/products/single.html | 1 + 3 files changed, 4 insertions(+) diff --git a/exampleSite/config.toml b/exampleSite/config.toml index b644203..31fb4ce 100644 --- a/exampleSite/config.toml +++ b/exampleSite/config.toml @@ -2,3 +2,5 @@ baseURL = "http://example.org/" languageCode = "en-us" title = "Awesome Lighting Inc." theme = "hugo-shopping-product-catalogue-simple" +[Params] +description = "" \ No newline at end of file diff --git a/layouts/partials/products/list/product-list.html b/layouts/partials/products/list/product-list.html index dcc223a..85288af 100644 --- a/layouts/partials/products/list/product-list.html +++ b/layouts/partials/products/list/product-list.html @@ -1,5 +1,6 @@

{{ .Site.Title }}

+ {{ with .Site.Params.description }}

{{ . }}

{{ end }}
diff --git a/layouts/products/single.html b/layouts/products/single.html index 80888d9..de9a0dc 100644 --- a/layouts/products/single.html +++ b/layouts/products/single.html @@ -1,6 +1,7 @@ {{ define "main" }}

{{ .Site.Title }}

+ {{ with .Site.Params.description }}

{{ . }}

{{ end }}
-- cgit v1.2.3