Couple RSS questions

I’m trying to customize my RSS feed. Things I am trying to do that I can’t figure out:

  • Block the main, overall page RSS feed from ever being an option (not sure if this is possible.)
  • I use front matter to set my banner image and thumbnail for posts and I cannot for the life of me get the .Params.image to render in <media:content ... /> element
  • I am completely lost as to why the links generated in Reeder for my feed look like: //, therefore it won’t actually link to the page from the feed reader app.

My <media/> element is as follows:

<media:content type="image/jpg" medium="image" url={{ .Params.image | safeHTML }}" />

My images are hosted via Cloudinary so .Params.image is the full URL. type could be wrong. I tried image/jpeg as well but no luck.

Any help is much appreciated! :pray:

You are more likely to receive a prompt and accurate response if you post a link to the public repository for your project.


Let us see your code

Include a link to the source code repository of your project, because we really need the context of seeing your templates and partials to be able to help you. It is trivial to do a quick git clone on your repo, then run hugo server in your project, to help you out. On the other hand, recreating your code from screenshots, or sort of guessing at it, is not.

If you can’t share your repository for whatever reason, consider creating a dummy repo that you can share, which reproduces the problem you’re experiencing.

@jmooring thank you, here is a link to my repo

This is not a valid baseURL:

baseURL = "//"

Do this instead:

baseURL = ""
1 Like

@jmooring thanks! Not sure how I ended up with a baseURL like that. I’d mark it as a solution but it looks like that would close the topic and I had more than one question.

Upon further review, your site configuration has several errors. I recommend reading more about TOML.

Here’s a corrected version…

baseURL = ''
copyright = 'This work is licensed under a Creative Commons Attribution-ShareAlike 4.0 International License.'
languageCode = 'en-US'
rssLimit = 20
title = 'Jason White'

  email = ''
  name = 'Jason White'

  unsafe = true

  home = ['HTML'] # default is ['HTML','RSS']

The last line prevents an RSS feed for the home page.

1 Like

Ah, thank you! The RSS additions to my config were from me just somewhat aimlessly trying things today.

In Reeder my banner image is actually displaying in the applications list view, so it may be working fine. I think my issue with displaying the banner image in the content of the RSS feed is because the banner image isn’t part of my {{ Content }}, it’s in the header of the article in my journal’s template. I will re-organize that and see if it fixes it. I appreciate all of your help @jmooring