-
Notifications
You must be signed in to change notification settings - Fork 1
/
posts.php
executable file
·40 lines (37 loc) · 1.56 KB
/
posts.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
29
30
31
32
33
34
35
36
37
38
39
40
<?php theme_include('header'); ?>
<section class="content posts">
<?php if(has_posts()) : while(posts()) : ?>
<?php
if (article_category() === "drafts")
continue;
?>
<article>
<header>
<h1>
<a href="<?php echo article_url(); ?>" title="<?php echo article_title(); ?>"><?php echo article_title(); ?></a>
</h1>
<ul class="meta">
<li><?php echo article_date(); ?></li>
<li><?php echo article_author(); ?></li>
<li>
<a href="<?php echo article_category_url(); ?>"><?php echo article_category(); ?></a>
</li>
</ul>
</header>
<div class="body">
<?php echo article_markdown(); ?>
</div>
<div class="divider">~</div>
</article>
<?php endwhile; endif; ?>
</section>
<section class="pagination">
<?php if(has_pagination()) : ?>
<nav class="pagination">
<!-- these are swapped because intuitively they work the other way for me -->
<span class="prev"><?php echo posts_next("☜(゚ヮ゚☜)"); ?></span>
<span class="next"><?php echo posts_prev("(☞゚ヮ゚)☞"); ?></span>
</nav>
<?php endif; ?>
</section>
<?php theme_include('footer'); ?>