Update site-navigation.html

Using `disableKinds = ["home"]` is causing the loss of the `.Site.Home.RelPermalink` variable, which is the href link used in the site-navigation page. Without it, clicking on the site logo no longer links to the homepage. Using `.Site.BaseURL` instead hopefully addresses the issue.
This commit is contained in:
romainw 2021-02-19 11:23:55 +01:00 committed by GitHub
parent db9acdd991
commit 80eb5baccd
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1,6 +1,6 @@
<nav class="pv3 ph3 ph4-ns" role="navigation"> <nav class="pv3 ph3 ph4-ns" role="navigation">
<div class="flex-l justify-between items-center center"> <div class="flex-l justify-between items-center center">
<a href="{{ .Site.Home.RelPermalink }}" class="f3 fw2 hover-white no-underline white-90 dib"> <a href="{{ .Site.BaseURL }}" class="f3 fw2 hover-white no-underline white-90 dib">
{{ with .Site.Params.site_logo }} {{ with .Site.Params.site_logo }}
<img src="{{ . }}" class="w100 mw5-ns" alt="{{ $.Site.Title }}" /> <img src="{{ . }}" class="w100 mw5-ns" alt="{{ $.Site.Title }}" />
{{ else }} {{ else }}