Browse Source

add missing slashes in paths

master
Schneider 5 years ago
parent
commit
e704c367d8
Signed by: schneider GPG Key ID: 3F50B02A50039F3B
  1. 4
      layouts/_default/single.html
  2. 2
      layouts/partials/footer.html
  3. 4
      layouts/partials/head.html
  4. 2
      layouts/partials/js.html
  5. 2
      layouts/partials/nav.html
  6. 4
      layouts/partials/profile.html

4
layouts/_default/single.html

@ -12,7 +12,7 @@
{{ with .Params.tags }} {{ with .Params.tags }}
{{ if ge (len .) 1 }} {{ if ge (len .) 1 }}
{{ range . }} {{ range . }}
<a href="{{ $.Site.BaseURL }}tags/{{ . | urlize }}">{{ . }}</a>
<a href="{{ $.Site.BaseURL }}/tags/{{ . | urlize }}">{{ . }}</a>
{{ end }} {{ end }}
{{ end }} {{ end }}
{{ end}} {{ end}}
@ -24,7 +24,7 @@
</article> </article>
<footer id="post-meta" class="clearfix"> <footer id="post-meta" class="clearfix">
{{ with .Site.Params.twitter }}<a href="https://twitter.com/{{ . }}">{{ end }} {{ with .Site.Params.twitter }}<a href="https://twitter.com/{{ . }}">{{ end }}
<img class="avatar" src="{{ .Site.BaseURL }}images/avatar.png">
<img class="avatar" src="{{ .Site.BaseURL }}/images/avatar.png">
<div> <div>
<span class="dark">{{ .Site.Params.name }}</span> <span class="dark">{{ .Site.Params.name }}</span>
<span>{{ .Site.Params.aboutAuthor }}</span> <span>{{ .Site.Params.aboutAuthor }}</span>

2
layouts/partials/footer.html

@ -8,7 +8,7 @@
{{ else }} {{ else }}
© Copyright {{ now.Format "2006"}} {{ .Site.Params.name }} © Copyright {{ now.Format "2006"}} {{ .Site.Params.name }}
{{ end }} {{ end }}
| <a href="{{ .Site.BaseURL }}imprint">Impressum</a>
| <a href="{{ .Site.BaseURL }}/imprint">Impressum</a>
</p> </p>
</footer> </footer>

4
layouts/partials/head.html

@ -8,11 +8,11 @@
{{ with .Site.Params.description }}<meta name="description" content="{{ . }}">{{ end }} {{ with .Site.Params.description }}<meta name="description" content="{{ . }}">{{ end }}
{{ .Hugo.Generator }} {{ .Hugo.Generator }}
<title>{{ if .IsHome }}{{ .Title }}{{ else }}{{ .Title }} &middot; {{ .Site.Title }}{{ end }}</title> <title>{{ if .IsHome }}{{ .Title }}{{ else }}{{ .Title }} &middot; {{ .Site.Title }}{{ end }}</title>
<link rel="shortcut icon" href="{{ .Site.BaseURL }}images/favicon.ico">
<link rel="shortcut icon" href="{{ .Site.BaseURL }}/images/favicon.ico">
{{ $style := resources.Get "css/style.css" | resources.Minify | resources.Fingerprint }} {{ $style := resources.Get "css/style.css" | resources.Minify | resources.Fingerprint }}
<link rel="stylesheet" href="{{ $style.Permalink }}"> <link rel="stylesheet" href="{{ $style.Permalink }}">
{{ range .Site.Params.customCSS }} {{ range .Site.Params.customCSS }}
<link rel="stylesheet" href="{{ $.Site.BaseURL }}{{ . }}">
<link rel="stylesheet" href="{{ $.Site.BaseURL }}/{{ . }}">
{{ end }} {{ end }}
{{ if .Site.Params.enableRSS }} {{ if .Site.Params.enableRSS }}

2
layouts/partials/js.html

@ -1,5 +1,5 @@
{{ range .Site.Params.customJS }} {{ range .Site.Params.customJS }}
<script src="{{ $.Site.BaseURL }}{{ . }}"></script>
<script src="{{ $.Site.BaseURL }}/{{ . }}"></script>
{{ end }} {{ end }}
{{ with .Site.Params.Piwik }} {{ with .Site.Params.Piwik }}

2
layouts/partials/nav.html

@ -5,7 +5,7 @@
{{ end }} {{ end }}
{{ if ne $url "about/" }} {{ if ne $url "about/" }}
<a href='{{ .Site.BaseURL }}about'>{{ with .Site.Params.about }}{{ . }}{{ else }}About{{ end }}</a>
<a href='{{ .Site.BaseURL }}/about'>{{ with .Site.Params.about }}{{ . }}{{ else }}About{{ end }}</a>
{{ end }} {{ end }}
{{ if .Site.Params.enableRSS }} {{ if .Site.Params.enableRSS }}

4
layouts/partials/profile.html

@ -1,8 +1,8 @@
<div class="profile"> <div class="profile">
<section id="wrapper"> <section id="wrapper">
<header id="header"> <header id="header">
<a href='{{ .Site.BaseURL }}about'>
<img id="avatar" class="2x" src="{{ .Site.BaseURL }}images/avatar.png"/>
<a href='{{ .Site.BaseURL }}/about'>
<img id="avatar" class="2x" src="{{ .Site.BaseURL }}/images/avatar.png"/>
</a> </a>
<h1>{{ .Site.Params.name }}</h1> <h1>{{ .Site.Params.name }}</h1>
<h2>{{ .Site.Params.bio | markdownify }}</h2> <h2>{{ .Site.Params.bio | markdownify }}</h2>

Loading…
Cancel
Save