-
Notifications
You must be signed in to change notification settings - Fork 13
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
Enhanced feed attributes and multi-lang support #3
Conversation
It will take me little time to properly review this PR, but looking at the effort you put in writing the change log, it looks super! It would have been quicker to merge if you retained the indentation offset and left the stylistic changes in followup commits. I would like to keep the indentation offset to 4 spaces (as that's the norm in Hugo repo), even though I love the 2-space offset which I use in my Nim projects. |
I still haven't thoroughly reviewed this, but based on my initial review, few questions:
Why is that necessary? The permalink will still be unique.
Seems like that change relies on |
@jpawlowski Thanks for your PR. Please be patient as I manually commit some of the below changes below; will also give reasons why I do I commit those few pieces. Merged
Merged indirectly
Not merging
|
- https://validator.w3.org/feed/docs/atom.html - Thanks to @jpawlowski for suggesting to add this in #3.
You may want to wait a little as I am currently extending the patch. |
- Thanks to @jpawlowski for adding this in #3. This commit is a modified version of that change where we simply loop through all .OutputFormats instead of hard-coding each .Get.
@jpawlowski As you see, I see have piecewise commits; one for each feature. Can you create additional PR's rebased off the latest master? |
- Thanks to @jpawlowski for adding this in #3.
- Thanks to @jpawlowski for adding this in #3. This commit is a modified version of how the original author added this feature in their PR.
From https://validator.w3.org/feed/docs/atom.html:
So if UUID is used, it needs to be permanent. In this PR, you are deriving the UUID based off the
The UUID change is adding unnecessary complication without any real gain. What do you think? |
- Thanks to @jpawlowski for adding this in #3. Additional reference about the RSS Limit: https://discourse.gohugo.io/t/rsslimit-not-working-in-hugo-0-55/18096/2?u=kaushalmodi
Will probably do that, let me see how to merge this somehow... missing peaces are contributor sections and embedded images. Also, the authors identification is more flexible for multiple themes (as they use different node and formats).
I have my own interpretation, based on the IETF RFC document.
That being said, I believe it is obvious why the entry identifier must be changed to use Regarding the feed ID, we could actually keep |
What is the "super_username" concept? I searched the forums and did not see anyone mentioning it. Seems like not many themes set the "super_username" in the scratch. Even if they do, it looks like a hack. I'd rather have the users take time to simply set a |
Yea, I agree. It indeed seems a little special to the theme from @gcushen I am using. |
I think that's not a frequent occurrence.
That is also not very stable. I have seen users rename the post URLs and even the subdirectories (post -> posts -> blog -> ..). So considering that the feed and entry id's are actually a big deal, we can optionally use That way, a user conscious about keeping the id permanent that control it in the params, else it default to the |
That might be the best compromise. |
- Thanks to @jpawlowski for adding this in #3. This is a modified version of the code in that PR.
Have you tested this out? It does not work for me.. I have tried using Update: That was a user error on my end; I have now merged this bit too, in 30770be. |
I had originally added the summary tag (I think) but I had then removed it after reading this:
from https://validator.w3.org/feed/docs/atom.html. Given that we are generating feed for blog posts, it will be a very rare occurrence for the |
It's not clear what you mean by that. We already use the |
- Thanks to @jpawlowski for adding this in #3.
I do not want to hardcode Disqus references in this template. You can have a list of maps that the template can loop through, and from there, you derive the comment service name, link, etc. But more than that, it is not clear what the comment thread has to do with the atom feed.. In the PR, you reference |
Indeed, we do. What I wanted to say here is that there is still this annoying "on" which does not translate like this into other languages. |
This is getting too complicated, I'd rather drop it for now. |
- Thanks to @jpawlowski for suggesting this in #3. This is a slightly modified version of the code in that PR.
Please review the summary in #3 (comment). I have merged almost everything in this commit, except for:
So the only unanswered/unmerged bit is:
If you clarify what that means, I can close this thread cleanly. |
Not to mention the reverted patch about summary support :-). I'll think about it, also considering #2.
This is already addressed by #7 and essentially was already there ;-) |
This will add multi-language support for the feed as well as several additional attributes and handlings:
Feed level
.Params.DisableFeed = true
Entry level
author
toauthors
?utm_source=atom_feed
to alternate HTML<link>