Feat: starr posts to get readers attention #223
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
What problem does this PR solve?
None.
Is this PR adding a new feature?
Indeed.
This PR will add the option to starr single posts. An author can set the optional config
isStarred: true
in a posts front matter. This will cause a little star icon to be rendered (for the post) in the list of posts.An author can use this to get a readers attention.
The mentioned star will only be shown in the list of posts - nowhere else (to not overload the theme).
For the records
I set the
isStarred: true
in the front matter of the Markdown Syntax Guide en-us example post to showcase this new option.It might be worth recreating the themes demo picture (used here: https://themes.gohugo.io/themes/hugo-blog-awesome/) to attract the attention of possible theme users. 🤓
Is this PR related to any issue or discussion?
This feature was discussed here: #222
PR Checklist