Skip to content
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

Allow excerpt/read more #2

Open
okelet opened this issue Jun 14, 2019 · 1 comment
Open

Allow excerpt/read more #2

okelet opened this issue Jun 14, 2019 · 1 comment

Comments

@okelet
Copy link

okelet commented Jun 14, 2019

Right now, the feed contains the full content of the posts. It would be useful to allow by configuration to show only the excerpt, including a read more link, like in the posts list.

https://gohugo.io/content-management/summaries/

@kaushalmodi
Copy link
Owner

Right now the whole .Content is published in the feed.

{{ printf `<content type="html"><![CDATA[%s%s]]></content>` $description .Content | safeHTML }}

I can add an option to show only an excerpt, though, not sure what the best way would be to add a "Read More" link. I can probably end the content string in "...". User then just clicks the title to read the full content.

PS: I am a believer of not have to redirect the user just to see the full content (to be further spammed by ads, unnecessary JS, etc.), when the feed itself has the ability to show the full content.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants