Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/zerostaticthemes/hugo-serif-theme.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRobert Austin <rob@jugglerdigital.com>2022-08-17 10:28:27 +0300
committerGitHub <noreply@github.com>2022-08-17 10:28:27 +0300
commita21956467ad6fbb7f6e11f7f3c77d830a6cf0b50 (patch)
tree6faf32fddc44ab6478cf085e6e83b2b7f186549c
parent204f28fc802ce452d99e7bcc22319f467fc62000 (diff)
parent0adbe4c9718496a4b40715808255745b8bb1bbf7 (diff)
Merge pull request #62 from joelpet/logo-hom-relpermalink
Avoid logotype link target issue when deployed to CloudFlare Pages
-rw-r--r--layouts/partials/header.html4
1 files changed, 2 insertions, 2 deletions
diff --git a/layouts/partials/header.html b/layouts/partials/header.html
index 495873a..4c878c2 100644
--- a/layouts/partials/header.html
+++ b/layouts/partials/header.html
@@ -1,10 +1,10 @@
<div class='header'>
<div class="container">
<div class="logo">
- <a href="{{ .Site.BaseURL }}"><img height={{ .Site.Params.logo.desktop_height }} alt="{{ .Site.Params.logo.alt }}" src="{{ .Site.Params.logo.desktop | relURL }}" /></a>
+ <a href="{{ .Site.Home.RelPermalink }}"><img height={{ .Site.Params.logo.desktop_height }} alt="{{ .Site.Params.logo.alt }}" src="{{ .Site.Params.logo.desktop | relURL }}" /></a>
</div>
<div class="logo-mobile">
- <a href="{{ .Site.BaseURL }}"><img height={{ .Site.Params.logo.mobile_height }} alt="{{ .Site.Params.logo.alt }}" src="{{ .Site.Params.logo.mobile | relURL }}" /></a>
+ <a href="{{ .Site.Home.RelPermalink }}"><img height={{ .Site.Params.logo.mobile_height }} alt="{{ .Site.Params.logo.alt }}" src="{{ .Site.Params.logo.mobile | relURL }}" /></a>
</div>
{{ partial "main-menu.html" . }}
{{ partial "hamburger.html" . }}