diff --git a/parts/post-meta.html b/parts/post-meta.html new file mode 100644 index 0000000..0ffec4e --- /dev/null +++ b/parts/post-meta.html @@ -0,0 +1,21 @@ + +
+
+ + + + + +
+ + + + + + + +
+ + +
+ \ No newline at end of file diff --git a/templates/page-alternative.html b/templates/page-alternative.html new file mode 100644 index 0000000..40bb01b --- /dev/null +++ b/templates/page-alternative.html @@ -0,0 +1,19 @@ + + + +
+
+ + +
+
+ + + + + + +
+ + + \ No newline at end of file diff --git a/templates/post-alternative.html b/templates/post-alternative.html new file mode 100644 index 0000000..40bb01b --- /dev/null +++ b/templates/post-alternative.html @@ -0,0 +1,19 @@ + + + +
+
+ + +
+
+ + + + + + +
+ + + \ No newline at end of file diff --git a/theme.json b/theme.json index a8d600b..f1769a5 100644 --- a/theme.json +++ b/theme.json @@ -1,6 +1,15 @@ { - "$schema": "https://schemas.wp.org/trunk/theme.json", - "version": 2, + + "customTemplates": [ + { + "name": "page-alternative", + "postTypes": [ + "page" + ], + "title": "Page Alternative" + } + ], + "customTemplates": [ { "name": "blank", @@ -16,6 +25,20 @@ "page" ], "title": "404" + }, + { + "name": "page-alternative", + "postTypes": [ + "page" + ], + "title": "Page (Alternative)" + }, + { + "name": "post-alternative", + "postTypes": [ + "post" + ], + "title": "Post (Alternative)" } ], "settings": { @@ -55,10 +78,10 @@ }, "spacing": { "spacingScale": { - "operator": "+", "increment": 0.5, - "steps": 9, "mediumStep": 1.5, + "operator": "+", + "steps": 9, "unit": "rem" }, "units": [ @@ -110,12 +133,12 @@ "core/navigation": { "elements": { "link": { - ":hover": { + ":focus": { "typography": { "textDecoration": "underline" } }, - ":focus": { + ":hover": { "typography": { "textDecoration": "underline" } @@ -132,15 +155,6 @@ "fontStyle": "italic" } }, - "core/post-content": { - "elements": { - "link": { - "color": { - "text": "var(--wp--preset--color--secondary)" - } - } - } - }, "core/post-comments": { "spacing": { "padding": { @@ -148,22 +162,31 @@ } } }, - "core/post-excerpt": { - "typography": { - "fontSize": "var(--wp--preset--font-size--small)" + "core/post-content": { + "elements": { + "link": { + "color": { + "text": "var(--wp--preset--color--secondary)" + } + } } }, "core/post-date": { - "typography": { - "fontSize": "var(--wp--preset--font-size--small)", - "fontWeight": "400" - }, "elements": { "link": { "typography": { "textDecoration": "none" } } + }, + "typography": { + "fontSize": "var(--wp--preset--font-size--small)", + "fontWeight": "400" + } + }, + "core/post-excerpt": { + "typography": { + "fontSize": "var(--wp--preset--font-size--small)" } }, "core/post-terms": { @@ -173,16 +196,16 @@ } }, "core/post-title": { - "typography": { - "fontSize": "var(--wp--preset--font-size--large)", - "fontWeight": "400" - }, "elements": { "link": { "typography": { "textDecoration": "none" } } + }, + "typography": { + "fontSize": "var(--wp--preset--font-size--large)", + "fontWeight": "400" } }, "core/pullquote": { @@ -191,15 +214,15 @@ } }, "core/query-pagination": { - "typography": { - "fontSize": "var(--wp--preset--font-size--small)" - }, "elements": { "link": { "typography": { "textDecoration": "none" } } + }, + "typography": { + "fontSize": "var(--wp--preset--font-size--small)" } }, "core/quote": { @@ -210,18 +233,18 @@ "core/site-title": { "elements": { "link": { - "typography": { - "textDecoration": "none" - }, - ":hover": { + ":focus": { "typography": { "textDecoration": "underline" } }, - ":focus": { + ":hover": { "typography": { "textDecoration": "underline" } + }, + "typography": { + "textDecoration": "none" } } }, @@ -239,19 +262,9 @@ }, "elements": { "button": { - "border": { - "radius": "0" - }, - "color": { - "background": "var(--wp--preset--color--primary)", - "text": "var(--wp--preset--color--contrast)" - }, - "typography": { - "fontSize": "var(--wp--preset--font-size--medium)" - }, - ":hover": { + ":active": { "color": { - "background": "var(--wp--preset--color--contrast)", + "background": "var(--wp--preset--color--secondary)", "text": "var(--wp--preset--color--base)" } }, @@ -261,11 +274,21 @@ "text": "var(--wp--preset--color--base)" } }, - ":active": { + ":hover": { "color": { - "background": "var(--wp--preset--color--secondary)", + "background": "var(--wp--preset--color--contrast)", "text": "var(--wp--preset--color--base)" } + }, + "border": { + "radius": "0" + }, + "color": { + "background": "var(--wp--preset--color--primary)", + "text": "var(--wp--preset--color--contrast)" + }, + "typography": { + "fontSize": "var(--wp--preset--font-size--medium)" } }, "h1": { @@ -316,28 +339,28 @@ } }, "link": { - "color": { - "text": "var(--wp--preset--color--contrast)" + ":active": { + "typography": { + "textDecoration": "none" + } }, ":hover": { "typography": { "textDecoration": "underline dashed" } }, - ":active": { - "typography": { - "textDecoration": "none" - } + "color": { + "text": "var(--wp--preset--color--contrast)" } } }, "spacing": { "blockGap": "1.5rem", "padding": { - "top": "0px", - "right": "var(--wp--preset--spacing--30)", "bottom": "0px", - "left": "var(--wp--preset--spacing--30)" + "left": "var(--wp--preset--spacing--30)", + "right": "var(--wp--preset--spacing--30)", + "top": "0px" } }, "typography": { @@ -356,6 +379,13 @@ "area": "footer", "name": "footer", "title": "Footer" + }, + { + "area": "general", + "name": "post-meta", + "title": "Post Meta" } - ] -} + ], + "version": 2, + "$schema": "https://schemas.wp.org/wp/6.1/theme.json" +} \ No newline at end of file