View Code? Open in Web Editor
NEW
快速生成typecho站点地图,采用百度移动sitemap协议,对百度爬虫更友好
Home Page: https://blog.irow.top/archives/256.html
License: GNU General Public License v3.0
typecho-hpsitemap's Introduction
typecho-hpsitemap's People
Contributors
Watchers
typecho-hpsitemap's Issues
首先感谢开发、优化这么好的插件!
有个小问题,如果文章设定日期在未来,插件仍然会在sitemap中输出,而实际该文章访问是404的。
即,如果有篇文章我提前写好,但我不想现在发出来,想在以后发出来,比如在2020年元旦,我只需要把日期设置在元旦即可,这样网站中这篇文章不会显现出来;但插件生成的sitemap中,仍会把这篇文章列出,如果蜘蛛按照这个sitemap文件过来,访问那篇文章会显示404,可能会有影响,希望能再改进、优化,再次感谢!
文章路径规则是这样的,/{directory}/{cid}{year}{month}_{day}.html
然后生成的 sitemap,文章路径中的年月日全都变成了当前时间的年月日。而且 lastmod 也有问题
和列表的时间对不上
感觉该给的权限都给了,777
是不是数据库不支持sqlite?
设置如下
调试模式开启后显示如下内容
我的根目录为/mnt/sda1/web
SQLSTATE[HY000]: General error: 1 no such function: unix_timestamp
Typecho_Db_Query_Exception: SQLSTATE[HY000]: General error: 1 no such function: unix_timestamp in /mnt/sda1/web/var/Typecho/Db/Adapter/Pdo.php:105
Stack trace:
#0 /mnt/sda1/web/var/Typecho/Db.php(353): Typecho_Db_Adapter_Pdo->query('SELECT "mid", "...', Object(PDO), 1, 'SELECT')
#1 /mnt/sda1/web/var/Typecho/Db.php(384): Typecho_Db->query(Object(Typecho_Db_Query), 1)
#2 /mnt/sda1/web/usr/plugins/HPSitemap/Update.php(84): Typecho_Db->fetchAll(Object(Typecho_Db_Query))
#3 /mnt/sda1/web/var/Widget/Do.php(82): HPSitemap_Update->action()
#4 /mnt/sda1/web/var/Typecho/Widget.php(221): Widget_Do->execute()
#5 /mnt/sda1/web/var/Typecho/Router.php(135): Typecho_Widget::widget('Widget_Do', NULL, Array)
#6 /mnt/sda1/web/index.php(23): Typecho_Router::dispatch()
#7 {main}