# Google News Sitemap, where does it go

**URL:** <https://forum.ghost.org/t/google-news-sitemap-where-does-it-go/16105>\
**Category:** Routing\
**Created:** [July 26, 2020, 4:01am UTC](https://forum.ghost.org/t/google-news-sitemap-where-does-it-go/16105 "2020-07-26T04:01:11Z")\
**Posts on this page:** 12\
**Page:** 1

<div class="post-metadata">

**Author:** ![ryanerickson](https://sea1.discourse-cdn.com/flex015/user_avatar/forum.ghost.org/ryanerickson/32/8797_2.png) [@ryanerickson](https://forum.ghost.org/u/ryanerickson)\
**Post date:** [July 26, 2020, 4:01am UTC](https://forum.ghost.org/t/google-news-sitemap-where-does-it-go/16105/1 "2020-07-26T04:01:11Z")

</div>

Trying to figure out where to place a newly created Google site map. Following Ghost’s [own tutorial](https://ghost.org/tutorials/create-a-google-news-sitemap/) doesn’t talk about where to place it.

Anyone?

---

<div class="post-metadata">

**Author:** ![thimiraonline](https://sea1.discourse-cdn.com/flex015/user_avatar/forum.ghost.org/thimiraonline/32/22599_2.png) [@thimiraonline](https://forum.ghost.org/u/thimiraonline)\
**Post date:** [July 26, 2020, 5:33pm UTC](https://forum.ghost.org/t/google-news-sitemap-where-does-it-go/16105/2 "2020-07-26T17:33:58Z")

</div>

Interesting

---

<div class="post-metadata">

**Author:** ![vikaspotluri123](https://sea1.discourse-cdn.com/flex015/user_avatar/forum.ghost.org/vikaspotluri123/32/24_2.png) [@vikaspotluri123](https://forum.ghost.org/u/vikaspotluri123)\
**Post date:** [July 26, 2020, 6:14pm UTC](https://forum.ghost.org/t/google-news-sitemap-where-does-it-go/16105/3 "2020-07-26T18:14:20Z")

</div>

If I understand your question correctly, you need to paste the xml in step 2 into a file called `sitemap.hbs` in the root of your theme

---

<div class="post-metadata">

**Author:** ![tolgaaaltas](https://sea1.discourse-cdn.com/flex015/user_avatar/forum.ghost.org/tolgaaaltas/32/7598_2.png) [@tolgaaaltas](https://forum.ghost.org/u/tolgaaaltas)\
**Post date:** [July 26, 2020, 9:17pm UTC](https://forum.ghost.org/t/google-news-sitemap-where-does-it-go/16105/4 "2020-07-26T21:17:43Z")

</div>

1. Download your current theme from Ghost Admin.
2. Create sitemap.hbs in your theme directory and add this code inside of file:

```auto
<?xml version="1.0" encoding="UTF-8"?>
<urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9" xmlns:news="http://www.google.com/schemas/sitemap-news/0.9">
  {{#get "posts" limit="1000" order="published_at desc" include="tags"}}
    {{#foreach posts visibility="all"}}
    <url>
      <loc>{{url absolute="true"}}</loc>
      <news:news>
        <news:publication>
          <news:name>{{@site.title}}</news:name>
          <news:language>{{lang}}</news:language>
        </news:publication>
        {{#if @labs.members}}
          {{#has visibility="member"}}
            <news:access>Registration</news:access>
          {{/has}}
          {{#has visibility="paid"}}
            <news:access>Subscription</news:access>
          {{/has}}
        {{/if}}
        <news:genres>Blog</news:genres>
        <news:publication_date>{{date published_at format="YYYY-MM-DDTHH:mm:ssZ"}}</news:publication_date>
        <news:title>{{title}}</news:title>
        <news:keywords>{{tags limit="5" autolink="false"}}</news:keywords>
      </news:news>
    </url>
    {{/foreach}}
  {{/get}}
</urlset>

```

1. Upload your theme on Ghost Admin.
2. Go to Labs \> Routes \> and click Download current routes.yml
3. Edit routes.yaml with Notepad (or Notepad++) and add this code:

```auto
routes:
  /sitemap/:
    template: sitemap
    content_type: text/xml

```

1. Save and upload your new routes.yaml file on Ghost Admin.
2. You can see result on `/sitemap/`

---

<div class="post-metadata">

**Author:** ![thimiraonline](https://sea1.discourse-cdn.com/flex015/user_avatar/forum.ghost.org/thimiraonline/32/22599_2.png) [@thimiraonline](https://forum.ghost.org/u/thimiraonline)\
**Post date:** [July 26, 2020, 9:25pm UTC](https://forum.ghost.org/t/google-news-sitemap-where-does-it-go/16105/5 "2020-07-26T21:25:14Z")

</div>

I don’t know what is this. What we can do with it? Please explain. I’m new to ghost. 🙂

---

<div class="post-metadata">

**Author:** ![tolgaaaltas](https://sea1.discourse-cdn.com/flex015/user_avatar/forum.ghost.org/tolgaaaltas/32/7598_2.png) [@tolgaaaltas](https://forum.ghost.org/u/tolgaaaltas)\
**Post date:** [July 26, 2020, 9:31pm UTC](https://forum.ghost.org/t/google-news-sitemap-where-does-it-go/16105/6 "2020-07-26T21:31:29Z")

</div>

Google News requires special sitemap file for their service. If you wanted to listed on Google News, you should create new file for Google News.

---

<div class="post-metadata">

**Author:** ![thimiraonline](https://sea1.discourse-cdn.com/flex015/user_avatar/forum.ghost.org/thimiraonline/32/22599_2.png) [@thimiraonline](https://forum.ghost.org/u/thimiraonline)\
**Post date:** [July 26, 2020, 9:34pm UTC](https://forum.ghost.org/t/google-news-sitemap-where-does-it-go/16105/7 "2020-07-26T21:34:40Z")

</div>

If I created the file, how coukd I add it into Google news? Which option should I use? And which url should I use.

 ![image](https://us1.discourse-cdn.com/flex015/uploads/ghost2/original/2X/5/5d4cd50fb2ef833b26adf2ec33646e2a9a78bea7.jpeg)

---

<div class="post-metadata">

**Author:** ![tolgaaaltas](https://sea1.discourse-cdn.com/flex015/user_avatar/forum.ghost.org/tolgaaaltas/32/7598_2.png) [@tolgaaaltas](https://forum.ghost.org/u/tolgaaaltas)\
**Post date:** [July 26, 2020, 9:41pm UTC](https://forum.ghost.org/t/google-news-sitemap-where-does-it-go/16105/8 "2020-07-26T21:41:16Z")

</div>

I’m not sure and I don’t want to mislead you. Maybe you can find on Google’s official guides.

---

<div class="post-metadata">

**Author:** ![thimiraonline](https://sea1.discourse-cdn.com/flex015/user_avatar/forum.ghost.org/thimiraonline/32/22599_2.png) [@thimiraonline](https://forum.ghost.org/u/thimiraonline)\
**Post date:** [July 26, 2020, 9:42pm UTC](https://forum.ghost.org/t/google-news-sitemap-where-does-it-go/16105/9 "2020-07-26T21:42:30Z")

</div>

Thank you, I’ll check. ❤

---

<div class="post-metadata">

**Author:** ![giacomosilli](https://sea1.discourse-cdn.com/flex015/user_avatar/forum.ghost.org/giacomosilli/32/3403_2.png) [@giacomosilli](https://forum.ghost.org/u/giacomosilli)\
**Post date:** [July 28, 2020, 11:22am UTC](https://forum.ghost.org/t/google-news-sitemap-where-does-it-go/16105/10 "2020-07-28T11:22:18Z")

</div>

This is interesting, I will also try to create the new sitemap.

It is not clear to me, however, whether you need to add the site to the [Publisher Center](https://publishercenter.google.com/settings/accounts).

However, it seems that it is no longer strictly necessary:

> Publishers are no longer required to submit their site in order to be eligible for the Google News app and website. Publishers are automatically considered for the Top News section or for the News tab of the Research. All they have to do is produce high-quality content and comply with the Google News content policy.

Anyone have more information?

Thank you

---

<div class="post-metadata">

**Author:** ![giacomosilli](https://sea1.discourse-cdn.com/flex015/user_avatar/forum.ghost.org/giacomosilli/32/3403_2.png) [@giacomosilli](https://forum.ghost.org/u/giacomosilli)\
**Post date:** [July 30, 2020, 11:59am UTC](https://forum.ghost.org/t/google-news-sitemap-where-does-it-go/16105/11 "2020-07-30T11:59:32Z")

</div>

The sitemap documentation should be updated

This is the error from GScan:

 ![Cattura](https://us1.discourse-cdn.com/flex015/uploads/ghost2/original/2X/8/8bcd97eae126d60e2630b69ec23211abaf576220.png)

After a bit of research I realized that Github Action also has problems if it does not make this change.

---

<div class="post-metadata">

**Author:** ![Bert\_O](https://sea1.discourse-cdn.com/flex015/user_avatar/forum.ghost.org/bert_o/32/13856_2.png) [@Bert\_O](https://forum.ghost.org/u/Bert_O)\
**Post date:** [July 14, 2021, 7:50pm UTC](https://forum.ghost.org/t/google-news-sitemap-where-does-it-go/16105/12 "2021-07-14T19:50:50Z")

</div>

Does anyone know how to exclude tags from the news sitemap [Tutorials](https://ghost.org/docs/tutorials/create-a-google-news-sitemap/)?
