Giter Site home page Giter Site logo

p0ise / typecho-hpsitemap Goto Github PK

View Code? Open in Web Editor NEW
17.0 17.0 3.0 34 KB

快速生成typecho站点地图,采用百度移动sitemap协议,对百度爬虫更友好

Home Page: https://blog.irow.top/archives/256.html

License: GNU General Public License v3.0

PHP 100.00%

typecho-hpsitemap's Introduction

typecho-hpsitemap's People

Contributors

p0ise avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

typecho-hpsitemap's Issues

问题反馈:会把未来的文章也输出出来

首先感谢开发、优化这么好的插件!

有个小问题,如果文章设定日期在未来,插件仍然会在sitemap中输出,而实际该文章访问是404的。
即,如果有篇文章我提前写好,但我不想现在发出来,想在以后发出来,比如在2020年元旦,我只需要把日期设置在元旦即可,这样网站中这篇文章不会显现出来;但插件生成的sitemap中,仍会把这篇文章列出,如果蜘蛛按照这个sitemap文件过来,访问那篇文章会显示404,可能会有影响,希望能再改进、优化,再次感谢!

问题反馈:sitemap 中 post 的数据有点问题

文章路径规则是这样的,/{directory}/{cid}{year}{month}_{day}.html

然后生成的 sitemap,文章路径中的年月日全都变成了当前时间的年月日。而且 lastmod 也有问题

image

和列表的时间对不上

image

不支持sqlite3数据库,请修复谢谢

调试模式开启后显示如下内容
我的根目录为/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}

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.