Browse Source

Replace query-loop with post-template. (#4744)

Jeff Ong 3 years ago
parent
commit
36285e3449

+ 1 - 1
geologist/assets/theme.css

@@ -218,7 +218,7 @@ ul ul {
 	margin-left: 20%;
 }
 
-.wp-block-query-loop .wp-block-post-excerpt__more-text,
+.wp-block-post-template .wp-block-post-excerpt__more-text,
 .wp-block-query .wp-block-post-excerpt__more-text {
 	font-size: var(--wp--custom--font-sizes--tiny) !important;
 }

+ 2 - 2
geologist/block-templates/search.html

@@ -4,12 +4,12 @@
 <main class="wp-block-group">
 
 	<!-- wp:query {"queryId":1,"query":{"perPage":10,"pages":0,"offset":0,"postType":"post","categoryIds":[],"tagIds":[],"order":"desc","orderBy":"date","author":"","search":"","exclude":[],"sticky":"","inherit":true}} -->
-	<!-- wp:query-loop -->
+	<!-- wp:post-template -->
 
 		<!-- wp:post-title {"level":5,"isLink":true} /-->
 		<!-- wp:post-excerpt /-->
 
-	<!-- /wp:query-loop -->
+	<!-- /wp:post-template -->
 	<!-- /wp:query -->
 
 </main>

+ 1 - 1
geologist/sass/blocks/_query.scss

@@ -1,4 +1,4 @@
-.wp-block-query-loop,
+.wp-block-post-template,
 .wp-block-query {
 
 	// Important is necessary to override any other font size rules applied to the exerpt.

+ 1 - 1
quadrat/assets/theme.css

@@ -354,7 +354,7 @@ ul ul {
 	margin-left: 20%;
 }
 
-.wp-block-query-loop .wp-block-post-excerpt__more-text,
+.wp-block-post-template .wp-block-post-excerpt__more-text,
 .wp-block-query .wp-block-post-excerpt__more-text {
 	font-size: var(--wp--custom--font-sizes--tiny) !important;
 }

+ 2 - 2
quadrat/block-templates/search.html

@@ -4,12 +4,12 @@
 <main class="wp-block-group">
 
 	<!-- wp:query {"queryId":1,"query":{"perPage":10,"pages":0,"offset":0,"postType":"post","categoryIds":[],"tagIds":[],"order":"desc","orderBy":"date","author":"","search":"","exclude":[],"sticky":"","inherit":true}} -->
-	<!-- wp:query-loop -->
+	<!-- wp:post-template -->
 
 		<!-- wp:post-title {"level":5,"isLink":true} /-->
 		<!-- wp:post-excerpt /-->
 
-	<!-- /wp:query-loop -->
+	<!-- /wp:post-template -->
 
 	<!-- wp:query-pagination {"align":"wide","paginationArrow":"arrow"} -->
 		<div class="wp-block-query-pagination alignwide">

+ 1 - 1
quadrat/sass/blocks/_query.scss

@@ -1,4 +1,4 @@
-.wp-block-query-loop,
+.wp-block-post-template,
 .wp-block-query {
 
 	// Important is necessary to override any other font size rules applied to the exerpt.