-
Notifications
You must be signed in to change notification settings - Fork 3
/
index.php
executable file
·47 lines (42 loc) · 1.36 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
37
38
39
40
41
42
43
44
45
46
47
<?php
/**
* Daydream 是一个简洁轻盈的 Typecho 主题。
*
* @package Daydream
* @author SkyWT
* @version 1.0
* @link https://blog.skywt.cn/
*/
if (!defined('__TYPECHO_ROOT_DIR__')) exit;
$this->need('header.php');
?>
<?php if ($this->options->notification !=''): ?>
<div class="alert">
<?php $this->options->notification(); ?>
</div>
<?php endif; ?>
<?php while ($this->next()): ?>
<section itemscope itemtype="http://schema.org/BlogPosting">
<?php if ($this->fields->headPic !=''): ?>
<a data-fancybox="gallery" href="<?php $this->fields->headPic(); ?>" data-caption="<?php $this->title(); ?>">
<img src=<?php $this->fields->headPic();?> class="shadow rounded" alt="<?php $this->title(); ?>" title="<?php $this->title(); ?>">
</a>
<?php endif; ?>
<a itemprop="url" href="<?php $this->permalink();?>">
<h1 itemprop="name headline"><?php $this->title();?></h1>
</a>
<div class="summary" itemprop="articleBody">
<?php $this->content('More...'); ?>
</div>
</section>
<hr>
<?php endwhile; ?>
<nav>
<?php $this->pageNav('«', '»', 3, '...', array(
'wrapTag' => 'ul',
'wrapClass' => '',
'itemTag' => 'li',
'currentClass' => 'active',
)); ?>
</nav>
<?php $this->need('footer.php'); ?>