-
Notifications
You must be signed in to change notification settings - Fork 25
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Special treatment for Tags and Archive pages
- Loading branch information
Showing
1 changed file
with
5 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
76608e6
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@daveaglick L9 - I think this is wrong. this means that cannot show a post info if the title is "Tags" or "Archive"?
76608e6
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@jaider Nice spot. So I think the issue here is that
IsPost
tends to get "promoted" through to tag and archive pages and we generally don't want to show the post header for those pages since they're actually site-level pages. I do agree that this is not ideal - while I don't know how many posts would end up with exact titles of "Tags" or "Archive", relying on the title at all seems brittle.I guess the better approach would be to ensure
IsPost
gets set tofalse
for those types of pages so that we don't need this check. I created statiqdev/Statiq.Web#995 to track this work.