mirror of
https://github.com/thomasjsn/hugo-theme-hello-friend.git
synced 2024-11-14 20:35:07 +01:00
Fix logoText variable & prevent code text transform
This commit is contained in:
parent
3864783204
commit
f9f276852e
@ -58,7 +58,7 @@ paginate = 5
|
||||
subtitle = "Your site subtitle"
|
||||
|
||||
[params.logo]
|
||||
logoText = ""
|
||||
logoText = "hello friend"
|
||||
# or
|
||||
#
|
||||
# path = "/img/your-example-logo.svg"
|
||||
|
@ -9,7 +9,7 @@ paginate = 5
|
||||
subtitle = "A simple theme for Hugo"
|
||||
|
||||
[params.logo]
|
||||
logoText = ""
|
||||
logoText = "hello friend"
|
||||
# or
|
||||
#
|
||||
# path = "/img/your-example-logo.svg"
|
||||
|
@ -1,11 +1,11 @@
|
||||
<a href="{{ .Site.BaseURL }}" style="text-decoration: none;">
|
||||
<div class="logo">
|
||||
{{ if .Site.Params.Logo }}
|
||||
{{ if .Site.Params.Logo.path }}
|
||||
<img src="{{ .Site.Params.Logo.path }}" alt="{{ .Site.Params.Logo.alt }}" />
|
||||
{{ else }}
|
||||
<span class="logo__mark">></span>
|
||||
<span class="logo__text">hello friend</span>
|
||||
<span class="logo__text">{{ with .Site.Params.Logo.logoText }}{{ . }}{{ else }}hello friend{{ end }}</span>
|
||||
<span class="logo__cursor"></span>
|
||||
{{ end }}
|
||||
</div>
|
||||
</a>
|
||||
</a>
|
||||
|
@ -47,3 +47,7 @@
|
||||
max-width: 100%;
|
||||
}
|
||||
}
|
||||
|
||||
.theme-toggle {
|
||||
cursor: pointer;
|
||||
}
|
||||
|
File diff suppressed because one or more lines are too long
Loading…
Reference in New Issue
Block a user