deno.land / x / lume_theme_simple_blog@v0.4.0 / src / _includes / layouts / post.njk

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
---layout: layouts/base.njkbodyClass: body-post---<article class="post" data-pagefind-body data-title="{{ title }}" data-pagefind-index-attrs="data-title"> <header class="post-header"> <h1 class="post-title">{{ title }}</h1> {% include "templates/post-details.njk" %} </header> <div class="post-body"> {{ content | safe }} </div></article><nav class="page-pagination"> <ul> {%- set previousPost = search.previousPage(url, "type=post") %} {%- if previousPost %} <li class="page-pagination-prev"> <a href="{{ previousPost.data.url }}" rel="prev"> <span>← Older post</span> <strong>{{ previousPost.data.title }}</strong> </a> </li> {% endif %} {%- set nextPost = search.nextPage(url, "type=post") %} {%- if nextPost %} <li class="page-pagination-next"> <a href="{{ nextPost.data.url }}" rel="next"> <span>Newer post →</span> <strong>{{ nextPost.data.title }}</strong> </a> </li> {% endif %} </ul></nav>
lume_theme_simple_blog

Version Info

Tagged at
2 years ago