-
-
Notifications
You must be signed in to change notification settings - Fork 7.5k
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
Add ContentWithoutSummary #12778
Comments
bep
added a commit
to bep/hugo
that referenced
this issue
Aug 17, 2024
Fixes gohugoio#8680 Fixes gohugoio#12761 Fixes gohugoio#12778
bep
added a commit
to bep/hugo
that referenced
this issue
Aug 23, 2024
Fixes gohugoio#8680 Fixes gohugoio#12761 Fixes gohugoio#12778 Fixes gohugoio#716
bep
added a commit
to bep/hugo
that referenced
this issue
Aug 25, 2024
Fixes gohugoio#8680 Fixes gohugoio#12761 Fixes gohugoio#12778 Fixes gohugoio#716
bep
added a commit
to bep/hugo
that referenced
this issue
Aug 28, 2024
Fixes gohugoio#8680 Fixes gohugoio#12761 Fixes gohugoio#12778 Fixes gohugoio#716
bep
added a commit
to bep/hugo
that referenced
this issue
Aug 28, 2024
Fixes gohugoio#8680 Fixes gohugoio#12761 Fixes gohugoio#12778 Fixes gohugoio#716
bep
added a commit
to bep/hugo
that referenced
this issue
Aug 28, 2024
Fixes gohugoio#8680 Fixes gohugoio#12761 Fixes gohugoio#12778 Fixes gohugoio#716
bep
added a commit
to bep/hugo
that referenced
this issue
Aug 28, 2024
Fixes gohugoio#8680 Fixes gohugoio#12761 Fixes gohugoio#12778 Fixes gohugoio#716
bep
added a commit
to bep/hugo
that referenced
this issue
Aug 28, 2024
Fixes gohugoio#8680 Fixes gohugoio#12761 Fixes gohugoio#12778 Fixes gohugoio#716
bep
added a commit
to bep/hugo
that referenced
this issue
Aug 29, 2024
Fixes gohugoio#8680 Fixes gohugoio#12761 Fixes gohugoio#12778 Fixes gohugoio#716
bep
added a commit
to bep/hugo
that referenced
this issue
Aug 29, 2024
Fixes gohugoio#8680 Fixes gohugoio#12761 Fixes gohugoio#12778 Fixes gohugoio#716
bep
added a commit
to bep/hugo
that referenced
this issue
Aug 29, 2024
Note that this also adds a new `.ContentWithoutSummary` method, and to do that we had to unify the different summary types: Both `auto` and `manual` now returns HTML. Before this commit, `auto` would return plain text. This could be considered to be a slightly breaking change, but for the better: Now you can treat the `.Summary` the same without thinking about where it comes from, and if you want plain text, pipe it into `{{ .Summary | plainify }}`. Fixes gohugoio#8680 Fixes gohugoio#12761 Fixes gohugoio#12778 Fixes gohugoio#716
bep
added a commit
to bep/hugo
that referenced
this issue
Aug 29, 2024
Note that this also adds a new `.ContentWithoutSummary` method, and to do that we had to unify the different summary types: Both `auto` and `manual` now returns HTML. Before this commit, `auto` would return plain text. This could be considered to be a slightly breaking change, but for the better: Now you can treat the `.Summary` the same without thinking about where it comes from, and if you want plain text, pipe it into `{{ .Summary | plainify }}`. Fixes gohugoio#8680 Fixes gohugoio#12761 Fixes gohugoio#12778 Fixes gohugoio#716
bep
added a commit
to bep/hugo
that referenced
this issue
Aug 29, 2024
Note that this also adds a new `.ContentWithoutSummary` method, and to do that we had to unify the different summary types: Both `auto` and `manual` now returns HTML. Before this commit, `auto` would return plain text. This could be considered to be a slightly breaking change, but for the better: Now you can treat the `.Summary` the same without thinking about where it comes from, and if you want plain text, pipe it into `{{ .Summary | plainify }}`. Fixes gohugoio#8680 Fixes gohugoio#12761 Fixes gohugoio#12778 Fixes gohugoio#716
bep
added a commit
to bep/hugo
that referenced
this issue
Aug 29, 2024
Note that this also adds a new `.ContentWithoutSummary` method, and to do that we had to unify the different summary types: Both `auto` and `manual` now returns HTML. Before this commit, `auto` would return plain text. This could be considered to be a slightly breaking change, but for the better: Now you can treat the `.Summary` the same without thinking about where it comes from, and if you want plain text, pipe it into `{{ .Summary | plainify }}`. Fixes gohugoio#8680 Fixes gohugoio#12761 Fixes gohugoio#12778 Fixes gohugoio#716
bep
added a commit
to bep/hugo
that referenced
this issue
Aug 29, 2024
Note that this also adds a new `.ContentWithoutSummary` method, and to do that we had to unify the different summary types: Both `auto` and `manual` now returns HTML. Before this commit, `auto` would return plain text. This could be considered to be a slightly breaking change, but for the better: Now you can treat the `.Summary` the same without thinking about where it comes from, and if you want plain text, pipe it into `{{ .Summary | plainify }}`. Fixes gohugoio#8680 Fixes gohugoio#12761 Fixes gohugoio#12778 Fixes gohugoio#716
bep
added a commit
to bep/hugo
that referenced
this issue
Aug 29, 2024
Note that this also adds a new `.ContentWithoutSummary` method, and to do that we had to unify the different summary types: Both `auto` and `manual` now returns HTML. Before this commit, `auto` would return plain text. This could be considered to be a slightly breaking change, but for the better: Now you can treat the `.Summary` the same without thinking about where it comes from, and if you want plain text, pipe it into `{{ .Summary | plainify }}`. Fixes gohugoio#8680 Fixes gohugoio#12761 Fixes gohugoio#12778 Fixes gohugoio#716
bep
added a commit
to bep/hugo
that referenced
this issue
Aug 29, 2024
Note that this also adds a new `.ContentWithoutSummary` method, and to do that we had to unify the different summary types: Both `auto` and `manual` now returns HTML. Before this commit, `auto` would return plain text. This could be considered to be a slightly breaking change, but for the better: Now you can treat the `.Summary` the same without thinking about where it comes from, and if you want plain text, pipe it into `{{ .Summary | plainify }}`. Fixes gohugoio#8680 Fixes gohugoio#12761 Fixes gohugoio#12778 Fixes gohugoio#716
bep
added a commit
to bep/hugo
that referenced
this issue
Aug 29, 2024
Note that this also adds a new `.ContentWithoutSummary` method, and to do that we had to unify the different summary types: Both `auto` and `manual` now returns HTML. Before this commit, `auto` would return plain text. This could be considered to be a slightly breaking change, but for the better: Now you can treat the `.Summary` the same without thinking about where it comes from, and if you want plain text, pipe it into `{{ .Summary | plainify }}`. Fixes gohugoio#8680 Fixes gohugoio#12761 Fixes gohugoio#12778 Fixes gohugoio#716
This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs. |
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
For the
manual
split summaries, this is trivial.For the
auto
split summaries (controlled bysummaryLength
config), this is not trivial. So I'm not sure what to do about that.Since
I'm tempted to change the
auto
logic so it becomes: Summary is the first n paragraphs (e.g.<p>
) >=summaryLength
words. I will preserve the word counting logic re. CJK languages.People not happy with the result have other options (plainify, summary in front matter, manual split)
Shout if you disagree.
The text was updated successfully, but these errors were encountered: