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 title: Hugo Fresh Theme
theme: hugo-fresh theme: hugo-fresh
googleAnalytics: #Put in your tracking code without quotes like this: UA-XXXXXX... googleAnalytics: #Put in your tracking code without quotes like this: UA-XXXXXX...
#Disables warningss
disableKinds:
-taxonomy
-taxonomyTerm
params: params:
navbarlogo: navbarlogo:

View File

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

View File

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

View File

@@ -25,7 +25,7 @@
<p>{{ .text }}</p> <p>{{ .text }}</p>
</div> </div>
<div class="card-action"> <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> </div>
</div> </div>

View File

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

View File

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