瀏覽代碼

Improved layout of front page design and fixed block markup mismatch in post-list.php

Jason Crist 2 年之前
父節點
當前提交
a147099fa3
共有 2 個文件被更改,包括 4 次插入2 次删除
  1. 3 1
      loudness/patterns/front-page.php
  2. 1 1
      loudness/patterns/post-list.php

+ 3 - 1
loudness/patterns/front-page.php

@@ -2,15 +2,17 @@
 /**
  * Title: Front Page
  * Slug: loudness/front-page
+ * Inserter: no
  */
 ?>
 
 <?php
 if ( 'posts' === get_option( 'show_on_front' ) ) {
 	// Show query
+	echo( '<!-- wp:spacer {"height":"var(--wp--preset--spacing--70)"} --><div style="height:var(--wp--preset--spacing--70)" aria-hidden="true" class="wp-block-spacer"></div><!-- /wp:spacer -->' );
 	echo( '<!-- wp:pattern {"slug":"loudness/posts-list"} /-->' );
 } else {
 	// show content
-	echo( '<!-- wp:post-content {"tagName":"main","layout":{"inherit":true},"lock":{"move":false,"remove":true}} /-->' );
+	echo( '<!-- wp:post-content {"tagName":"main","layout":{"inherit":true}} /-->' );
 }
 

+ 1 - 1
loudness/patterns/post-list.php

@@ -43,7 +43,7 @@
 <!-- /wp:columns -->
 
 <!-- wp:separator {"style":{"spacing":{"margin":{"top":"var:preset|spacing|60","bottom":"var:preset|spacing|60"}}}} -->
-<hr class="wp-block-separator has-alpha-channel-opacity" style="margin-top:var(--wp--preset--spacing--70);margin-bottom:var(--wp--preset--spacing--70)"/>
+<hr class="wp-block-separator has-alpha-channel-opacity" style="margin-top:var(--wp--preset--spacing--60);margin-bottom:var(--wp--preset--spacing--60)"/>
 <!-- /wp:separator -->
 
 <!-- /wp:post-template -->