瀏覽代碼

Archeo: Update next/prev links in the post footer (#5518)

* Archeo: Update next/prev links in the post footer

* Change font weight to 100

Co-authored-by: Sarah Norris <sarah@sekai.co.uk>
Ben Dwyer 3 年之前
父節點
當前提交
45b493f6be
共有 2 個文件被更改,包括 13 次插入12 次删除
  1. 6 12
      archeo/templates/single.html
  2. 7 0
      archeo/theme.json

+ 6 - 12
archeo/templates/single.html

@@ -53,26 +53,20 @@
 		<div class="wp-block-columns alignwide is-not-stacked-on-mobile" style="padding-top:0px;padding-right:0px;padding-bottom:0px;padding-left:0px"><!-- wp:column -->
 		<div class="wp-block-column"><!-- wp:separator {"className":"is-style-wide"} -->
 		<hr class="wp-block-separator is-style-wide"/>
-		<!-- /wp:separator --></div>
+		<!-- /wp:separator -->
+		<!-- wp:post-navigation-link {"type":"previous","label":"Previous Post"} /-->
+		</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 --></div>
+		<!-- /wp:separator -->
+		<!-- wp:post-navigation-link {"textAlign":"right","label":"Next Post"} /-->
+		</div>
 		<!-- /wp:column --></div>
 		<!-- /wp:columns -->
 
-		<!-- wp:group {"align":"wide","layout":{"type":"flex","allowOrientation":false,"justifyContent":"space-between"}} -->
-		<div class="wp-block-group alignwide"><!-- wp:post-navigation-link {"type":"previous","label":"Previous Post","style":{"typography":{"textTransform":"uppercase"}},"fontSize":"medium"} /-->
-
-		<!-- wp:separator {"className":"is-style-wide"} -->
-		<hr class="wp-block-separator is-style-wide"/>
-		<!-- /wp:separator -->
-
-		<!-- wp:post-navigation-link {"label":"Next Post","style":{"typography":{"textTransform":"uppercase"}},"fontSize":"medium"} /--></div>
-		<!-- /wp:group -->
-
 		<!-- wp:spacer {"height":"48px"} -->
 		<div style="height:48px" aria-hidden="true" class="wp-block-spacer"></div>
 		<!-- /wp:spacer -->

+ 7 - 0
archeo/theme.json

@@ -117,6 +117,13 @@
 					"lineHeight": "1.1"
 				}
 			},
+			"core/post-navigation-link": {
+				"typography": {
+					"fontSize": "var(--wp--preset--font-size--medium)",
+					"fontWeight": "100",
+					"textTransform": "uppercase"
+				}
+			},
 			"core/site-title": {
 				"typography": {
 					"fontSize": "var(--wp--preset--font-size--normal)",