# RSS link format for top navigation

**URL:** <https://discourse.gohugo.io/t/rss-link-format-for-top-navigation/22848>\
**Category:** support\
**Created:** [January 16, 2020, 4:15pm UTC](https://discourse.gohugo.io/t/rss-link-format-for-top-navigation/22848 "2020-01-16T16:15:19Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![apolaine](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.gohugo.io/apolaine/32/9188_2.png) [@apolaine](https://discourse.gohugo.io/u/apolaine)\
**Post date:** [January 16, 2020, 4:15pm UTC](https://discourse.gohugo.io/t/rss-link-format-for-top-navigation/22848/1 "2020-01-16T16:15:19Z")

</div>

Hi folks – since RSSLink is depreciated, I have a question about forming a link to the RSS feed to go in my navigation, not in the head tags. I only want the feed to reference the updates (posts), regardless of where the user is on the site, since the top navigation is ever present. This appears to work, but is it okay to form hard-coded links like this?

```
<a href="{{ .Site.BaseURL }}updates/index.xml" data-animate-hover="pulse" class="rss" target="_blank">

```

Thanks,

Andy

---

<div class="post-metadata">

**Author:** ![b\_rad](https://avatars.discourse-cdn.com/v4/letter/b/b2d939/32.png) [@b\_rad](https://discourse.gohugo.io/u/b_rad)\
**Post date:** [January 17, 2020, 1:13pm UTC](https://discourse.gohugo.io/t/rss-link-format-for-top-navigation/22848/2 "2020-01-17T13:13:05Z")

</div>

Sure, but a better solution would be something like this although I haven’t tested it directly.

```auto
{{with (.Site.GetPage "/updates").OutputFormats.Get "rss"}}{{.RelPermalink}}{{end}}

```

---

<div class="post-metadata">

**Author:** ![apolaine](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.gohugo.io/apolaine/32/9188_2.png) [@apolaine](https://discourse.gohugo.io/u/apolaine)\
**Post date:** [January 18, 2020, 9:52am UTC](https://discourse.gohugo.io/t/rss-link-format-for-top-navigation/22848/3 "2020-01-18T09:52:25Z")

</div>

Ah, yes, brilliant thanks. That worked.

---

<div class="post-metadata">

**Author:** ![b\_rad](https://avatars.discourse-cdn.com/v4/letter/b/b2d939/32.png) [@b\_rad](https://discourse.gohugo.io/u/b_rad)\
**Post date:** [January 20, 2020, 2:15am UTC](https://discourse.gohugo.io/t/rss-link-format-for-top-navigation/22848/4 "2020-01-20T02:15:51Z")

</div>

Great, would you mind marking this as solved? Thanks!

---

<div class="post-metadata">

**Author:** ![apolaine](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.gohugo.io/apolaine/32/9188_2.png) [@apolaine](https://discourse.gohugo.io/u/apolaine)\
**Post date:** [January 20, 2020, 6:51am UTC](https://discourse.gohugo.io/t/rss-link-format-for-top-navigation/22848/5 "2020-01-20T06:51:26Z")

</div>

Yes, sorry, forgot to do that!
