Skip to content
This repository has been archived by the owner on Jan 26, 2022. It is now read-only.

Try adding a home.html template back in #241

Closed
wants to merge 1 commit into from

Conversation

kjellr
Copy link
Collaborator

@kjellr kjellr commented Nov 16, 2021

A month or so ago, we had a home.html template bundled with the theme. This was removed since its use of a Post Content block caused confusion and brought things out of sync with the static homepage setting.

Unfortunately, removing the home.html template also increased the need for a solution for starter content. Today if you install the theme fresh, you're greeted by these underwhelming views:

Site Editor Front End
image image (1)

We can fix this by implementing home.html in a slightly different way. If we consider it as "The homepage of the blog", and don't include a Post Content block, then it should work as expected.

Site Editor Front End
Screen Shot 2021-11-16 at 09 58 17 Screen Shot 2021-11-16 at 09 57 33

This provides a far better first experience for users (Enough that I think we could close #116 if this lands). It also works just fine alongside the Static Homepage setting in Settings > Reading.

The only feature that I think blocks this is that we can't generate + include a link to view all posts on a traditional "blog" page. Users can edit the Query block on this home.html template to show more than 3 posts, but it doesn't make sense to include pagination because they'll have to scroll past the large header to access every subsequent page. And there's no concept of an independent "Blog" page without a static homepage being set. Any ideas would be appreciated. 🤔

@kjellr kjellr changed the title Add a home.html template back in Try adding a home.html template back in Nov 16, 2021
@kjellr kjellr added the [Type] Enhancement New feature or request label Nov 16, 2021
@kjellr
Copy link
Collaborator Author

kjellr commented Nov 16, 2021

The only feature that I think blocks this is that we can't generate + include a link to view all posts on a traditional "blog" page. Users can edit the Query block on this home.html template to show more than 3 posts, but it doesn't make sense to include pagination because they'll have to scroll past the large header to access every subsequent page. And there's no concept of an independent "Blog" page without a static homepage being set. Any ideas would be appreciated. 🤔

This doesn't seem like a surmountable issue, so I'm going to try another approach.

@kjellr kjellr closed this Nov 16, 2021
@kjellr kjellr deleted the try/adding-home-template branch November 16, 2021 19:53
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
[Type] Enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Add starter content
1 participant