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

index.html: Display post summaries below date #12

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

Conversation

devurandom
Copy link
Contributor

This adds a little bit of information to the post title by displaying its description or summary, if available.

@Keats
Copy link
Collaborator

Keats commented Sep 3, 2018

Can that be a theme settings? The original hyde theme doesn't have summaries so that would be a deviation from it that should be gated.

@@ -59,6 +59,14 @@ <h1 class="post-title">
</h1>

<span class="post-date">{{ page.date | date(format="%Y-%m-%d") }}</span>

<span class="post-summary">
{% if page.description %}
Copy link
Collaborator

Choose a reason for hiding this comment

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

i would also put page.summary as the first condition as description is something used more for SEO/metadata typically

@devurandom
Copy link
Contributor Author

Theme settings: Would be fine with me. I can also simply create a derived theme and just leave Hyde alone in its current form.

@NyxCode NyxCode mentioned this pull request Sep 25, 2018
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.

None yet

2 participants