Initial commit, porting in progress

This commit is contained in:
Carson Ip
2017-02-18 23:25:00 +01:00
commit 275f414ed6
17 changed files with 362 additions and 0 deletions

14
layouts/partials/nav.html Normal file
View File

@@ -0,0 +1,14 @@
<nav id="article-nav">
{{ if .Prev }}
<a href="{{ .Prev.RelPermalink }}" id="article-nav-newer" class="article-nav-link-wrap">
<div class="article-nav-title"><span>&lt;</span>&nbsp;
{{ .Prev.Title }}
</div>
</a>
{{ end }}
{{ if .Next }}
<a href="{{ .Next.RelPermalink }}" id="article-nav-older" class="article-nav-link-wrap">
<div class="article-nav-title">{{ .Next.Title }}&nbsp;<span>&gt;</span></div>
</a>
{{ end }}
</nav>