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:
-rw-r--r--exampleSite/config-prod.toml16
-rw-r--r--exampleSite/config.toml16
-rw-r--r--exampleSite/data/footer/content.yaml15
-rw-r--r--layouts/partials/footer/index.html16
-rw-r--r--layouts/partials/footer/recentposts.html4
5 files changed, 27 insertions, 40 deletions
diff --git a/exampleSite/config-prod.toml b/exampleSite/config-prod.toml
index 112d17c..dce9e3b 100644
--- a/exampleSite/config-prod.toml
+++ b/exampleSite/config-prod.toml
@@ -7,22 +7,6 @@ theme = "../.."
subtitle = "Howdy. This is Dopetrope."
subtitleline2 = "A responsive template by HTML5 UP"
-[params.footer]
- title1 = "Blandit nisl adipiscing"
-
- title2 = "What's this all about?"
- imagelink2 = "#"
- imageurl2 = "images/pic10.jpg"
- description2 = "This is Dopetrope a free, fully responsive HTML5 site template by AJ for HTML5 UP It's released for free under the Creative Commons Attribution license so feel free to use it for any personal or commercial project – just don't forget to credit us!"
- buttonlink2 = "#"
- buttontext2 = "Find out more"
-
- title3 = "Tempus consequat"
-
- title4 = "Ipsum et phasellus"
-
- title5 = "Vitae tempor lorem"
-
[params.portfolio]
title = "My Portfolio"
foldername = "portfolio"
diff --git a/exampleSite/config.toml b/exampleSite/config.toml
index 83bec74..ea71d5c 100644
--- a/exampleSite/config.toml
+++ b/exampleSite/config.toml
@@ -7,22 +7,6 @@ theme = "../.."
subtitle = "Howdy. This is Dopetrope."
subtitleline2 = "A responsive template by HTML5 UP"
-[params.footer]
- title1 = "Blandit nisl adipiscing"
-
- title2 = "What's this all about?"
- imagelink2 = "#"
- imageurl2 = "images/pic10.jpg"
- description2 = "This is Dopetrope a free, fully responsive HTML5 site template by AJ for HTML5 UP It's released for free under the Creative Commons Attribution license so feel free to use it for any personal or commercial project – just don't forget to credit us!"
- buttonlink2 = "#"
- buttontext2 = "Find out more"
-
- title3 = "Tempus consequat"
-
- title4 = "Ipsum et phasellus"
-
- title5 = "Vitae tempor lorem"
-
[params.portfolio]
title = "My Portfolio"
foldername = "portfolio"
diff --git a/exampleSite/data/footer/content.yaml b/exampleSite/data/footer/content.yaml
new file mode 100644
index 0000000..7773ea9
--- /dev/null
+++ b/exampleSite/data/footer/content.yaml
@@ -0,0 +1,15 @@
+sections:
+- title: 'Blandit nisl adipiscing'
+
+- title: "What's this all about?"
+ imagelink: '#'
+ imageurl: "images/pic10.jpg"
+ description: "This is Dopetrope a free, fully responsive HTML5 site template by AJ for HTML5 UP It's released for free under the Creative Commons Attribution license so feel free to use it for any personal or commercial project – just don't forget to credit us!"
+ buttonlink: "#"
+ buttontext: "Find out more"
+
+- title: 'Tempus consequat'
+
+- title: 'Ipsum et phasellus'
+
+- title: 'Vitae tempor lorem'
diff --git a/layouts/partials/footer/index.html b/layouts/partials/footer/index.html
index 6d59f50..39404f9 100644
--- a/layouts/partials/footer/index.html
+++ b/layouts/partials/footer/index.html
@@ -5,16 +5,18 @@
{{ partial "footer/recentposts.html" . }}
<div class="4u 12u(mobile)">
<section>
+ {{ with index .Site.Data.footer.content.sections 1 }}
<header>
- <h2>{{ .Site.Params.Footer.title2 }}</h2>
+ <h2>{{ .title }}</h2>
</header>
- <a href="{{ .Site.Params.Footer.imagelink2 }}" class="image featured"><img src="{{ .Site.BaseURL }}{{ .Site.Params.Footer.imageurl2 }}" alt="" /></a>
+ <a href="{{ .imagelink }}" class="image featured"><img src="{{ .Site.BaseURL }}{{ .imageurl }}" alt="" /></a>
<p>
- {{ .Site.Params.Footer.description2 }}
+ {{ .description }}
</p>
<footer>
- <a href="{{ .Site.Params.Footer.buttonlink2 }}" class="button">{{ .Site.Params.Footer.buttontext2 }}</a>
+ <a href="{{ .buttonlink }}" class="button">{{ .buttontext }}</a>
</footer>
+ {{ end }}
</section>
</div>
</div>
@@ -22,7 +24,7 @@
<div class="4u 12u(mobile)">
<section>
<header>
- <h2>{{ .Site.Params.Footer.title3 }}</h2>
+ <h2>{{ (index .Site.Data.footer.content.sections 2).title }}</h2>
</header>
<ul class="divided">
{{ range .Site.Data.footer.links.left.links }}
@@ -34,7 +36,7 @@
<div class="4u 12u(mobile)">
<section>
<header>
- <h2>{{ .Site.Params.Footer.title4 }}</h2>
+ <h2>{{ (index .Site.Data.footer.content.sections 3).title }}</h2>
</header>
<ul class="divided">
{{ range .Site.Data.footer.links.right.links }}
@@ -46,7 +48,7 @@
<div class="4u 12u(mobile)">
<section>
<header>
- <h2>{{ .Site.Params.Footer.title5 }}</h2>
+ <h2>{{ (index .Site.Data.footer.content.sections 4).title }}</h2>
</header>
{{ partial "footer/social.html" . }}
<ul class="contact">
diff --git a/layouts/partials/footer/recentposts.html b/layouts/partials/footer/recentposts.html
index 275faaa..1842b3b 100644
--- a/layouts/partials/footer/recentposts.html
+++ b/layouts/partials/footer/recentposts.html
@@ -1,8 +1,10 @@
<div class="8u 12u(mobile)">
<section>
+ {{ with index .Site.Data.footer.content.sections 0 }}
<header>
- <h2>{{ .Site.Params.Footer.title1 }}</h2>
+ <h2>{{ .title }}</h2>
</header>
+ {{ end }}
<ul class="dates">
{{ range first 5 (where .Site.Pages "Type" .Site.Params.Blog.foldername) }}
<li>