diff options
| author | Eltrac Koalar <hi@guhub.cn> | 2022-09-24 23:59:15 +0800 |
|---|---|---|
| committer | Eltrac Koalar <hi@guhub.cn> | 2022-09-24 23:59:15 +0800 |
| commit | d23f16c5ffe7c8fe2e68d5dabb01761178aa7781 (patch) | |
| tree | 59f3c37cfefbd2e736986fab902174ebb6886a54 /libs/Matcha.php | |
| parent | db86bb4726d28d679e425d09e5b98672ede1ac10 (diff) | |
:link: Perf: 相关链接只在首页展示
Diffstat (limited to 'libs/Matcha.php')
| -rw-r--r-- | libs/Matcha.php | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/libs/Matcha.php b/libs/Matcha.php index c968410..717680d 100644 --- a/libs/Matcha.php +++ b/libs/Matcha.php @@ -487,8 +487,7 @@ class Matcha <h2>'.$post->title.'</h2> <p>'; $post->excerpt(30); - echo '</p> - </a>'; + echo '</p></a>'; } //如果是自定义链接 else { @@ -498,8 +497,7 @@ class Matcha } echo '<a href="'.$item['link'].'" target="_blank"> <h2>'.$item['title'].'</h2> - <p>'.$item['des'].'</p> - </a>'; + <p>'.$item['des'].'</p></a>'; } echo '</div>'; |
