Browse Source

Creatio 2: Round of updates (#7394)

* Remove references to Literata font.

* Update page.html

Remove the reference to theme.

* Remove references to Literata font.

Remove references to Literata font in single post and page templates,

* Update single.html

Add post meta and byline to single post template.

* Update theme.json

Specify font-family for site and post titles.

* Update theme.json

Change the default post title font size.
alaczek 1 year ago
parent
commit
95531aa3b9

+ 1 - 1
creatio-2/templates/archive.html

@@ -14,7 +14,7 @@
 
 <!-- wp:post-featured-image {"isLink":true,"aspectRatio":"3/2"} /-->
 
-<!-- wp:post-title {"isLink":true,"fontSize":"x-large","fontFamily":"literata"} /-->
+<!-- wp:post-title {"isLink":true,"fontSize":"x-large"} /-->
 
 <!-- wp:post-excerpt {"showMoreOnNewLine":false,"excerptLength":50,"style":{"typography":{"lineHeight":1.5}},"fontSize":"small"} /-->
 

+ 1 - 1
creatio-2/templates/index.html

@@ -12,7 +12,7 @@
 
 <!-- wp:post-featured-image {"isLink":true,"aspectRatio":"3/2"} /-->
 
-<!-- wp:post-title {"isLink":true,"fontSize":"x-large","fontFamily":"literata"} /-->
+<!-- wp:post-title {"isLink":true,"fontSize":"x-large"} /-->
 
 <!-- wp:post-excerpt {"showMoreOnNewLine":false,"excerptLength":50,"fontSize":"small"} /-->
 

+ 2 - 2
creatio-2/templates/page.html

@@ -2,7 +2,7 @@
 
 <!-- wp:group {"tagName":"main","style":{"spacing":{"margin":{"top":"var:preset|spacing|70","bottom":"var:preset|spacing|70"},"blockGap":"var:preset|spacing|50"}},"layout":{"type":"default"}} -->
 <main class="wp-block-group" style="margin-top:var(--wp--preset--spacing--70);margin-bottom:var(--wp--preset--spacing--70)"><!-- wp:group {"style":{"spacing":{"blockGap":"var:preset|spacing|40"}},"layout":{"type":"constrained"}} -->
-<div class="wp-block-group"><!-- wp:post-title {"textAlign":"center","fontSize":"xxx-large","fontFamily":"literata"} /-->
+<div class="wp-block-group"><!-- wp:post-title {"textAlign":"center","fontSize":"xxx-large"} /-->
 
 <!-- wp:post-featured-image /--></div>
 <!-- /wp:group -->
@@ -48,4 +48,4 @@
 <!-- /wp:group --></main>
 <!-- /wp:group -->
 
-<!-- wp:template-part {"slug":"footer","theme":"creatio2"} /-->
+<!-- wp:template-part {"slug":"footer"} /-->

+ 1 - 3
creatio-2/templates/search.html

@@ -40,9 +40,7 @@
 <!-- /wp:group -->
 
 <!-- wp:query-no-results -->
-<!-- wp:paragraph {"style":{"spacing":{"padding":{"bottom":"80px","top":"20px"}}}} -->
-<p style="padding-top:20px;padding-bottom:80px">Sorry, but nothing matched your search terms. Please try again with some different keywords.</p>
-<!-- /wp:paragraph -->
+<!-- wp:pattern {"slug":"creatio-2/hidden-no-results-content"} /-->
 <!-- /wp:query-no-results --></main>
 <!-- /wp:query -->
 

+ 4 - 2
creatio-2/templates/single.html

@@ -2,8 +2,10 @@
 
 <!-- wp:group {"tagName":"main","style":{"spacing":{"margin":{"top":"var:preset|spacing|70","bottom":"var:preset|spacing|70"},"blockGap":"var:preset|spacing|50"}},"layout":{"type":"default"}} -->
 <main class="wp-block-group" style="margin-top:var(--wp--preset--spacing--70);margin-bottom:var(--wp--preset--spacing--70)"><!-- wp:group {"style":{"spacing":{"blockGap":"var:preset|spacing|40"}},"layout":{"type":"constrained"}} -->
-<div class="wp-block-group"><!-- wp:post-title {"textAlign":"center","fontSize":"xxx-large","fontFamily":"literata"} /-->
-
+<div class="wp-block-group">
+	<!-- wp:template-part {"slug":"post-meta"} /-->
+	<!-- wp:post-title {"textAlign":"center","fontSize":"xxx-large"} /-->
+	<!-- wp:template-part {"slug":"byline-date"} /-->
 <!-- wp:post-featured-image /--></div>
 <!-- /wp:group -->
 

+ 3 - 1
creatio-2/theme.json

@@ -411,7 +411,8 @@
 					}
 				},
 				"typography": {
-					"fontSize": "var(--wp--preset--font-size--large)"
+					"fontFamily": "var(--wp--preset--font-family--inter)",
+					"fontSize": "var(--wp--preset--font-size--xxx-large)"
 				}
 			},
 			"core/pullquote": {
@@ -504,6 +505,7 @@
 					}
 				},
 				"typography": {
+					"fontFamily": "var(--wp--preset--font-family--inter)",
 					"fontSize": "var(--wp--preset--font-size--medium)",
 					"fontStyle": "normal"
 				}