yadunut.dev/layouts/post.shtml
2025-08-05 11:51:37 +08:00

40 lines
784 B
Plaintext

<extend template="base.shtml">
<head id="head">
<style>
#prev-next {
display: flex;
flex-direction: row;
justify-content: space-between;
margin-top: 40px;
}
figure {
align-self: center;
text-align: center;
font-style: italic;
}
.post {
display:flex;
flex-direction: column;
}
</style>
</head>
<body id="body">
<h1 :text="$page.title"></h1>
<div class="post" :html="$page.content()"></div>
<div id="prev-next">
<div :if="$page.prevPage?()">
<a href="$if.link()">
<span :text="$if.title"></span>
</a>
</div>
<div :if="$page.nextPage?()">
<a href="$if.link()">
<span :text="$if.title"></span>
</a>
</div>
</div>
</body>