diff options
author | Curtis Timson <curt@live.co.uk> | 2018-02-18 23:00:24 +0300 |
---|---|---|
committer | Curtis Timson <curt@live.co.uk> | 2018-02-18 23:00:24 +0300 |
commit | ff26c66efd958efdb773209ba581c0b20452873c (patch) | |
tree | a3858b3d327ffc8d6cfaf8ea28063151644f23c4 | |
parent | 282c18e31b7d37bdc690a500ee128b144a54fb98 (diff) |
:wrench: Configure sidebar image path
-rw-r--r-- | exampleSite/config.toml | 6 | ||||
-rw-r--r-- | layouts/partials/post/sidebar.html | 2 |
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> |