Make logoMark configurable

!247
This commit is contained in:
Djordje Atlialp 2021-01-10 13:58:01 +01:00
parent 44e11417bb
commit a46b6f6032
2 changed files with 2 additions and 1 deletions

View file

@ -106,6 +106,7 @@ disableHugoGeneratorInject = false
theme = "#252627" theme = "#252627"
[params.logo] [params.logo]
logoMark = ">"
logoText = "$ cd /home/" logoText = "$ cd /home/"
logoHomeLink = "/" logoHomeLink = "/"
# Set true to remove the logo cursor entirely. # Set true to remove the logo cursor entirely.

View file

@ -3,7 +3,7 @@
{{ if .Site.Params.Logo.path }} {{ if .Site.Params.Logo.path }}
<img src="{{ .Site.Params.Logo.path }}" alt="{{ .Site.Params.Logo.alt }}" /> <img src="{{ .Site.Params.Logo.path }}" alt="{{ .Site.Params.Logo.alt }}" />
{{ else }} {{ else }}
<span class="logo__mark">></span> <span class="logo__mark">{{ with .Site.Params.Logo.logoMark }}{{ . }}{{ else }}>{{ end }}</span>
<span class="logo__text">{{ with .Site.Params.Logo.logoText }}{{ . }}{{ else }}hello{{ end }}</span> <span class="logo__text">{{ with .Site.Params.Logo.logoText }}{{ . }}{{ else }}hello{{ end }}</span>
<span class="logo__cursor" style= <span class="logo__cursor" style=
"{{ with.Site.Params.Logo.logoCursorDisabled }}visibility:hidden;{{ end }} "{{ with.Site.Params.Logo.logoCursorDisabled }}visibility:hidden;{{ end }}