From 19fa150e57f6220543cfea5524d23277e82ec52b Mon Sep 17 00:00:00 2001 From: augushong Date: Sat, 19 Mar 2022 12:37:08 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BC=98=E5=8C=96=E7=AB=99=E7=82=B9=E5=9C=B0?= =?UTF-8?q?=E5=9B=BE=E5=92=8C=E5=8A=A8=E6=80=81=E6=A0=B7=E5=BC=8F;?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/common/tools/Sitemap.php | 7 ++----- view/index/index/index.html | 3 +++ 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/app/common/tools/Sitemap.php b/app/common/tools/Sitemap.php index 1e95d29..53badbe 100644 --- a/app/common/tools/Sitemap.php +++ b/app/common/tools/Sitemap.php @@ -26,9 +26,9 @@ class Sitemap $urlset_page_post->add($index_url); - $list_post = Post::cache(60)->where('status',1)->select(); + $list_post = Post::cache(60)->where('status', 1)->whereIn('tpl_name', [''])->select(); - foreach ($list_post as $model_post){ + foreach ($list_post as $model_post) { $url_post = new Url($model_post->read_url); $url_post->setChangeFreq('yearly'); @@ -39,7 +39,6 @@ class Sitemap $url_post->setPriority(0.9); $urlset_page_post->add($url_post); - } @@ -49,7 +48,5 @@ class Sitemap $urlset_page_post->accept($dirver); return $dirver->output(); - - } } diff --git a/view/index/index/index.html b/view/index/index/index.html index 54a3613..42824f5 100644 --- a/view/index/index/index.html +++ b/view/index/index/index.html @@ -73,6 +73,9 @@
{:get_system_config('default_author')}
+
+ {$post->create_time} +
{$post->content_html|raw}