-
Notifications
You must be signed in to change notification settings - Fork 32
/
Copy pathindex.php
114 lines (100 loc) · 4.1 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
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
<?php
/**
* Yakumo 八云酱出品
* @package Yakumo
* @author 八云酱
* @version 1.0.0
* @link https://www.bayun.org
*/
$this->need('header.php');
?>
<body class="home-template">
<header id="header" data-url="<?php $this->options->themeUrl('img/header.jpg'); ?>" class="home-header blog-background banner-mask lazy no-cover" style="display: table; background-image: url(<?php $this->options->themeUrl('img/header.jpg'); ?>)">
<div class="nav-header-container">
<a href="<?php $this->options->siteUrl(); ?>" class="svg-logo" target="_blank">
<span class="svg-logo">
<img src="<?php $this->options->themeUrl('img/logo.png'); ?>" style="width: 50px;height: 50px;">
</span>
</a>
</div>
<div class="header-wrap">
<div class="home-info-container">
<a href="<?php $this->options->siteUrl(); ?>"><h2>Stay before every beautiful thoughts</h2></a>
<h4>
<?php $this->widget('Widget_Contents_Page_List')->to($pages); ?>
<?php while($pages->next()): ?>
<a style="color:#fff" <?php if($this->is('page', $pages->slug)): ?><?php endif; ?> href="<?php $pages->permalink(); ?>">
<?php $pages->title(); ?>
</a>
<?php endwhile; ?>
<a style="color:#fff" href="https://www.bayun.org" target="_blank">八云酱</a>
</h4>
</div>
<div class="arrow_down" data-offset="-45">
<a href="javascript:;"></a>
</div>
</div>
</header>
<main id="main" class="content homepage" role="main">
<?php while($this->next()): ?>
<article class="post-in-list post">
<section class="post-excerpt">
<a href="<?php $this->permalink() ?>">
<p>
<img class="lazy" data-url="<?php if(isset($this->fields->cover)){$this->fields->cover();}else{$this->options->themeUrl('img/header.jpg');} ?>" src="<?php if(isset($this->fields->cover)){$this->fields->cover();}else{$this->options->themeUrl('img/header.jpg');} ?>" style="display: block;">
</p>
</a>
<div class="info-mask">
<div class="mask-wrapper">
<h2 class="post-title">
<a href="<?php $this->permalink() ?>">
<?php $this->title() ?>
</a>
<span style="font-size: 1.6rem">
<?php $this->viewsNum(); ?>
</span>
</h2>
<div class="post-meta">
<span class="post-time"><?php $this->date('d M Y'); ?></span>
<span class="post-tags">
<?php $this->tags(' ', true, ''); ?>
</span>
</div>
</div>
</div>
</section>
<div class="post-excerpt-mirror">
<div class="post-excerpt-mirror-mask">
<a href="<?php $this->permalink() ?>"><p></p></a>
<div class="excert-detail-container">
<div class="post-meta">
<span class="post-time"><time><?php $this->date('d M Y'); ?></time></span>
<h2 class="post-title">
<a href="<?php $this->permalink() ?>">
<?php $this->title() ?>
</a>
</h2>
<p class="post-short-intro"><?php $this->description(); ?></p>
<span class="post-tags">
<?php $this->tags(' ', true, ''); ?>
</span>
<a href="<?php $this->permalink() ?>" class="btn-post-excerpt">阅读原文</a>
</div>
</div>
</div>
</div>
</article>
<?php endwhile; ?>
<nav class="pagination" role="navigation">
<?php $this->pageNav('上一页','下一页',10,'...');?>
</nav>
<?php $this->widget('Widget_Metas_Tag_Cloud', 'ignoreZeroCount=1&limit=50')->to($tags); ?>
<div class="widget widget-tag-cloud">
<div class="all-tags-block">
<?php while($tags->next()): ?>
<a href="<?php $tags->permalink(); ?>" class="all-tags"><?php $tags->name(); ?></a>
<?php endwhile; ?>
</div>
</div>
</main>
<?php $this->need('footer.php'); ?>