Skip to content
This repository has been archived by the owner on Feb 17, 2025. It is now read-only.

Commit

Permalink
Quadrat: Make the post date a link (#4480)
Browse files Browse the repository at this point in the history
* Quadrat: Make the post date a link

* Make all post date blocks link to the post
  • Loading branch information
scruffian authored Aug 27, 2021
1 parent dc09d11 commit bab109c
Show file tree
Hide file tree
Showing 8 changed files with 25 additions and 25 deletions.
2 changes: 1 addition & 1 deletion mayland-blocks/block-template-parts/post-meta.html
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<!-- wp:group {"textColor":"gray","className":"post-meta"} -->
<div class="post-meta wp-block-group post-meta has-gray-color has-text-color"><!-- wp:post-author {"showAvatar":false,"showBio":false,"fontSize":"small"} /-->

<!-- wp:post-date {"fontSize":"small"} /-->
<!-- wp:post-date {"fontSize":"small","isLink":true} /-->

<!-- wp:post-terms {"term":"category","fontSize":"small"} /-->

Expand Down
2 changes: 1 addition & 1 deletion quadrat/block-templates/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
<!-- wp:query {"tagName":"main","layout":{"inherit":true},"queryId":1,"query":{"perPage":5,"offset":0,"postType":"post","categoryIds":[],"tagIds":[],"order":"desc","orderBy":"date","author":"","search":"","sticky":"","inherit":true}} -->
<main class="wp-block-query">
<!-- wp:post-template -->
<!-- wp:post-date {"fontSize":"tiny","textAlign":"center"} /-->
<!-- wp:post-date {"fontSize":"tiny","isLink":true,"textAlign":"center"} /-->
<!-- wp:post-title {"isLink":true, "level": 3, "textAlign":"center"} /-->
<!-- wp:post-featured-image {"isLink":true} /-->
<!-- wp:post-excerpt /-->
Expand Down
2 changes: 1 addition & 1 deletion quadrat/block-templates/single.html
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

<!-- wp:group {"className":"post-meta"} -->
<div class="wp-block-group post-meta">
<!-- wp:post-date {"textAlign":"center","fontSize":"tiny"} /-->
<!-- wp:post-date {"textAlign":"center","fontSize":"tiny","isLink":true} /-->
<!-- wp:post-terms {"term":"category","textAlign":"center","fontSize":"tiny"} /-->
</div>
<!-- /wp:group -->
Expand Down
2 changes: 1 addition & 1 deletion quadrat/inc/patterns/query-diamond.php
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
<!-- wp:columns -->
<div class="wp-block-columns"><!-- wp:column {"verticalAlignment":"center"} -->
<div class="wp-block-column is-vertically-aligned-center"><!-- wp:group {"className":"post-meta"} -->
<div class="wp-block-group post-meta"><!-- wp:post-date {"fontSize":"tiny"} /-->
<div class="wp-block-group post-meta"><!-- wp:post-date {"fontSize":"tiny","isLink":true} /-->
<!-- wp:post-terms {"term":"category","fontSize":"tiny"} /--></div>
<!-- /wp:group -->
Expand Down
2 changes: 1 addition & 1 deletion seedlet-blocks/block-template-parts/post-meta.html
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
<!-- wp:group {"className":"post-meta"} -->
<div class="wp-block-group post-meta"><!-- wp:post-author {"showAvatar":false,"showBio":false,"fontSize":"tiny"} /-->

<!-- wp:post-date {"fontSize":"tiny"} /-->
<!-- wp:post-date {"fontSize":"tiny","isLink":true} /-->

<!-- wp:post-terms {"term":"category","fontSize":"tiny"} /--></div>
<!-- /wp:group -->
16 changes: 8 additions & 8 deletions skatepark/block-templates/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -9,22 +9,22 @@
<div class="wp-block-group" style="padding-top:30px;padding-right:30px;padding-left:30px"><!-- wp:separator {"className":"is-style-wide"} -->
<hr class="wp-block-separator is-style-wide"/>
<!-- /wp:separator -->

<!-- wp:post-featured-image {"isLink":true,"style":{"color":{"duotone":["#000","#B9FB9C"]}}} /-->

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

<!-- wp:post-excerpt {"className":"is-style-indented-post-excerpt"} /-->
<!-- wp:post-date {"style":{"typography":{"fontWeight":"500"}},"fontSize":"tiny"} /--></div>

<!-- wp:post-date {"style":{"typography":{"fontWeight":"500"}},"fontSize":"tiny","isLink":true} /--></div>
<!-- /wp:group -->
<!-- /wp:post-template -->

<!-- wp:query-pagination -->
<div class="wp-block-query-pagination"><!-- wp:query-pagination-previous /-->

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

<!-- wp:query-pagination-next /--></div>
<!-- /wp:query-pagination --></div>
<!-- /wp:query -->
Expand Down
8 changes: 4 additions & 4 deletions skatepark/block-templates/single.html
Original file line number Diff line number Diff line change
Expand Up @@ -24,18 +24,18 @@
<!-- wp:post-author {"showBio":true} /-->
</div>
<!-- /wp:column -->

<!-- wp:column -->
<div class="wp-block-column"><!-- wp:separator {"className":"is-style-wide"} -->
<hr class="wp-block-separator is-style-wide"/>
<!-- /wp:separator -->
<!-- wp:group {"className":"post-meta"} -->
<div class="wp-block-group post-meta">
<!-- wp:post-date {"fontSize":"tiny"} /-->
<!-- wp:post-date {"fontSize":"tiny","isLink":true} /-->
<!-- wp:post-terms {"term":"category","fontSize":"tiny"} /-->
<!-- wp:post-terms {"term": "post_tag", "fontSize":"tiny"} /--></div>
<!-- /wp:group -->

</div>
<!-- /wp:column --></div>
<!-- /wp:columns --></div>
Expand All @@ -50,7 +50,7 @@

<!-- wp:group {"style":{"spacing":{"padding":{"top":"3em","bottom":"3em"}}},"layout":{"inherit":true}} -->
<div class="wp-block-group" style="padding-top:3em;padding-bottom:3em">

<!-- wp:separator {"align":"wide","className":"is-style-wide"} -->
<hr class="wp-block-separator alignwide is-style-wide"/>
<!-- /wp:separator -->
Expand Down
16 changes: 8 additions & 8 deletions skatepark/inc/patterns/blog-posts.php
Original file line number Diff line number Diff line change
Expand Up @@ -14,22 +14,22 @@
<div class="wp-block-group" style="padding-top:30px;padding-right:30px;padding-left:30px"><!-- wp:separator {"className":"is-style-wide"} -->
<hr class="wp-block-separator is-style-wide"/>
<!-- /wp:separator -->
<!-- wp:post-featured-image {"isLink":true,"style":{"color":{"duotone":["#000","#B9FB9C"]}}} /-->
<!-- wp:post-title {"isLink":true,"fontSize":"normal"} /-->
<!-- wp:post-excerpt {"moreText":"' . esc_html__( 'Continue reading', 'skatepark' ) . '","className":"is-style-indented-post-excerpt"} /-->
<!-- wp:post-date {"style":{"typography":{"fontWeight":"500"}},"fontSize":"tiny"} /--></div>
<!-- wp:post-date {"style":{"typography":{"fontWeight":"500"}},"fontSize":"tiny","isLink":true} /--></div>
<!-- /wp:group -->
<!-- /wp:post-template -->
<!-- wp:query-pagination -->
<div class="wp-block-query-pagination"><!-- wp:query-pagination-previous /-->
<!-- wp:query-pagination-numbers /-->
<!-- wp:query-pagination-next /--></div>
<!-- /wp:query-pagination --></div>
<!-- /wp:query -->',
Expand Down

0 comments on commit bab109c

Please sign in to comment.