link of logo on subpages leads to index, not to top

lektura
max.mehl 2017-08-29 22:03:52 +02:00
parent 373de27969
commit e632b263b1
2 changed files with 1 additions and 7 deletions

View File

@ -9,7 +9,6 @@
<span class="icon-bar"></span> <span class="icon-bar"></span>
<span class="icon-bar"></span> <span class="icon-bar"></span>
</button> </button>
{{ with .Site.Params.navigation.brand }}
<a class="page-scroll hiddenlink" href="#page-top"> <a class="page-scroll hiddenlink" href="#page-top">
<div class="logo"> <div class="logo">
<img src="/img/logo.svg" alt="Logo of the campaign" /> <img src="/img/logo.svg" alt="Logo of the campaign" />
@ -17,8 +16,6 @@
<span class="logo-green">Public Code</span> <span class="logo-green">Public Code</span>
</div> </div>
</a> </a>
<!--<a class="navbar-brand page-scroll" href="#page-top">{{ . | markdownify }}</a>-->
{{ end }}
</div> </div>
{{ "<!-- Collect the nav links, forms, and other content for toggling -->" | safeHTML }} {{ "<!-- Collect the nav links, forms, and other content for toggling -->" | safeHTML }}
<div class="collapse navbar-collapse" id="bs-example-navbar-collapse-1"> <div class="collapse navbar-collapse" id="bs-example-navbar-collapse-1">

View File

@ -9,16 +9,13 @@
<span class="icon-bar"></span> <span class="icon-bar"></span>
<span class="icon-bar"></span> <span class="icon-bar"></span>
</button> </button>
{{ with .Site.Params.navigation.brand }} <a class="hiddenlink" href="/{{ .Lang }}">
<a class="page-scroll hiddenlink" href="#page-top">
<div class="logo"> <div class="logo">
<img src="/img/logo.svg" alt="Logo of the campaign" /> <img src="/img/logo.svg" alt="Logo of the campaign" />
<span class="logo-blue">Public Money</span> <span class="logo-blue">Public Money</span>
<span class="logo-green">Public Code</span> <span class="logo-green">Public Code</span>
</div> </div>
</a> </a>
<!--<a class="navbar-brand page-scroll" href="#page-top">{{ . | markdownify }}</a>-->
{{ end }}
</div> </div>
{{ "<!-- Collect the nav links, forms, and other content for toggling -->" | safeHTML }} {{ "<!-- Collect the nav links, forms, and other content for toggling -->" | safeHTML }}
<div class="collapse navbar-collapse" id="bs-example-navbar-collapse-1"> <div class="collapse navbar-collapse" id="bs-example-navbar-collapse-1">