New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature request: support shortcode output format for RSS feeds #5204

Open
max-arnold opened this Issue Sep 12, 2018 · 0 comments

Comments

Projects
None yet
1 participant
@max-arnold

max-arnold commented Sep 12, 2018

Background

There are multiple cases where people try to render the .Content slightly differently for RSS feeds:

This is possible to do after #3220 was implemented, by setting page = ["HTML", "RSS"] and adding SHORTCODE.rss.xml template variant. Unfortunately, this setting produces per-page RSS feeds which is suboptimal and can mislead some RSS readers (wrong RSS link).

Also there is slightly adjacent request to allow page context in shortcodes: https://discourse.gohugo.io/t/page-context-in-shortcodes/284

Feature proposal

  1. Allow shortcode output format to be selected based on home/section output format.
  2. Maybe also use page Kind in the shortcode template lookup order. This would allow to solve the adjacent use case https://discourse.gohugo.io/t/page-context-in-shortcodes/284

Plus it makes sense to document format- and language-dependent shortcode lookup order here https://gohugo.io/templates/shortcode-templates/#shortcode-template-lookup-order

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment