ludoviclefevre / hexo-generator-seo-friendly-sitemap Goto Github PK
View Code? Open in Web Editor NEWLicense: MIT License
License: MIT License
As a side-effect from #2, any page that is not a post and doesn't use the page
layout doesn't show up in the sitemaps.
This is a problem whenever custom layouts are defined.
Using the following check here should solve the problem:
if (page.layout === 'false') {
instead of
if (page.layout !== 'page') {
rt,在hexo博客中嵌入了一些不被渲染的独立html页面,请问有什么办法让它们添加到sitemap中?
lodash which has been update to version 14.17.12 in this repo does not seem to be pulled through when pulling from npm or yarn. Both package managers still pull in lodash 14.17.11 for some reason
Google Search Console is reporting a URL on my site as indexed, not submitted in sitemap. The URL is in the sitemap but in title case, which I'm guessing Google doesn't care for.
It feels like it wouldn't hurt for the generator to output everything in lowercase, or is that naive? Could it be an option?
While my page is served at e.g. http://example.com/contact/
, the sitemap references http://example.com/contact/index.html
(notice the extra index.html
).
Is there any way around this?
The webmaster is always showing errors after submitting
I found if the site is in a subdirectory, the path is incorrect.
# URL ## If your site is put in a subdirectory, set url as 'http://yoursite.com/child' and root as '/child/' url: https://test.github.io/XXXX root: /XXXX/
the url in post-sitemap is like
https://test.github.io/XXXX/XXXX/2016/08/19/test-post/
it should be like https://test.github.io/XXXX/2016/08/19/test-post/
Thanks !
When updated
filed is missing from post front-matter, the post object will have updated
field generated automatically.
However, the updated
field will be dropped if updated_option
is set to empty
. This is useful for most short post, which won't be updated again after creation, and themes can decide to hide "updated" information when rendering the post.
Currently this plugin assumes that posts always have updated
fields (checking the implementation of post lastmod and tag/category lastmod). It will be great if we can remove this prerequisite. :D
References:
Is the project still maintaining? When I run npm audit
I get this log:
=== npm audit security report ===
Manual Review
Some vulnerabilities require your attention to resolve
Visit https://go.npm.me/audit-guide for additional guidance
Low Regular Expression Denial of Service
Package moment
Patched in >=2.19.3
Dependency of hexo-generator-seo-friendly-sitemap
Path hexo-generator-seo-friendly-sitemap > moment
More info https://nodesecurity.io/advisories/532
found 1 low severity vulnerability in 7810 scanned packages
1 vulnerability requires manual review. See the full report for details.
Hi, I am new to sitemaps.
Using this plugin generated a several files. What are they for?
Also, I have no idea how to let the generator generates the right URL to replace your site
.
<sitemap>
<loc>http://yoursite.com/post-sitemap.xml</loc>
<lastmod>2016-04-19T01:19:19.000Z</lastmod>
Need to update lodash
(https://github.com/lodash/lodash) dependency due to critical vulnerabilities.
hexo-generator-seo-friendly-sitemap/package.json
Lines 16 to 23 in 106d086
this a part content of post-sitemap.xml
<?xml version="1.0" encoding="UTF-8"?><?xml-stylesheet type="text/xsl" href="sitemap.xsl"?>
<urlset xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:image="http://www.google.com/schemas/sitemap-image/1.1" xsi:schemaLocation="http://www.sitemaps.org/schemas/sitemap/0.9 http://www.sitemaps.org/schemas/sitemap/0.9/sitemap.xsd" xmlns="http://www.sitemaps.org/schemas/sitemap/0.9">
<url>
<loc>http://cocofe.cn</loc>
<changefreq>daily</changefreq>
<priority>1</priority>
</url>
<url>
<loc>http://cocofe.cn/2017/07/25/%E5%90%8C%E6%97%B6%E5%9C%A8%E4%B8%80%E4%B8%AA%E6%9C%8D%E5%8A%A1%E5%99%A8%E4%B8%8A%E9%83%A8%E7%BD%B2%E5%A4%9A%E4%B8%AAFlask%E5%BA%94%E7%94%A8/</loc>
<lastmod>2017-07-25T01:58:33.979Z</lastmod>
<changefreq>weekly</changefreq>
<priority>0.6</priority>
</url>
<url>
<loc>http://cocofe.cn/2016/11/16/%E6%B7%BB%E5%8A%A03d-%E7%90%83%E7%8A%B6%E6%A0%87%E7%AD%BE/</loc>
<lastmod>2017-07-21T14:35:16.055Z</lastmod>
<changefreq>weekly</changefreq>
<priority>0.6</priority>
</url>
<url>
<loc>http://cocofe.cn/2017/07/18/%E7%AC%AC%E5%8D%81%E4%B8%80%E7%AB%A0%20%E6%8C%81%E6%9C%89%E5%AF%B9%E8%B1%A1/</loc>
<lastmod>2017-07-18T05:27:07.850Z</lastmod>
<changefreq>weekly</changefreq>
<priority>0.6</priority>
</url>
<url>
<loc>http://cocofe.cn/2016/07/25/%E4%B8%BAhexo%E5%A2%9E%E5%8A%A0%E6%96%87%E7%AB%A0%E5%AD%97%E6%95%B0%E7%BB%9F%E8%AE%A1%E5%8A%9F%E8%83%BD/</loc>
<lastmod>2017-07-17T02:49:39.147Z</lastmod>
<changefreq>weekly</changefreq>
<priority>0.6</priority>
</url>
<url>
<loc>http://cocofe.cn/2017/06/08/Latex%E5%85%A5%E9%97%A8/</loc>
<lastmod>2017-07-17T02:42:28.621Z</lastmod>
<changefreq>weekly</changefreq>
<priority>0.6</priority>
</url>
<url>
<loc>http://cocofe.cn/2017/06/22/Python%20%E5%87%BD%E6%95%B0%E5%8F%82%E6%95%B0%E4%BC%A0%E5%80%BC%20or%20%E4%BC%A0%E5%BC%95%E7%94%A8/</loc>
<lastmod>2017-07-13T04:19:53.223Z</lastmod>
<changefreq>weekly</changefreq>
<priority>0.6</priority>
</url>
<url>
<loc>http://cocofe.cn/2017/07/11/3Sum/</loc>
<lastmod>2017-07-11T08:23:02.157Z</lastmod>
<changefreq>weekly</changefreq>
<priority>0.6</priority>
</url>
<url>
<loc>http://cocofe.cn/2017/07/09/Roman%20to%20Integer/</loc>
<lastmod>2017-07-09T13:53:01.036Z</lastmod>
<changefreq>weekly</changefreq>
<priority>0.6</priority>
</url>
this is my sitemap address: cocofe.cn/sitemap.xml
I was wondering if you have any plans on adding support for i18n in the generated sitemap. As of now I'm running https://github.com/Jamling/hexo-generator-i18n
to generate all of the language files for our site but they do not show up in the generated sitemap.
Need to update ejs
(https://github.com/mde/ejs) dependency due to critical vulnerabilities.
hexo-generator-seo-friendly-sitemap/package.json
Lines 16 to 23 in 106d086
What would you think about an frontmatter option (e.g. nositemap: true
) to exclude a page/post?
Tell me what you think, I could take a stab at it if you don't have time but still have interest for such a PR.
There are some .js files showing up in page-sitemap.xml. Could you create a way to exclude certain extensions? Do you know why JS files are being shown in the first place?
這個插件生成後的 sitemap.xml 是一個地圖索引
那還是直接提交這個 sitemap.xml 到站長平臺麽?
還是要將 索引 内的幾個xml 分別提交?
Hi all,
is it possible to update one of the dependencies 'lodash' to version '4.17.12' as a patch was released to fix prototype pollution
Thanks!
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.