forked from liaocp666/Jasmine
-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.php
36 lines (34 loc) · 1.23 KB
/
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
31
32
33
34
35
36
<?php
/**
* 专为博客类网站开发,简洁、美观、响应式的 Typecho 主题。<br/>
* Github:<a href="https://github.com/liaocp666/Jasmine" target="_blank" title="Jasmine Github Repo">https://github.com/liaocp666/Jasmine</a>
*
* @package Jasmine
* @author Kent Liao
* @version 2.5.5
* @link https://www.liaocp.cn/
*/
if (!defined("__TYPECHO_ROOT_DIR__")) {
exit();
} ?>
<!DOCTYPE html>
<html lang="zh">
<?php $this->need("header.php"); ?>
<body class="jasmine-body">
<div class="jasmine-container grid grid-cols-12">
<?php $this->need("component/sidebar-left.php"); ?>
<div class="flex col-span-12 lg:col-span-8 flex-col lg:border-x-2 border-stone-100 dark:border-neutral-600 lg:pt-0 lg:px-6 pb-10 px-3">
<?php $this->need("component/menu.php"); ?>
<?php if ($this->is("index") && $this->_currentPage == 1): ?>
<?php $this->need("component/post-top.php"); ?>
<?php endif; ?>
<?php $this->need("component/post-item.php"); ?>
<?php $this->need("component/paging.php"); ?>
</div>
<div class="hidden lg:col-span-3 lg:block" id="sidebar-right">
<?php $this->need("component/sidebar.php"); ?>
</div>
</div>
<?php $this->need("footer.php"); ?>
</body>
</html>