html 分两步创建站点地图

Posted

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了html 分两步创建站点地图相关的知识,希望对你有一定的参考价值。

<!--
For sites and blogs with posts that are accessed directly by their html pages,
ie. http://example.com/my-blog-post.html or http://example.com/blog/my-blog-post.html, use:
-->

---
# Remember to set production_url in your _config.yml file!
title : Sitemap
sitemap_exclude: y
---

{% for page in site.pages %}
  {% if page.sitemap_exclude != 'y' %}
    {{site.production_url}}{{ page.url | remove: '/index.html' }}
  {% endif %}
{% endfor %}

{% for post in site.posts %}
  {{site.production_url}}{{ post.url }}
{% endfor %}

<!-- 
In the example above, /index.html is removed from the site's root url in the sitemap, so the homepage is listed as http://example.com instead of http://example.com/index.html.

For blogs with posts that go into folders and are accessed via the folder, ie. http://example.com/my-blog-post/ file, (you may want to also remove the index.html or /index.html depending on your setup) use: 
-->

---
# Remember to set production_url in your _config.yml file!
title : Sitemap
sitemap_exclude: y
---

{% for page in site.pages %}
  {% if page.sitemap_exclude != 'y' %}
    {{site.production_url}}{{ page.url | remove: '/index.html' }}
  {% endif %}
{% endfor %}

{% for post in site.posts %}
  {{site.production_url}}{{ post.url | remove: 'index.html' }}
{% endfor %}

<!-- 
2) Add sitemap_exclude: y to the front-matter of any pages you don't want included in the sitemap. 
-->

以上是关于html 分两步创建站点地图的主要内容,如果未能解决你的问题,请参考以下文章

SQL order by 分两步

MinMax 树 - 当 Min 可以分两步获胜时

HTML5:为iPhone创建一个动态Google地图站点w/Marker

Python小程序之「读取站点地图 自动为Gitalk创建Issues」

题目1191:矩阵最大值-----------------主要是数组的输入和处理分两步进行

如何使用 zend 框架创建站点地图?