Updated the files per the warning's suggestions.
This commit is contained in:
Stefan M
2019-10-04 11:37:51 +02:00
committed by GitHub
6 changed files with 15 additions and 10 deletions

View File

@@ -3,6 +3,11 @@ languageCode: en-us
title: Hugo Fresh Theme
theme: hugo-fresh
googleAnalytics: #Put in your tracking code without quotes like this: UA-XXXXXX...
#Disables warningss
disableKinds:
-taxonomy
-taxonomyTerm
params:
navbarlogo:

View File

@@ -60,20 +60,20 @@
<div class="navbar-dropdown">
{{- range .sublinks }}
<a href="{{ .url }}" class="navbar-item">
<a href="{{ .Permalink }}" class="navbar-item">
{{ .title }}
</a>
{{- end }}
</div>
</div>
{{- else if .button }}
<a href="{{ .url }}" class="navbar-item">
<a href="{{ .Permalink }}" class="navbar-item">
<span class="button signup-button rounded secondary-btn raised">
{{ .title }}
</span>
</a>
{{- else }}
<a href="{{ .url }}" class="navbar-item is-secondary">
<a href="{{ .Permalink }}" class="navbar-item is-secondary">
{{ .title }}
</a>
{{- end }}

View File

@@ -60,20 +60,20 @@
<div class="navbar-dropdown">
{{- range .sublinks }}
<a href="{{ .url }}" class="navbar-item">
<a href="{{ .Permalink }}" class="navbar-item">
{{ .title }}
</a>
{{- end }}
</div>
</div>
{{- else if .button }}
<a href="{{ .url }}" class="navbar-item">
<a href="{{ .Permalink }}" class="navbar-item">
<span class="button signup-button rounded secondary-btn raised">
{{ .title }}
</span>
</a>
{{- else }}
<a href="{{ .url }}" class="navbar-item is-secondary">
<a href="{{ .Permalink }}" class="navbar-item is-secondary">
{{ .title }}
</a>
{{- end }}

View File

@@ -25,7 +25,7 @@
<p>{{ .text }}</p>
</div>
<div class="card-action">
<a href="{{ .url }}" class="button btn-align-md accent-btn raised">{{ .buttonText }}</a>
<a href="{{ .Permalink }}" class="button btn-align-md accent-btn raised">{{ .buttonText }}</a>
</div>
</div>
</div>

View File

@@ -19,7 +19,7 @@
<ul>
{{- range .links }}
<li>
<a href="{{ .url }}">
<a href="{{ .Permalink }}">
{{ .text }}
</a>
</li>

View File

@@ -8,9 +8,9 @@
</div>
<div class="inner">
<ul class="sidebar-menu">
{{ range where .Site.RegularPages "Section" (strings.TrimSuffix "/" .Dir) }}
{{ range where .Site.RegularPages "Section" (strings.TrimSuffix "/" .File.Dir) }}
<li>
<a href="{{ .URL }}">
<a href="{{ .Permalink }}">
{{ .Title }}
</a>
</li>