News Sitemap for Ghost

I am sorry if this has been already answered. I have recently migrated my website from Wordpress to Ghost. Everything is perfect! But I have one problem: I am new to Node.JS and I have absolutely no idea how I can implement a news sitemap for my website. Can anyone please point me in the right direction?

Website URL:

Best regards.


Nevermind, I figured it.

  1. Add this to your route.yml:

    permalink: /news/sitemap/
    template: news

  2. Add news.hbs to your theme folder:

<?xml version="1.0" encoding="UTF-8"?>
<urlset xmlns="" xmlns:news=""> 
	{{#get "posts" limit="3"}}
	{{#foreach posts}}
		<loc>{{url absolute="true"}}</loc> 
				<news:name>Hack Hex</news:name> 
			<news:publication_date>{{date format="YYYY-MM-DD"}}</news:publication_date> 
1 Like