Skip to content

Sitemap #1815

Answered by leessang01
danywebxx asked this question in Q&A
Sitemap #1815
Jun 19, 2024 · 2 comments · 12 replies
Discussion options

You must be logged in to vote

Hi,
AFAIK, jekyll-sitemap is used to generate sitemap.xml by default. You can see this sentence on their readme.

Jekyll plugin to silently generate a sitemaps.org compliant sitemap for your Jekyll site

However, I think sitemap.xml generated by jekyll-sitemap has a little unnecessary URLs such as tags, archives, about, etc. So you can make your own sitemap.xml generated by liquid. You just put sitemap.xml file (see below) on your root directory and it will work.

Here is the content of sitemap.xml I used. You can see my sitemap generated by this code.
I hope you find my answer useful.

---
layout: null
---
<?xml version="1.0" encoding="UTF-8"?>
<urlset xmlns:xsi="http://www.w3.org/2001/XML…

Replies: 2 comments 12 replies

Comment options

You must be logged in to vote
0 replies
Answer selected by danywebxx
Comment options

You must be logged in to vote
12 replies
@SoumyaK4
Comment options

@MhmRhm
Comment options

@SoumyaK4
Comment options

@MhmRhm
Comment options

@SoumyaK4
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
4 participants