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-18 23:00:24 +0300
committerCurtis Timson <curt@live.co.uk>2018-02-18 23:00:24 +0300
commitff26c66efd958efdb773209ba581c0b20452873c (patch)
treea3858b3d327ffc8d6cfaf8ea28063151644f23c4
parent282c18e31b7d37bdc690a500ee128b144a54fb98 (diff)
:wrench: Configure sidebar image path
-rw-r--r--exampleSite/config.toml6
-rw-r--r--layouts/partials/post/sidebar.html2
2 files changed, 6 insertions, 2 deletions
diff --git a/exampleSite/config.toml b/exampleSite/config.toml
index 0a1f9f9..f23c683 100644
--- a/exampleSite/config.toml
+++ b/exampleSite/config.toml
@@ -71,4 +71,8 @@ theme = "../.."
[params.settings]
googleanalytics = "UA-113904582-1"
- disqus = "hugo-dopetrope" \ No newline at end of file
+ disqus = "hugo-dopetrope"
+
+[params.sidebar]
+ enabled = true
+ image = "images/pic09.jpg" \ No newline at end of file
diff --git a/layouts/partials/post/sidebar.html b/layouts/partials/post/sidebar.html
index 6b9b9f6..f2feb9a 100644
--- a/layouts/partials/post/sidebar.html
+++ b/layouts/partials/post/sidebar.html
@@ -1,6 +1,6 @@
<!-- Sidebar -->
<section class="box">
- <a href="#" class="image featured"><img src="images/pic09.jpg" alt="" /></a>
+ <a href="#" class="image featured"><img src="{{ .Site.BaseURL }}{{ .Site.Params.Sidebar.image }}" alt="" /></a>
<header>
<h3>Sed etiam lorem nulla</h3>
</header>