diff options
author | Bala Ramadurai <bala@balaramadurai.net> | 2019-02-27 15:06:11 +0300 |
---|---|---|
committer | Bala Ramadurai <bala@balaramadurai.net> | 2019-02-27 15:06:11 +0300 |
commit | 79db60ab6e0ae161bb034aa77d0bd079c1db0893 (patch) | |
tree | f118ee6723dd98e45331f25c203f9a5e45624a50 | |
parent | 34f184b054238da2127f2346fd52a2c7b0bf7552 (diff) |
added title_in_logo parameter for turning on and off the title in the logo
-rw-r--r-- | README.md | 2 | ||||
-rw-r--r-- | exampleSite/config.toml | 1 | ||||
-rw-r--r-- | layouts/partials/head.html | 4 |
3 files changed, 6 insertions, 1 deletions
@@ -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>
|