Skip to content
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 support for post descriptions #103

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

joshuaboniface
Copy link

Adds support for post descriptions, i.e. subtitles. These are presented in an italicized h4 header under the post title if present in the Hugo post configuration.

Adds support for post descriptions, i.e. subtitles. These are presented
in an italicized h4 header under the post title if present in the Hugo
post configuration.
@@ -2,6 +2,9 @@
<article class="post">
<header class="post-header">
<h1 class ="post-title">{{ .Title }}</h1>
{{- if .Description }}
<h4 class ="post-description">{{ .Description }}</h4>
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This would be nice to have in the post index as well.
Also I am not a front end guy but AFAIK you can't skip headings like that so it should be ideally an h2, more info here https://www.boia.org/blog/is-going-from-h1-to-h3-okay-for-wcag-conformance

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants