mirror of
https://github.com/jkjoy/typecho-theme-farallon.git
synced 2026-06-27 23:34:25 +00:00
0.7.1
修复了一个<div>未闭合的bug 优化分页和加载更多逻辑
This commit is contained in:
+4
-3
@@ -1,5 +1,5 @@
|
||||
<?php if (!defined('__TYPECHO_ROOT_DIR__')) exit; ?>
|
||||
<div class="post--cards">
|
||||
<div class="post--cards" id="loadposts">
|
||||
<?php while($this->next()): ?>
|
||||
<?php // 获取文章图片
|
||||
$default_thumbnail = Helper::options()->themeUrl . '/assets/images/nopic.svg';
|
||||
@@ -13,7 +13,7 @@
|
||||
$imageToDisplay = $firstImage;
|
||||
}
|
||||
?>
|
||||
<article class="post--card">
|
||||
<article class="post--card" id="loadpost" itemscope itemtype="http://schema.org/Article">
|
||||
<img src="<?php echo $imageToDisplay; ?>" alt="<?php $this->title() ?>" class="cover" itemprop="image"/>
|
||||
<div class="content">
|
||||
<h2 class="post--title">
|
||||
@@ -34,4 +34,5 @@
|
||||
</div>
|
||||
</div>
|
||||
</article>
|
||||
<?php endwhile; ?>
|
||||
<?php endwhile; ?>
|
||||
</div>
|
||||
Reference in New Issue
Block a user