-
Notifications
You must be signed in to change notification settings - Fork 21
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
Add community rough templates #88
Merged
Merged
Changes from 5 commits
Commits
Show all changes
9 commits
Select commit
Hold shift + click to select a range
0ec3f3f
Incomplete start
tellyworth 50773d4
Update media.xml
tellyworth c189548
Rough out some CSS. Still incomplete.
tellyworth 8b61176
Font sizing, still rough
tellyworth 86fc623
Fix up specify_post_classes
tellyworth 43d8b0f
Fix a syntax error
tellyworth 9b29e5a
Remove old code
tellyworth 781bc75
Attempt to get full width
tellyworth 14510e2
Leave a note to remove first-in-year if it turns out unnecessary
tellyworth File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Large diffs are not rendered by default.
Oops, something went wrong.
12 changes: 12 additions & 0 deletions
12
...ce/wp-content/themes/wporg-news-2021/block-template-parts/content-category-community.html
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
<!-- wp:group {"tagName":"header","className":"entry-header""style":{"spacing":{"padding":{"top":"30px","right":"30px","bottom":"30px","left":"30px"}}}} --> | ||
<header class="wp-block-group entry-header"> | ||
<!-- wp:post-title {"level":3,"isLink":true} /--> | ||
<!-- wp:post-featured-image {"isLink":true,"width":"200","height":"200"} /--> | ||
|
||
<!-- wp:group {"className":"entry-meta"} --> | ||
<div class="wp-block-group entry-meta"> | ||
<!-- wp:post-date /--> | ||
</div> | ||
<!-- /wp:group --> | ||
</header> | ||
<!-- /wp:group --> |
17 changes: 17 additions & 0 deletions
17
source/wp-content/themes/wporg-news-2021/block-templates/category-community.html
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
<!-- wp:template-part {"slug":"header","align":"full","className":"site-header-container"} /--> | ||
<!-- This is a hack to ensure content isn't covered by the fixed header --> | ||
<!-- wp:template-part {"slug":"header","align":"full","className":"site-header-offset"} /--> | ||
|
||
<!-- wp:query {"tagName":"main","className":"site-content-container","query":{"category":"community","perPage":"20","postType":"post","inherit":false},"displayLayout":{"type":"flex","columns":4}} --> | ||
<main class="wp-block-query site-content-container"> | ||
<!-- wp:post-template --> | ||
<!-- wp:template-part {"slug":"content-category-community","tagName":"article","layout":{"inherit":true}} /--> | ||
<!-- /wp:post-template --> | ||
|
||
<!-- wp:template-part {"slug":"query-navigation","className":"query-navigation-container","layout":{"inherit":true}} /--> | ||
</main> | ||
<!-- /wp:query --> | ||
|
||
<!-- wp:template-part {"tagName":"footer","slug":"footer-archive","className":"footer-archive","layout":{"inherit":true}} /--> | ||
|
||
<!-- wp:wporg/global-footer /--> |
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
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
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
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
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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.
I wonder if the
post-year-{date}
is enough to achieve this? Maybe something like this for the SVG "separator" image between years?Since
post-year-
is targeted with a wildcard, it should match the last instance ofpost-year-2021
,post-year-2020
, etc.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.
Yeah that might work, thanks! I'll leave in the first-in-year code in place for now with a note to remove it if it's not ultimately needed.