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

Do not show footer in entry.html if not needed. #283

Merged

Conversation

cyberang3l
Copy link
Contributor

If there is no site.read_time or entry.date set, do not show an empty
footer as this only adds some whitespace. In a collection without
excerpts the whitespace between headers is already quite a lot due to
the article tag, so at least, do not add additional unnecessary
whitespace.

Note that the entry.date is not printed in a collection anyways (look at the entry-date.html), that why the entry.date and page.layout != 'collection' part of the code in the if statement.

If there is no site.read_time or entry.date set, do not show an empty
footer as this only adds some whitespace. In a collection without
excerpts the whitespace between headers is already quite a lot due to
the article tag, so at least, do not add additional unnecessary
whitespace.

Signed-off-by: Vangelis Tasoulas <[email protected]>
@mmistakes
Copy link
Owner

Thanks for PR, looks good.

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

Successfully merging this pull request may close these issues.

2 participants