Skip to content

generating sitemap.xml for static content sites, alongwith some dynamic links support

License

Notifications You must be signed in to change notification settings

abhishekkr/mysitemap

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Generate custom sitemap.xml

written in Nim, latest linux binary available in root of repo

This project was primarily written as part of a Nim tutorial; also to help generating sitemap.xml file for my site abhishekkr.github.io. This has blogs page which renders content directly from Markdown files present and the specific blog links are a combination of hash string with same base blog link. Making it hard for search engines to identify different pages.

HowTo Use

  • to show help
$ nim c -r src/mysitemap.nim --help
  • to generate full sitemap with dynamic/markdown links
$ nim c -r src/mysitemap.nim --site='https://abhishekkr.github.io' --site-path='.' --md-url='/blog.html#/blogs' --md-path=./blogs
  • to generate sitemap without dynamic/markdown links
$ nim c -r src/mysitemap.nim --site='https://abhishekkr.github.io' --site-path='.' --skipmd
  • using current dir as site path, for sitemap without dynamic/markdown links
$ nim c -r src/mysitemap.nim --site='https://abhishekkr.github.io' --skipmd

About

generating sitemap.xml for static content sites, alongwith some dynamic links support

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Sponsor this project

Packages

No packages published

Languages