-
Notifications
You must be signed in to change notification settings - Fork 12
/
Copy pathindex.php
50 lines (48 loc) · 1.29 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
<?php
/**
* 一款大气时尚适合写作的博客主题
*
* @package Note
* @author Weic
* @version 1.0
* @link http://weic.me
*/
if (!defined('__TYPECHO_ROOT_DIR__')) exit;
$this->need('header.php');?>
<div class="body-layout">
<?php if ($this->options->indexBGUrl): ?>
<div class="index-header" style=""></div>
<style type="text/css">
.index-header{
background:url(<?php $this->options->indexBGUrl() ?>);
background-size: 100% 100%;
background-repeat:no-repeat;
}
@media screen and (max-width:960px) {
.index-header{
background:url(<?php $this->options->indexBGUrl() ?>);
background-size: atom;
background-position:center;
}
}
</style>
<?php endif; ?>
<div class="index-container">
<?php while($this->next()): ?>
<div class="index-post-layout">
<article class="index-post-abstract">
<header>
<h2><a href="<?php $this->permalink() ?>"><?php $this->title() ?></a></h2>
<time datetime="<?php $this->date('c'); ?>"> <?php $this->date('F j, Y'); ?></time>
</header>
<section>
<?php $this->excerpt(120, ' ...'); ?>
</section>
</article>
</div>
<?php endwhile; ?>
<?php $this->need('navigator.php'); ?>
</div>
<?php $this->need('page-footer.php'); ?>
</div>
<?php $this->need('footer.php'); ?>