-
Notifications
You must be signed in to change notification settings - Fork 21
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add a very rough and incomplete version of the Community category template. The main incomplete issues are: * It's not full-width on desktop as per the Figma design * Some spacing issues in the grid in both desktop and mobile * Pagination nav is not yet finished (that's true of other pages too). I'm merging this as WIP to unblock other work, and so we can get some iteration and refinement happening on the layout.
- Loading branch information
1 parent
029a89f
commit 6cf5835
Showing
8 changed files
with
7,865 additions
and
0 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
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},"align":"full"} --> | ||
<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