Change logo to go back to the main website. Create a new parameter to allow it to open a new tab.
This commit is contained in:
@@ -66,9 +66,6 @@ params:
|
|||||||
keywords: "homepage, blog, recipes, crafts, food, seasonings, woodworking, poetry, poems"
|
keywords: "homepage, blog, recipes, crafts, food, seasonings, woodworking, poetry, poems"
|
||||||
images: [""]
|
images: [""]
|
||||||
|
|
||||||
Logo:
|
|
||||||
logoCursorColor: "#663399"
|
|
||||||
|
|
||||||
# My Custom Params #
|
# My Custom Params #
|
||||||
authorBug: "Chad Michael \"Bug\" Greenwood"
|
authorBug: "Chad Michael \"Bug\" Greenwood"
|
||||||
authorHyperling: "Chad Michael \"Hyperling\" Greenwood"
|
authorHyperling: "Chad Michael \"Hyperling\" Greenwood"
|
||||||
@@ -94,8 +91,10 @@ languages:
|
|||||||
keywords: ""
|
keywords: ""
|
||||||
|
|
||||||
logo:
|
logo:
|
||||||
logoText: "Hyperling's Works"
|
logoText: "Back to Main Site"
|
||||||
logoHomeLink: "/"
|
logoCursorColor: "#663399"
|
||||||
|
logoHomeLink: "https://hyperling.com"
|
||||||
|
logoNewTab: true
|
||||||
# or
|
# or
|
||||||
#
|
#
|
||||||
# path = "/img/your-example-logo.svg"
|
# path = "/img/your-example-logo.svg"
|
||||||
|
|||||||
21
layouts/partials/logo.html
Normal file
21
layouts/partials/logo.html
Normal file
@@ -0,0 +1,21 @@
|
|||||||
|
<a href="{{ if .Site.Params.Logo.LogoHomeLink }}{{ .Site.Params.Logo.LogoHomeLink }}{{ else }}{{ .Site.BaseURL | relLangURL }}{{ end }}"
|
||||||
|
{{ if .Site.Params.Logo.LogoNewTab }}
|
||||||
|
target="_blank" rel="noopener noreferrer"
|
||||||
|
{{ end }}
|
||||||
|
style="text-decoration: none;"
|
||||||
|
>
|
||||||
|
<div class="logo">
|
||||||
|
{{ if .Site.Params.Logo.path }}
|
||||||
|
<img src="{{ .Site.Params.Logo.path }}" alt="{{ .Site.Params.Logo.alt }}" />
|
||||||
|
{{ else }}
|
||||||
|
<span class="logo__mark">{{ with .Site.Params.Logo.logoMark }}{{ . }}{{ else }}>{{ end }}</span>
|
||||||
|
<span class="logo__text {{ with.Site.Params.Logo.logoCursorPathname}}logo__pathname{{ end }}">
|
||||||
|
{{ with .Site.Params.Logo.logoText }}{{ . }}{{ else }}hello{{ end }}</span>
|
||||||
|
<span class="logo__cursor" style=
|
||||||
|
"{{ with.Site.Params.Logo.logoCursorDisabled }}visibility:hidden;{{ end }}
|
||||||
|
{{ with.Site.Params.Logo.logoCursorColor }}background-color:{{ . }};{{ end }}
|
||||||
|
{{ with.Site.Params.Logo.logoCursorAnimate }}animation-duration:{{ . }};{{ end }}">
|
||||||
|
</span>
|
||||||
|
{{ end }}
|
||||||
|
</div>
|
||||||
|
</a>
|
||||||
Reference in New Issue
Block a user