-
Notifications
You must be signed in to change notification settings - Fork 14
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
Adding <summary> support #19
base: master
Are you sure you want to change the base?
Conversation
Do we want to include both summary and content? https://tools.ietf.org/html/rfc4287#section-4.1.2 The spec says that summary is used when content is not present as text.
This will always be the case if |
What is the use case of this? |
I think this is unnecessary complication.
|
About "Read More", as I mentioned in #2 (comment),
About the summary vs content, I only plan to include the summary tag if |
In my opinion: yes. From RSS Best Practices Profile (which I consider to apply for any web feed):
It is a summary, not an introduction text. That's something for content creators to consider.
If for whatever reason you don't want to fully exclude a page from the feed but need to guide people to the webpage, this is what it is for. There can be many valid use cases, depending on the used theme. Maybe the content cannot be shown properly in a feed reader, may happen easily for mathematical texts I suppose (basically any content that uses additional plugins to render and is not pure markdown).
It might be a custom parameter but is still something fairly common. Maybe it is a European thing but it is really something I use a lot and the story is incomplete without it being visible. I would say it is common practice by professional magazine writers as well (successfully transferred from the legacy press world to the digital world).
I don't really want to feed on the war of opinions about this, it doesn't really help. I am also a fan to let the reader and also content creator making a choice - both will and do find ways anyway to have it their way. If creators want to shorten something, it is nothing that you as a person can effectively prevent. And it is actually pretty hard to read long texts in a feed reader because they can only provide very limited formatting. Rich HTML with CSS and with a UX that someone had thoroughly thought through is there for a reason, you don't put plain text on your website, do you? ;-) That being said, I vote to let the choice with the people. Default setting should be the full package but if someone wants to customize it and we can technically implement this (and it is now here already), I see no benefit to fight the religious war.
Make it configurable. I disagree and would like to have the option. Concerning the automated |
OK .. talking about title = "How do I write \"Org mode\"?"
author = ["Kaushal Modi"]
description = """
You write it just like that in the title --- "Org" with capital "O",
and then lower-case "mode" separated by a space.
""" So why cannot we do the below to set that
Using the The |
Looks like we need to put more thought into the spec of feature before implementing it.. Here's the first hasty draft. Going back to the
summary and content
read more
no point putting read more link if content is empty Then finally, based on the internal |
Now where should the I believe..
Does that sound right? |
A description and a subtitle are really not the same thing. Hugo's doc is very vague about what the description variable is about:
I assume that is the reason way the themes I was looking at never make use of it and instead use a custom variable named summary or abstract (sometimes using both for different page types, because they make a difference between the author's page summary and an abstract about linked external content). So my conclusion as I write this response, I might consider to not even use the summary and description variables interchangeably. They way you are using the description variable seems to be like an introduction first paragraph of your text. Not sure this was the original intention of that variable but considering that you had put it in front of your actual content part, this is likely what it is for you.
Because they don't share the same semantics. A subtitle is definitely not a summary of a complete text. Maybe your confusion is coming from my idea to try to always put "something" into the feed's content area instead of leaving it entirely blank in case there is no content for that page. In that case, one should take the summary, if that's not available too let's then assume that a subtitle may at least give some more info if the author decided to have it visible besides the main title. It is actually pretty easy. Believe me, I put some brainpower in what I am pull-requesting here ;-)
A blockquote is not the right thing to begin a text with, unless you are actually quoting something or someone. That's not what a summary does nor what a description is about. It is actually really hard to repeat programming code in natural language once again, it is very time consuming. We should use the "comment at code" function of Github, it will be much more helpful. |
@jpawlowski Hello, I'll will eventually merge your 4 standing PR's gradually this week. I'm trying to find time to get to these. |
I'm sending out a gentle ping to see whether there's still interest in bringing some of this work into the fold. |
This will add summary support.
$Page.description
or$Page.summary
Read more ...
will be added when only the summary text will show up (Allow excerpt/read more #2 ).disable_feed_content
may be set to enforce truncating the text. Didn't want to introduce this on site level yet (it came too me just now ;-))