Fix sitemap
This commit is contained in:
parent
cdc505e75e
commit
df93553a41
|
@ -2,6 +2,7 @@
|
||||||
<html lang="en">
|
<html lang="en">
|
||||||
<head>
|
<head>
|
||||||
<title>{{page.title}}</title>
|
<title>{{page.title}}</title>
|
||||||
|
<link rel="sitemap" type="application/xml" title="Sitemap" href="/sitemap.xml">
|
||||||
{% include header.html %}
|
{% include header.html %}
|
||||||
</head>
|
</head>
|
||||||
<body>
|
<body>
|
||||||
|
|
|
@ -0,0 +1,2 @@
|
||||||
|
Sitemap: https://news.tatooine.club/sitemap.xml
|
||||||
|
User-agent: *
|
|
@ -0,0 +1,14 @@
|
||||||
|
---
|
||||||
|
---
|
||||||
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
|
<urlset xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
||||||
|
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">
|
||||||
|
{% assign pages = site.html_pages | where_exp:'doc','doc.url != "/404.html"' %}
|
||||||
|
{% for page in pages %}
|
||||||
|
<url>
|
||||||
|
<loc>{{ page.url | replace:'/index.html','/' | absolute_url | xml_escape }}</loc>
|
||||||
|
{% if page.date}<lastmod>{{ page.date | date_to_xmlschema }}</lastmod>{%endif%}
|
||||||
|
</url>
|
||||||
|
{% endfor %}
|
||||||
|
</urlset>
|
Loading…
Reference in New Issue