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}