🐛 Fix logo not linked to home page

Closes #13
pull/14/head
James Panther 2021-10-19 17:33:18 +11:00
parent 0a59984b44
commit bf81a7a27d
No known key found for this signature in database
GPG Key ID: D36F789E45745D17
2 changed files with 12 additions and 6 deletions

View File

@ -17,6 +17,10 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
- Main menu is now optional - Main menu is now optional
### Fixed
- Site logo not linked to home page ([#13](https://github.com/jpanther/congo/issues/13))
## [1.3.0] - 2021-09-29 ## [1.3.0] - 2021-09-29
### Added ### Added

View File

@ -6,12 +6,14 @@
{{ if .Site.Params.Logo -}} {{ if .Site.Params.Logo -}}
{{ $logo := resources.Get .Site.Params.Logo }} {{ $logo := resources.Get .Site.Params.Logo }}
{{ if $logo }} {{ if $logo }}
<a href="{{ "/" | relURL }}">
<img <img
src="{{ $logo.RelPermalink }}" src="{{ $logo.RelPermalink }}"
width="{{ div $logo.Width 2 }}" width="{{ div $logo.Width 2 }}"
height="{{ div $logo.Height 2 }}" height="{{ div $logo.Height 2 }}"
alt="{{ .Site.Title }}" alt="{{ .Site.Title }}"
/> />
</a>
{{ end }} {{ end }}
{{ else }} {{ else }}
<a <a