Merge pull request #82 from nisrulz/space-bw-logotext-and-logo
Space b/w logotext and logo when logo is disabled
This commit is contained in:
commit
4f3a3a30ee
|
@ -219,6 +219,7 @@ You shoud make your own menu.
|
||||||
```bash
|
```bash
|
||||||
logoText = "Zzo" # Logo text that appears in the site navigation bar.
|
logoText = "Zzo" # Logo text that appears in the site navigation bar.
|
||||||
logoType = "short" # long, short -> short: squre shape includes logo text, long: rectangle shape not includes logo text
|
logoType = "short" # long, short -> short: squre shape includes logo text, long: rectangle shape not includes logo text
|
||||||
|
logo = true # Logo that appears in the site navigation bar.
|
||||||
description = "The Zzo theme for Hugo example site." # for SEO
|
description = "The Zzo theme for Hugo example site." # for SEO
|
||||||
custom_css = [] # custom_css = ["scss/custom.scss"] and then make file at root/assets/scss/custom.scss
|
custom_css = [] # custom_css = ["scss/custom.scss"] and then make file at root/assets/scss/custom.scss
|
||||||
custom_js = [] # custom_js = ["js/custom.js"] and then make file at root/assets/js/custom.js
|
custom_js = [] # custom_js = ["js/custom.js"] and then make file at root/assets/js/custom.js
|
||||||
|
|
|
@ -213,6 +213,7 @@ You shoud make your own menu.
|
||||||
```bash
|
```bash
|
||||||
logoText = "Zzo" # Logo text that appears in the site navigation bar.
|
logoText = "Zzo" # Logo text that appears in the site navigation bar.
|
||||||
logoType = "short" # long, short -> short: squre shape includes logo text, long: rectangle shape not includes logo text
|
logoType = "short" # long, short -> short: squre shape includes logo text, long: rectangle shape not includes logo text
|
||||||
|
logo = true # Logo that appears in the site navigation bar.
|
||||||
description = "The Zzo theme for Hugo example site." # for SEO
|
description = "The Zzo theme for Hugo example site." # for SEO
|
||||||
custom_css = [] # custom_css = ["scss/custom.scss"] and then make file at root/assets/scss/custom.scss
|
custom_css = [] # custom_css = ["scss/custom.scss"] and then make file at root/assets/scss/custom.scss
|
||||||
custom_js = [] # custom_js = ["js/custom.js"] and then make file at root/assets/js/custom.js
|
custom_js = [] # custom_js = ["js/custom.js"] and then make file at root/assets/js/custom.js
|
||||||
|
|
|
@ -4,6 +4,8 @@
|
||||||
<a href="{{ "/" | relLangURL }}" title="{{ i18n "tooltip-home" }}" rel="home" class="{{ if eq ($.Param "logoType") "long" }}navbar__long-link{{ else }}navbar__logo-link{{ end }}">
|
<a href="{{ "/" | relLangURL }}" title="{{ i18n "tooltip-home" }}" rel="home" class="{{ if eq ($.Param "logoType") "long" }}navbar__long-link{{ else }}navbar__logo-link{{ end }}">
|
||||||
<img src="{{ "/logo.png" | relURL }}" alt="Home" class="navbar__logo">
|
<img src="{{ "/logo.png" | relURL }}" alt="Home" class="navbar__logo">
|
||||||
</a>
|
</a>
|
||||||
|
{{ else }}
|
||||||
|
|
||||||
{{ end }}
|
{{ end }}
|
||||||
{{ if ne .Site.Params.logoType "long" }}
|
{{ if ne .Site.Params.logoType "long" }}
|
||||||
<a href="{{ "/" | relLangURL }}" title="{{ i18n "tooltip-home" }}" rel="home" class="navbar__title-link">
|
<a href="{{ "/" | relLangURL }}" title="{{ i18n "tooltip-home" }}" rel="home" class="navbar__title-link">
|
||||||
|
|
Loading…
Reference in New Issue