-
Notifications
You must be signed in to change notification settings - Fork 90
/
index.php
64 lines (60 loc) · 3.38 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
<?php
/**
* 书写属于自己的篇章
*
* <a href="https://github.com/Siphils/Typecho-Theme-Aria" target="_blank">Github</a> | <a href="https://eriri.ink" target="_blank">Home</a>
*
* @package Aria
* @author Siphils
* @version 1.9.0
* @link https://eriri.ink/archives/Typecho-Theme-Aria.html
*/
if (!defined('__TYPECHO_ROOT_DIR__')) exit;
$this->need('header.php');
?>
<div id="main" class="col-mb-12 col-8 col-offset-2" >
<?php while($this->next()): ?>
<article itemscope itemtype="http://schema.org/BlogPosting" class="card animated wow fadeIn" data-wow-duration="1s" data-wow-offset="10">
<div class="card-title">
<a href="<?php $this->permalink(); ?>"><?php $this->sticky();$this->title(); ?></a>
</div>
<div class="card-meta-top">
<span class="card-meta-cate"><i class="iconfont icon-aria-category"></i> <?php $this->category(' • ',true,'无'); ?></span><span class="card-meta-date"><i class="iconfont icon-aria-date"></i> <?php $this->date(); ?></span>
</div>
<a href="<?php $this->permalink(); ?>">
<?php if(Utils::isEnabled('enableLazyload','AriaConfig')): ?>
<div class="card-thumbnail lazyload" data-original=<?php if($this->fields->thumbnail)
$this->fields->thumbnail();
else
echo Utils::getThumbnail();
?> style="background:url(<?php $this->options->themeUrl('assets/img/loading.svg') ?>) center center no-repeat;background-size: 100% auto;">
</div>
<?php else: ?>
<div class="card-thumbnail" style="background:url(<?php if($this->fields->thumbnail)
$this->fields->thumbnail();
else
echo Utils::getThumbnail();
?>) center center no-repeat;background-size: 100% auto;">
</div>
<?php endif; ?>
</a>
<div class="card-body"><?php
if($this->fields->previewContent)
$this->fields->previewContent();
else
$this->excerpt(50, '...');
?></div>
<div class="card-line"></div>
<ul class="card-meta-bottom">
<li class="card-meta-label card-meta-more"><a href="<?php $this->permalink(); ?>" title="Read More" target="_blank"><i class="iconfont icon-aria-more"></i><i class="iconfont icon-aria-more"></i></a></li>
<li class="card-meta-label card-meta-views card-meta-right"><i class="iconfont icon-aria-view"></i> <?php Contents::getPostView($this); ?></li>
<li class="card-meta-label card-meta-comments card-meta-right"><i class="iconfont icon-aria-comment"></i> <?php $this->commentsNum('%d'); ?></li>
<!--li class="card-meta-label card-meta-likes"></li-->
</ul>
</article>
<?php endwhile; ?>
<div id="page-nav">
<?php $this->pageNav('<', '>',1,'...',array('wrapTag' => 'ul', 'wrapClass' => '','itemTag' => 'li','currentClass' => 'page-current',)); ?>
</div>
</div><!-- end #main-->
<?php $this->need('footer.php'); ?>