In card views, add showDescription
as an alternative to showSummary
#1905
chris-gillatt
started this conversation in
Ideas
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I've used a few themes for Hugo over the years, as as a result, some of my articles contain a summary (defined by the first body of text within a blog article that exists between the front matter and the article proper, separated by
<!--more-->
) and some do not. Some are also very long, because when I first started using hugo I probably wasn't using summary correctly.Also, for me there's a use case to instead to show a slight expansion to the article title to entice readers, renders nicely in link previews without being truncated, and does not appear on the article itself when the site is built. Description could serve this purpose (and does so with other themes).
What are your thoughts on adding this additional functionality to Blowfish? I have a working version of this (at least with my configuration of Blowfish) and if this is accepted, I can issue a PR for review / further testing.
It expands on the existing logic in:
...with something like:
...activated with
showDescription = true
inparams.toml
In my testing, both
showDescription
andshowSummary
can work if they're both set totrue
, which although feels like overkill, may suit others' needs in future.If anyone needs some screenshots to understand what I'm babbling about, please let me know.
Beta Was this translation helpful? Give feedback.
All reactions