🐛 Fix logo not linked to home page

Closes #13
This commit is contained in:
James Panther
2021-10-19 17:33:18 +11:00
parent 0a59984b44
commit bf81a7a27d
2 changed files with 12 additions and 6 deletions
+8 -6
View File
@@ -6,12 +6,14 @@
{{ if .Site.Params.Logo -}}
{{ $logo := resources.Get .Site.Params.Logo }}
{{ if $logo }}
<img
src="{{ $logo.RelPermalink }}"
width="{{ div $logo.Width 2 }}"
height="{{ div $logo.Height 2 }}"
alt="{{ .Site.Title }}"
/>
<a href="{{ "/" | relURL }}">
<img
src="{{ $logo.RelPermalink }}"
width="{{ div $logo.Width 2 }}"
height="{{ div $logo.Height 2 }}"
alt="{{ .Site.Title }}"
/>
</a>
{{ end }}
{{ else }}
<a