Skip to content

Commit

Permalink
theme.json settings and adjustments
Browse files Browse the repository at this point in the history
  • Loading branch information
MaggieCabrera committed Mar 28, 2022
1 parent 570de9d commit c5d9a47
Show file tree
Hide file tree
Showing 2 changed files with 29 additions and 12 deletions.
24 changes: 12 additions & 12 deletions pendant/templates/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -9,27 +9,27 @@ <h1 class="alignwide">Articles</h1>
<!-- wp:query {"queryId":1,"query":{"perPage":4,"pages":0,"offset":0,"postType":"post","order":"desc","orderBy":"date","author":"","search":"","exclude":[],"sticky":"exclude","inherit":true},"tagName":"main","displayLayout":{"type":"flex","columns":2},"layout":{"inherit":true}} -->
<main class="wp-block-query"><!-- wp:group {"align":"wide","style":{"spacing":{"padding":{"top":"1em"}}}} -->
<div class="wp-block-group alignwide" style="padding-top:1em"><!-- wp:post-template -->
<!-- wp:group {"style":{"spacing":{"padding":{"top":"2em"}}}} -->
<div class="wp-block-group" style="padding-top:2em"><!-- wp:post-featured-image {"isLink":true,"width":"100%","height":"16em"} /-->
<!-- wp:group {"style":{"spacing":{"padding":{"top":"2em","bottom":"2em"}}}} -->
<div class="wp-block-group" style="padding-top:2em;padding-bottom:2em"><!-- wp:post-featured-image {"isLink":true,"width":"100%","height":"16em"} /-->

<!-- wp:post-title {"isLink":true} /-->

<!-- wp:post-excerpt /-->
<!-- wp:read-more {"style":{"typography":{"fontStyle":"normal","fontWeight":"400"},"color":{}},"fontSize":"medium"} /--></div>

<!-- wp:read-more {"style":{"typography":{"fontStyle":"normal","fontWeight":"500"}},"fontSize":"medium"} /--></div>
<!-- /wp:group -->
<!-- /wp:post-template -->

<!-- wp:separator {"className":"is-style-wide"} -->
<hr class="wp-block-separator has-alpha-channel-opacity is-style-wide"/>
<!-- wp:separator {"backgroundColor":"foreground","className":"is-style-wide"} -->
<hr class="wp-block-separator has-text-color has-foreground-color has-alpha-channel-opacity has-foreground-background-color has-background is-style-wide"/>
<!-- /wp:separator -->

<!-- wp:query-pagination {"layout":{"type":"flex","justifyContent":"space-between"}} -->
<!-- wp:query-pagination-previous /-->
<!-- wp:query-pagination {"style":{"elements":{"link":{"color":{"text":"var:preset|color|foreground"}}}},"layout":{"type":"flex","justifyContent":"space-between"}} -->
<!-- wp:query-pagination-previous {"style":{"typography":{"fontStyle":"normal","fontWeight":"500"}},"fontSize":"small"} /-->

<!-- wp:query-pagination-numbers /-->
<!-- wp:query-pagination-next /-->

<!-- wp:query-pagination-next {"style":{"typography":{"textTransform":"uppercase","fontStyle":"normal","fontWeight":"500"}},"fontSize":"small"} /-->
<!-- /wp:query-pagination --></div>
<!-- /wp:group --></main>
<!-- /wp:query -->
Expand Down
17 changes: 17 additions & 0 deletions pendant/theme.json
Original file line number Diff line number Diff line change
Expand Up @@ -218,6 +218,23 @@
"fontSize": "var(--wp--preset--font-size--medium)"
}
},
"core/post-title": {
"elements": {
"link": {
"color": {
"text": "var(--wp--preset--color--foreground)"
},
"typography": {
"textDecoration": "none"
}
}
}
},
"core/read-more": {
"color": {
"text": "var(--wp--preset--color--foreground)"
}
},
"core/site-title": {
"typography": {
"fontSize": "var(--wp--preset--font-size--medium)",
Expand Down

0 comments on commit c5d9a47

Please sign in to comment.