layouts/post.shtml
40 lines · 712 bytes
1<extend template="base.shtml">
2<head id="head">
3 <style>
4 #prev-next {
5 display: flex;
6 flex-direction: row;
7 justify-content: space-between;
8 margin-top: 40px;
9 }
10
11 figure {
12 align-self: center;
13 text-align: center;
14 font-style: italic;
15 }
16
17 .post {
18 display:flex;
19 flex-direction: column;
20 }
21 </style>
22</head>
23<body id="body">
24 <h1 :text="$page.title"></h1>
25 <div class="post" :html="$page.content()"></div>
26 <div id="prev-next">
27 <div :if="$page.prevPage?()">
28 <a href="$if.link()">
29 ←
30 <span :text="$if.title"></span>
31 </a>
32 </div>
33 <div :if="$page.nextPage?()">
34 <a href="$if.link()">
35 <span :text="$if.title"></span>
36 →
37 </a>
38 </div>
39 </div>
40</body>