summaryrefslogtreecommitdiffstats
path: root/index.php
diff options
context:
space:
mode:
author时光 <i@timemc.cn>2019-12-05 07:28:58 +0000
committerGitHub <noreply@github.com>2019-12-05 07:28:58 +0000
commit865403de49afc5a107cbbfafe6b1358a860c7844 (patch)
treed70e7b9bca221306b828ccca23f59edecdaa21af /index.php
parentf9b5343da14452b3949b56e6bd5bf9e0ff7515ed (diff)
Perf:优化移动端进入文章触发范围
Diffstat (limited to 'index.php')
-rw-r--r--index.php6
1 files changed, 3 insertions, 3 deletions
diff --git a/index.php b/index.php
index 0a3f38a..57cf10d 100644
--- a/index.php
+++ b/index.php
@@ -46,15 +46,14 @@ $this->need('includes/header.php');
</div>
<!-- 移动端卡片 -->
<div class="post-item small-screen">
+ <a href="<?php $this->permalink(); ?>" class="post-link">
<div class="post-banner-box-ss">
<div class="post-banner-ss">
<img src="/usr/themes/Miracles/images/loading.gif" data-original="<?php if($this->fields->banner && $this->fields->banner=!''): ?><?php echo $this->fields->banner(); ?><?php else: ?><?php Utils::indexTheme('images/postbg/'); ?><?php echo mt_rand(1,20); ?>.jpg<?php endif; ?>">
</div>
</div>
<div class="post-item-content-ss">
- <a href="<?php $this->permalink(); ?>" class="post-link">
<h1 class="post-title-ss"><?php $this->sticky(); ?><?php $this->title(); ?></h1>
- </a>
<p class="post-excerpt">
<?php if($this->fields->excerpt && $this->fields->excerpt!='') {
echo $this->fields->excerpt;
@@ -64,6 +63,7 @@ $this->need('includes/header.php');
?></p>
<p class="post-meta"><i class="iconfont icon-block"></i> <?php $this->category(','); ?>&emsp;<i class="iconfont icon-comments"></i> <?php $this->commentsNum('None', 'Only 1', '%d'); ?>&emsp;<i class="iconfont icon-clock"></i> <?php $this->date(); ?></p>
</div>
+ </a>
</div>
<br />
<?php endwhile; ?>
@@ -77,4 +77,4 @@ $this->need('includes/header.php');
<!-- 防止找不到 owo 容器而报错 -->
<div style="display:none" class="OwO"></div>
-<?php $this->need('includes/footer.php'); ?> \ No newline at end of file
+<?php $this->need('includes/footer.php'); ?>