浏览代码

Unlinkify the post date. (#4755)

Jeff Ong 3 年之前
父节点
当前提交
3d23236843
共有 2 个文件被更改,包括 2 次插入2 次删除
  1. 1 1
      quadrat/block-templates/index.html
  2. 1 1
      quadrat/inc/patterns/query-diamond.php

+ 1 - 1
quadrat/block-templates/index.html

@@ -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 {"isLink":true,"textAlign":"center","style":{"typography":{"fontSize":"var(--wp--custom--font-sizes--tiny)"}}} /-->
+		<!-- wp:post-date {"isLink":false,"textAlign":"center","style":{"typography":{"fontSize":"var(--wp--custom--font-sizes--tiny)"}}} /-->
 		<!-- wp:post-title {"isLink":true, "level": 3, "textAlign":"center"} /-->
 		<!-- wp:post-featured-image {"isLink":true} /-->
 		<!-- wp:post-excerpt /-->

+ 1 - 1
quadrat/inc/patterns/query-diamond.php

@@ -14,7 +14,7 @@ return array(
 	<!-- 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","layout":{"type":"flex"}} -->
-	<div class="wp-block-group post-meta"><!-- wp:post-date {"isLink":true,"style":{"typography":{"fontSize":"16px"}}} /-->
+	<div class="wp-block-group post-meta"><!-- wp:post-date {"isLink":false,"style":{"typography":{"fontSize":"16px"}}} /-->
 
 	<!-- wp:post-terms {"term":"category","style":{"typography":{"fontSize":"16px"}}} /--></div>
 	<!-- /wp:group -->