Skip to content

Commit

Permalink
Issue #27 - Add post-meta-inline template part to display in single-p…
Browse files Browse the repository at this point in the history
…ost template
  • Loading branch information
bobbingwide committed May 7, 2021
1 parent 5c9b914 commit 5080c89
Show file tree
Hide file tree
Showing 3 changed files with 29 additions and 1 deletion.
22 changes: 22 additions & 0 deletions block-template-parts/post-meta-inline.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
<!-- wp:group {"backgroundColor":"very-light-gray"} -->
<div class="wp-block-group has-very-light-gray-background-color has-background"><!-- wp:paragraph -->
<p>Published:</p>
<!-- /wp:paragraph -->

<!-- wp:post-date {"textAlign":"left"} /-->

<!-- wp:paragraph -->
<p>Categories:</p>
<!-- /wp:paragraph -->

<!-- wp:post-terms {"term":"category","textAlign":"left"} /-->

<!-- wp:paragraph -->
<p>Tags:</p>
<!-- /wp:paragraph -->

<!-- wp:post-terms {"term":"post_tag","textAlign":"left"} /-->
<!-- wp:oik-sb/sb-post-edit-block /-->
</div>
<!-- /wp:group -->
<!-- wp:oik-css/css {"css":"aside.flex p, aside.flex div, aside.flex.div a, aside.flex a { display: flex; flex-wrap:wrap; align-content: center; justify-content: space-around; }"} /-->
3 changes: 3 additions & 0 deletions block-template-parts/zzz.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
<!-- wp:html -->
<div class="WP_DEBUG">zzz.html</div>
<!-- /wp:html -->
5 changes: 4 additions & 1 deletion block-templates/single-post.html
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,10 @@

<!-- wp:template-part {"slug":"main-body","theme":"thisis","layout":{"inherit":true}} /-->

<!-- wp:template-part {"slug":"single-post-fields","theme":"thisis","layout":{"inherit":true}} /-->
<!-- wp:template-part{"slug":"single-post-fields","theme":"thisis","layout":{"inherit":true}} /-->

<!-- wp:template-part {"slug":"post-meta-inline","theme":"thisis","tagName":"aside","className":"flex","layout":{"inherit":true}} /-->

<!-- wp:template-part {"slug":"category-tag-clouds","theme":"thisis","tagName":"section"} /-->
<!-- wp:template-part {"slug":"footer","theme":"thisis","style":{"color":{"background":"#f7f7f7"}},"textColor":"foreground","layout":{"inherit":true}} /-->
<!-- wp:template-part {"slug":"post-footer-stuff","theme":"thisis"} /-->

0 comments on commit 5080c89

Please sign in to comment.