mirror of
https://github.com/theNewDynamic/gohugo-theme-ananke.git
synced 2025-06-08 17:22:46 +00:00
Add site logo option
This commit is contained in:
parent
29972c2fd7
commit
91547594d8
@ -18,6 +18,7 @@ enableRobotsTXT = true
|
|||||||
|
|
||||||
[params]
|
[params]
|
||||||
favicon = ""
|
favicon = ""
|
||||||
|
site_logo = ""
|
||||||
description = "The last theme you'll ever need. Maybe."
|
description = "The last theme you'll ever need. Maybe."
|
||||||
facebook = ""
|
facebook = ""
|
||||||
twitter = "https://twitter.com/GoHugoIO"
|
twitter = "https://twitter.com/GoHugoIO"
|
||||||
|
@ -1,7 +1,11 @@
|
|||||||
<nav class="pv3 ph3 ph4-ns" role="navigation">
|
<nav class="pv3 ph3 ph4-ns" role="navigation">
|
||||||
<div class="flex-l justify-between items-center center">
|
<div class="flex-l justify-between items-center center">
|
||||||
<a href="{{ .Site.Home.RelPermalink }}" class="f3 fw2 hover-white no-underline white-90 dib">
|
<a href="{{ .Site.Home.RelPermalink }}" class="f3 fw2 hover-white no-underline white-90 dib">
|
||||||
{{ .Site.Title }}
|
{{ with .Site.Params.site_logo }}
|
||||||
|
<img src="{{ . }}" class="w100 mw5-ns" alt="{{ $.Site.Title }}" />
|
||||||
|
{{ else }}
|
||||||
|
{{ .Site.Title }}
|
||||||
|
{{ end }}
|
||||||
</a>
|
</a>
|
||||||
<div class="flex-l items-center">
|
<div class="flex-l items-center">
|
||||||
{{ partial "i18nlist.html" . }}
|
{{ partial "i18nlist.html" . }}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user