Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/abhishekkr/mysitemap
generating sitemap.xml for static content sites, alongwith some dynamic links support
https://github.com/abhishekkr/mysitemap
nim nim-lang sitemap sitemap-generator sitemap-xml sitemap-xml-generator
Last synced: 24 days ago
JSON representation
generating sitemap.xml for static content sites, alongwith some dynamic links support
- Host: GitHub
- URL: https://github.com/abhishekkr/mysitemap
- Owner: abhishekkr
- License: mit
- Created: 2023-01-01T00:55:39.000Z (about 2 years ago)
- Default Branch: main
- Last Pushed: 2023-01-01T01:14:28.000Z (about 2 years ago)
- Last Synced: 2024-11-24T17:09:01.536Z (2 months ago)
- Topics: nim, nim-lang, sitemap, sitemap-generator, sitemap-xml, sitemap-xml-generator
- Language: Nim
- Homepage:
- Size: 77.1 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
## 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](https://abhishekkr.github.io/blog.html#/blogs/2023-01-01-nim-generate-sitemap.md); also to help generating sitemap.xml file for my site [abhishekkr.github.io](https://abhishekkr.github.io/blog.html).
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
```---