diff options
Diffstat (limited to 'layouts/partials/prev_next_post.html')
-rw-r--r-- | layouts/partials/prev_next_post.html | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/layouts/partials/prev_next_post.html b/layouts/partials/prev_next_post.html new file mode 100644 index 0000000..8102ff3 --- /dev/null +++ b/layouts/partials/prev_next_post.html @@ -0,0 +1,24 @@ + +<!-- +{{ if or .PrevInSection .NextInSection }} +<nav id="article-nav"> + {{ if .PrevInSection }} + <a href="{{ .PrevInSection.Permalink }}" id="article-nav-older" class="article-nav-link-wrap"> + <strong class="article-nav-caption"> + {{with .Site.Data.l10n.articles.linked_posts.older}}{{.}}{{end}} + </strong> + <div class="article-nav-title">{{ .PrevInSection.Title }}</div> + </a> + {{ end }} + + {{ if .NextInSection }} + <a href="{{ .NextInSection.Permalink }}" id="article-nav-newer" class="article-nav-link-wrap"> + <strong class="article-nav-caption"> + {{with .Site.Data.l10n.articles.linked_posts.newer}}{{.}}{{end}} + </strong> + <div class="article-nav-title">{{ .NextInSection.Title }}</div> + </a> + {{ end }} +</nav> +{{ end }} +--> |