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

github.com/balaramadurai/hugo-travelify-theme.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBala Ramadurai <bala@balaramadurai.net>2019-02-27 15:06:11 +0300
committerBala Ramadurai <bala@balaramadurai.net>2019-02-27 15:06:11 +0300
commit79db60ab6e0ae161bb034aa77d0bd079c1db0893 (patch)
treef118ee6723dd98e45331f25c203f9a5e45624a50
parent34f184b054238da2127f2346fd52a2c7b0bf7552 (diff)
added title_in_logo parameter for turning on and off the title in the logo
-rw-r--r--README.md2
-rw-r--r--exampleSite/config.toml1
-rw-r--r--layouts/partials/head.html4
3 files changed, 6 insertions, 1 deletions
diff --git a/README.md b/README.md
index 6284dbf..7b1076f 100644
--- a/README.md
+++ b/README.md
@@ -8,6 +8,8 @@ Some of the important features of Hugo-Travelify-Theme are:
- Disqus integration
+- logo (with option to switch on or off the title)
+
- Social media sharing options
- Google Analytics
diff --git a/exampleSite/config.toml b/exampleSite/config.toml
index e38ee6f..6a667df 100644
--- a/exampleSite/config.toml
+++ b/exampleSite/config.toml
@@ -15,6 +15,7 @@ canonifyURLs = true
copyright = "Copyright"
# avatar = "avatar.png"
logo = "logo.png"
+ title_in_logo = true # set to true if you want the title along with the logo
disable_mathjax = true # set to true to disable MathJax
# Format dates with Go's time formatting
diff --git a/layouts/partials/head.html b/layouts/partials/head.html
index ef6e853..d886599 100644
--- a/layouts/partials/head.html
+++ b/layouts/partials/head.html
@@ -79,8 +79,10 @@
<a href="/" rel="home">
{{ if .Site.Params.logo }}
<img src="{{ .Site.Params.logo | absURL }}"></img>
- {{end}}
+ {{ end }}
+ {{ if .Site.Params.title_in_logo }}
<span class="site-title">{{ .Site.Title }}</span>
+ {{ end }}
</a>
</h1>
<h2 id="site-description">{{ .Site.Params.site_description }}</h2>