deno.land / x / lume_theme_simple_blog@v0.4.0 / src / index.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
41
42
43
44
45
46
47
---layout: layouts/base.njkbodyClass: body-hometitle: Home---
{% set postslist = search.pages("type=post", "date=desc", 3) %}
<header class="page-header"> <h1 class="page-title">{{ home.welcome }}</h1> <div class="search" id="search"></div></header>
<section class="postList"> {% asyncEach post in postslist %} <article class="post"> <header class="post-header"> <h2 class="post-title"> <a href="{{ post.data.url }}" {% if post.data.url == url %} aria-current="page"{% endif %}> {{ post.data.title or post.data.url }} </a> </h2> {% set date = post.data.date %} {% set tags = post.data.tags %} {% set author = post.data.author %} {% set readingTime = post.data.readingTime %} {% include "templates/post-details.njk" %} </header> <div class="post-excerpt"> {{ post.data.excerpt | md | safe }} </div> <a href="{{ post.data.url }}" class="post-link"> Continue reading → </a> </article>{% endeach %}</section><hr><p>More posts can be found in <a href="/archive/">the archive</a>.</p>
lume_theme_simple_blog

Version Info

Tagged at
a year ago