-
Notifications
You must be signed in to change notification settings - Fork 33
/
Copy pathindex.php
30 lines (25 loc) · 798 Bytes
/
index.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
<?php
/**
* Sagiri - Lovely theme for Typecho.
*
* @package Sagiri
* @author shiyi
* @version 1.3.8-unreleased
* @link https://github.com/shiyiya/typecho-theme-sagiri
*/
if (!defined('__TYPECHO_ROOT_DIR__')) exit; ?>
<?php $this->need('component/header.php'); ?>
<div id="main" class="main" role="main">
<div class="main-inner clearfix">
<div class="content-wrap">
<section id="posts">
<?php while ($this->next()) : ?>
<?php $this->need('component/post-card.php'); ?>
<?php endwhile; ?>
</section>
<?php $this->pageNav('<svg r180><use xlink:href="#previous" /></svg>', '<svg><use xlink:href="#previous" /></svg>', '2', '...'); ?>
</div>
<?php if (isPc()) $this->need('component/sidebar.php'); ?>
</div>
</div>
<?php $this->need('component/footer.php'); ?>