Skip to content

don't display "LATEST POSTS" in sidebar, if there are none#35

Open
umlaeute wants to merge 1 commit intocolorchestra:masterfrom
umlaeute:improvement/no-empty-posts
Open

don't display "LATEST POSTS" in sidebar, if there are none#35
umlaeute wants to merge 1 commit intocolorchestra:masterfrom
umlaeute:improvement/no-empty-posts

Conversation

@umlaeute
Copy link
Copy Markdown

if content/posts/ is empty, this omits the "LATEST POSTS" header
(which looks a bit weird if it is not followed by any posts)

I'm using this nice theme for building a simple landing page, without any "blog"-like content.
In this context, the LATEST POSTS header does not make much sense, so this PR suppresses it if there are no posts at all.

if content/posts/ is empty, this omits the "LATEST POSTS" header
(which looks a bit weird if it is not followed by any posts)
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.

1 participant