Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions layouts/_default/single.html
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{{ partial "header.html" . }}
{{ $baseurl := .Site.BaseURL | sanitizeurl }}
{{ $baseurl := .Site.BaseURL }}
{{ $author := .Site.Params.Author }}
{{ if .Params.Author }}
{{ $author = .Params.Author }}
Expand Down Expand Up @@ -41,4 +41,4 @@ <h1 class="post-title p-name">{{ .Title }}</h1>
</footer>
</article>
</div>
{{ partial "footer.html" . }}
{{ partial "footer.html" . }}
12 changes: 6 additions & 6 deletions layouts/partials/footer.html
Original file line number Diff line number Diff line change
Expand Up @@ -14,11 +14,11 @@ <h2 class="card-name"><a class="p-name u-url" href="{{ .Site.BaseURL }}" rel="me
</div>
{{ end }}
<div id="footer">
{{ if or (.NextPage) (.PrevPage) }}
{{ if or (.Page.Next) (.Page.Prev) }}
<nav id="article-skip">
<div class="next">
{{ if and (.NextPage) (not .Params.Menu) }}
<a alt="Newer article" href="{{ .NextPage.Permalink }}">&larr; Newer</a>
{{ if and (.Page.Next) (not .Params.Menu) }}
<a alt="Newer article" href="{{ .Page.Next.Permalink }}">&larr; Newer</a>
{{ else }}
<p>&nbsp;</p>
{{ end }}
Expand All @@ -27,8 +27,8 @@ <h2 class="card-name"><a class="p-name u-url" href="{{ .Site.BaseURL }}" rel="me
<a alt="Top of page" href="#">Top</a>
</div>
<div class="prev">
{{ if and (.PrevPage) (not .Params.Menu) }}
<a alt="Older article" href="{{ .PrevPage.Permalink }}">Older &rarr;</a>
{{ if and (.Page.Prev) (not .Params.Menu) }}
<a alt="Older article" href="{{ .Page.Prev.Permalink }}">Older &rarr;</a>
{{ else }}
<p>&nbsp;</p>
{{ end }}
Expand All @@ -45,4 +45,4 @@ <h2 class="card-name"><a class="p-name u-url" href="{{ .Site.BaseURL }}" rel="me

<!-- Close the body/html document -->
</body>
</html>
</html>