Add site title display toggle

This commit is contained in:
James Panther
2022-11-10 11:32:43 +11:00
parent 4367628ebe
commit 8a1dbe4777
10 changed files with 39 additions and 20 deletions
+7 -6
View File
@@ -1,7 +1,7 @@
{{ if .Site.Params.Logo -}}
{{ $logo := resources.Get .Site.Params.Logo }}
{{ if $logo }}
<a href="{{ "" | relLangURL }}">
{{- if .Site.Params.header.logo }}
{{- $logo := resources.Get .Site.Params.header.logo }}
{{- if $logo }}
<a href="{{ "" | relLangURL }}" class="mr-2">
<img
src="{{ $logo.RelPermalink }}"
width="{{ div $logo.Width 2 }}"
@@ -10,8 +10,9 @@
alt="{{ .Site.Title }}"
/>
</a>
{{ end }}
{{ else }}
{{- end }}
{{- end }}
{{- if .Site.Params.header.showTitle | default true }}
<a
class="decoration-primary-500 hover:underline hover:decoration-2 hover:underline-offset-2"
rel="me"