diff --git a/module/postlist.php b/module/postlist.php index 6fc8b18..e76850f 100644 --- a/module/postlist.php +++ b/module/postlist.php @@ -1,66 +1,83 @@ next()): ?> -
-
-

- - title() ?> - created) < 60*60*24*3): ?> - - - - - - -

-
- fields->summary){ - echo $this->fields->summary; - } else { - $this->excerpt(180); - }?> -
-
- - - - - - - - - category(','); ?> - - - - - - - commentsNum('0 ', '1 ', '%d '); ?> -
-
- cid); - $cover = $this->fields->cover; - $imageToDisplay = !empty($cover) ? $cover : $firstImage; - if($imageToDisplay): + categories; + $memosMid = $this->options->memos; // 获取主题设置中的说说分类 mid + $isMemos = false; + + // 检查当前文章是否属于说说分类 + foreach ($categories as $category) { + if ($category['mid'] == $memosMid) { + $isMemos = true; + break; + } + } + + // 根据是否为说说分类使用不同的显示模板 + if ($isMemos): ?> - - <?php $this->title() ?> - - -
- \ No newline at end of file +
+
+
+ + ' class="humane--time" href="permalink() ?>" + itemprop="datePublished"> + date('Y-m-d'); ?> + +
+
+ excerpt(200, '...'); ?> +
+
+
+ +
+
+

+ + title() ?> + created) < 60*60*24*3): ?> + + + + + +

+
+ fields->summary){ + echo $this->fields->summary; + } else { + $this->excerpt(180); + }?> +
+
+ + + + category(','); ?> + + + + + + commentsNum('0 ', '1 ', '%d '); ?> +
+
+ cid); + $cover = $this->fields->cover; + $imageToDisplay = !empty($cover) ? $cover : $firstImage; + if($imageToDisplay): + ?> + + <?php $this->title() ?> + + +
+ + \ No newline at end of file