feat: generate sitemap.xml for SEO indexing (#1838)

This commit is contained in:
shubham oulkar
2025-04-07 22:03:44 +05:30
committed by GitHub
parent 7e9249f522
commit a29e83dead
21 changed files with 101 additions and 14 deletions

View File

@@ -1,4 +1,5 @@
---
redirect_to:
sitemap: false
redirect_to:
- https://github.com/expressjs/expressjs.com/tree/2x
---

View File

@@ -1,4 +1,5 @@
---
redirect_to:
sitemap: false
redirect_to:
- https://github.com/expressjs/expressjs.com/tree/2x
---

View File

@@ -1,4 +1,5 @@
---
redirect_to:
sitemap: false
redirect_to:
- https://github.com/expressjs/expressjs.com/tree/2x
---

View File

@@ -1,4 +1,5 @@
---
redirect_to:
sitemap: false
redirect_to:
- https://github.com/expressjs/expressjs.com/tree/2x
---

View File

@@ -1,4 +1,5 @@
---
redirect_to:
sitemap: false
redirect_to:
- https://github.com/expressjs/expressjs.com/tree/2x
---

View File

@@ -1,4 +1,5 @@
---
redirect_to:
sitemap: false
redirect_to:
- https://github.com/expressjs/expressjs.com/tree/2x
---

View File

@@ -1,4 +1,5 @@
---
redirect_to:
sitemap: false
redirect_to:
- https://github.com/expressjs/expressjs.com/tree/2x
---

View File

@@ -1,4 +1,5 @@
---
redirect_to:
sitemap: false
redirect_to:
- https://github.com/expressjs/expressjs.com/tree/2x
---

View File

@@ -1,4 +1,5 @@
---
redirect_to:
sitemap: false
redirect_to:
- https://github.com/expressjs/expressjs.com/tree/2x
---

View File

@@ -1,4 +1,5 @@
---
redirect_to:
sitemap: false
redirect_to:
- https://github.com/expressjs/expressjs.com/tree/2x
---

View File

@@ -1,4 +1,5 @@
---
redirect_to:
sitemap: false
redirect_to:
- https://github.com/expressjs/expressjs.com/tree/2x
---

View File

@@ -1,4 +1,5 @@
---
redirect_to:
sitemap: false
redirect_to:
- https://github.com/expressjs/expressjs.com/tree/2x
---

View File

@@ -1,4 +1,5 @@
---
redirect_to:
sitemap: false
redirect_to:
- https://github.com/expressjs/expressjs.com/tree/2x
---

View File

@@ -1,4 +1,5 @@
---
redirect_to:
sitemap: false
redirect_to:
- https://github.com/expressjs/expressjs.com/tree/2x
---

View File

@@ -3,6 +3,7 @@ layout: page
title: Express changelog
description: Stay updated with the release changelog for Express.js, detailing new features, bug fixes, and important changes across versions.
lang: en
sitemap: false
redirect_from:
- "/changelog/4x.html"
- "en/changelog/4x.html"

View File

@@ -6,6 +6,7 @@ menu: changelog
lang: id
redirect_from:
- "id/changelog/4x.html"
sitemap: false
---
# Release changelog

View File

@@ -5,6 +5,7 @@ menu: changelog
lang: ko
description: Stay updated with the release change log for Express.js 4.x, detailing
new features, bug fixes, and important changes across versions.
sitemap: false
---
# 업데이트 기록

65
sitemap.xml Normal file
View File

@@ -0,0 +1,65 @@
---
layout: null
sitemap: false
---
<?xml version="1.0" encoding="UTF-8"?>
<urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9" xmlns:xhtml="http://www.w3.org/1999/xhtml">
{% for lang in site.data.languages %}
<url>
{% if lang.code == 'en' %}
<loc>{{site.url}}</loc>
{% else %}
<loc>{{site.url}}/{{ lang.code }}/</loc>
{% endif %}
<xhtml:link rel="alternate" hreflang="x-default" href="{{ site.url }}" />
{% for alt_lang in site.data.languages %}
{% if alt_lang.code == 'en' %}
<xhtml:link rel="alternate" hreflang="en" href="{{ site.url }}" />
{% else %}
<xhtml:link rel="alternate" hreflang="{{ alt_lang.code }}" href="{{ site.url }}/{{ alt_lang.code }}/" />
{% endif %}
{% endfor %}
</url>
{% endfor %}
{% for page in site.html_pages %}
{% assign clean_url = page.url | split: '/' | slice: 2, page.url.size | join: '/' %}
{% if clean_url.size > 0 %}
{% if page.layout != 404 and page.sitemap != false %}
<url>
<loc>{{site.url}}{{ page.url}}</loc>
<xhtml:link rel="alternate" hreflang="x-default" href="{{ site.url }}/en/{{ clean_url }}" />
{% for lang in site.data.languages %}
<xhtml:link rel="alternate" hreflang="{{ lang.code }}" href="{{ site.url }}/{{ lang.code }}/{{ clean_url }}" />
{% endfor %}
</url>
{% endif %}
{% endif %}
{% endfor %}
<url>
<loc>https://expressjs.com/en/changelog/</loc>
</url>
{% for post in site.posts %}
<url>
<loc>{{site.url}}{{post.url}}</loc>
<lastmod>{{ post.date | date_to_xmlschema }}</lastmod>
</url>
{% endfor %}
<url>
<loc>https://nodejs.org/en/</loc>
</url>
<url>
<loc>https://openjsf.org/</loc>
</url>
<url>
<loc>https://terms-of-use.openjsf.org/</loc>
</url>
<url>
<loc>https://privacy-policy.openjsf.org/</loc>
</url>
<url>
<loc>https://github.com/expressjs/express/blob/master/Code-Of-Conduct.md</loc>
</url>
<url>
<loc>https://trademark-policy.openjsf.org/</loc>
</url>
</urlset>

View File

@@ -6,6 +6,7 @@ menu: changelog
lang: th
redirect_from:
- "th/changelog/4x.html"
sitemap: false
---
# Release changelog

View File

@@ -5,6 +5,7 @@ menu: changelog
lang: tr
description: Stay updated with the release change log for Express.js 4.x, detailing
new features, bug fixes, and important changes across versions.
sitemap: false
---
<div id="page-doc" markdown="1">
# Release Change Log

View File

@@ -1,3 +1,6 @@
---
sitemap: false
---
18.03.2016 Додано сторінки для наступних лінків:
* http://expressjs.com/uk/starter/static-files.html (у головному меню)
* http://expressjs.com/uk/guide/writing-middleware.html (у головному меню)