forked from lumeland/theme-simple-blog
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.vto
44 lines (36 loc) · 967 Bytes
/
index.vto
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
---
layout: layouts/base.vto
bodyClass: body-home
title: Home
---
<header class="page-header">
<h1 class="page-title">{{ home.welcome }}</h1>
<div class="search" id="search"></div>
</header>
<section class="postList">
{{ for post of search.pages("type=post", "date=desc", 3) }}
<article class="post">
<header class="post-header">
<h2 class="post-title">
<a href="{{ post.url }}" {{ if post.url == url }} aria-current="page"{{ /if }}>
{{ post.title || post.url }}
</a>
</h2>
{{ include "templates/post-details.vto" {
date: post.date,
tags: post.tags,
author: post.author,
readingInfo: post.readingInfo
} }}
</header>
<div class="post-excerpt body">
{{ post.excerpt |> md }}
</div>
<a href="{{ post.url }}" class="post-link">
{{ i18n.nav.continue_reading }}
</a>
</article>
{{ /for }}
</section>
<hr>
<p>{{ i18n.nav.archive }}</p>