-
Notifications
You must be signed in to change notification settings - Fork 0
/
post.php
28 lines (27 loc) · 1.01 KB
/
post.php
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
<?php if (!defined('__TYPECHO_ROOT_DIR__')) exit; ?>
<?php $this->need('header.php'); ?>
<main class="prose prose-neutral relative mx-auto min-h-[calc(100%-10rem)] max-w-3xl px-8 pt-20 pb-32 dark:prose-invert">
<article>
<header class="mb-20">
<h1 class="!my-0 pb-2.5"><?php $this->title();?></h1>
<div class="text-sm opacity-60">
<time><?php $this->date('M d, Y'); ?></time>
<span class="mx-1">·</span>
<span><?php $this->author();?></span>
</div>
</header>
<section>
<?php $this->content(); ?>
</section>
<footer class="mt-12 flex flex-wrap">
<span class="tags mr-1.5 mb-1.5 rounded-lg bg-black/[3%] px-5 py-2 no-underline dark:bg-white/[8%]">
<?php $this->tags('</span><span class="tags mr-1.5 mb-1.5 rounded-lg bg-black/[3%] px-5 py-2 no-underline dark:bg-white/[8%]">', true, 'none'); ?>
</span>
</footer>
<nav class="mt-24 flex rounded-lg bg-black/[3%] text-lg dark:bg-white/[8%]">
<?php thePrev($this); ?>
<?php theNext($this); ?>
</nav>
</article>
</main>
<?php $this->need('footer.php'); ?>