Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/curttimson/hugo-theme-dopetrope.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCurtis Timson <curt@live.co.uk>2018-02-24 13:12:40 +0300
committerCurtis Timson <curt@live.co.uk>2018-02-24 13:12:40 +0300
commit51704a46752b756b819627c331f089aed1138f1d (patch)
treefadc3928cf89ae9f31fd7d02e37f983e89235426
parentcbcfca8e1058619ad90b1147b54eca154bac656c (diff)
:sparkles: :wrench: Move banner text to data yaml files
-rw-r--r--exampleSite/config-prod.toml4
-rw-r--r--exampleSite/config.toml4
-rw-r--r--exampleSite/data/home/banner.yaml2
-rw-r--r--layouts/partials/banner.html6
4 files changed, 6 insertions, 10 deletions
diff --git a/exampleSite/config-prod.toml b/exampleSite/config-prod.toml
index fcf2151..ed2587a 100644
--- a/exampleSite/config-prod.toml
+++ b/exampleSite/config-prod.toml
@@ -3,10 +3,6 @@ title = "Dopetrope"
baseURL = "https://curttimson.github.io/hugo-theme-dopetrope/"
theme = "../.."
-[params]
- subtitle = "Howdy. This is Dopetrope."
- subtitleline2 = "A responsive template by HTML5 UP"
-
[params.portfolio]
title = "My Portfolio"
foldername = "portfolio"
diff --git a/exampleSite/config.toml b/exampleSite/config.toml
index 8da763e..7e7dc5b 100644
--- a/exampleSite/config.toml
+++ b/exampleSite/config.toml
@@ -3,10 +3,6 @@ title = "Dopetrope"
baseURL = "http://localhost:1313/"
theme = "../.."
-[params]
- subtitle = "Howdy. This is Dopetrope."
- subtitleline2 = "A responsive template by HTML5 UP"
-
[params.portfolio]
title = "My Portfolio"
foldername = "portfolio"
diff --git a/exampleSite/data/home/banner.yaml b/exampleSite/data/home/banner.yaml
new file mode 100644
index 0000000..5cbd56f
--- /dev/null
+++ b/exampleSite/data/home/banner.yaml
@@ -0,0 +1,2 @@
+line1: 'Howdy. This is Dopetrope.'
+line2: 'A responsive template by HTML5 UP' \ No newline at end of file
diff --git a/layouts/partials/banner.html b/layouts/partials/banner.html
index c4725f1..13ed1d5 100644
--- a/layouts/partials/banner.html
+++ b/layouts/partials/banner.html
@@ -1,7 +1,9 @@
<!-- Banner -->
<section id="banner">
<header>
- <h2>{{ .Site.Params.Subtitle }}</h2>
- <p>{{ .Site.Params.Subtitleline2 }}</p>
+ {{ with .Site.Data.home.banner }}
+ <h2>{{ .line1 }}</h2>
+ <p>{{ .line2 }}</p>
+ {{ end }}
</header>
</section> \ No newline at end of file