Skip to content

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

Merged
mmistakes merged 1 commit intommistakes:masterfrom
cyberang3l:do-not-show-footer-entry-if-not-needed
Apr 10, 2018
Merged

Do not show footer in entry.html if not needed.#283
mmistakes merged 1 commit intommistakes:masterfrom
cyberang3l:do-not-show-footer-entry-if-not-needed

Conversation

@cyberang3l
Copy link
Copy Markdown
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 <vangelis@tasoulas.net>
@mmistakes
Copy link
Copy Markdown
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