From 3f2890cfe34fc295ce771bc94ced55dce8793cf9 Mon Sep 17 00:00:00 2001 From: Carolina Nymark Date: Wed, 21 Aug 2024 14:41:07 +0200 Subject: [PATCH 01/15] Add templates and theme.json changes for "personal blog" --- patterns/hidden-no-results.php | 15 ++++++++++++ patterns/posts-personal-blog.php | 40 ++++++++++++++++++++++++++++++++ templates/archive.html | 11 +++++++++ templates/home.html | 14 +++++++++++ templates/index.html | 38 +++++++----------------------- templates/search.html | 11 +++++++++ theme.json | 19 +++++++++++++++ 7 files changed, 118 insertions(+), 30 deletions(-) create mode 100644 patterns/hidden-no-results.php create mode 100644 patterns/posts-personal-blog.php create mode 100644 templates/archive.html create mode 100644 templates/home.html create mode 100644 templates/search.html diff --git a/patterns/hidden-no-results.php b/patterns/hidden-no-results.php new file mode 100644 index 00000000..c9b3917e --- /dev/null +++ b/patterns/hidden-no-results.php @@ -0,0 +1,15 @@ + + +

+ diff --git a/patterns/posts-personal-blog.php b/patterns/posts-personal-blog.php new file mode 100644 index 00000000..03db50f8 --- /dev/null +++ b/patterns/posts-personal-blog.php @@ -0,0 +1,40 @@ + + +
+ + + + + +
+ + + + +
+ + + +
+ + + + + +
+ +
+ diff --git a/templates/archive.html b/templates/archive.html new file mode 100644 index 00000000..56f10842 --- /dev/null +++ b/templates/archive.html @@ -0,0 +1,11 @@ + + + +
+ + + +
+ + + diff --git a/templates/home.html b/templates/home.html new file mode 100644 index 00000000..0f845cd7 --- /dev/null +++ b/templates/home.html @@ -0,0 +1,14 @@ + + + +
+ +

Blog

+ + + + +
+ + + diff --git a/templates/index.html b/templates/index.html index 2aa29dea..0f845cd7 100644 --- a/templates/index.html +++ b/templates/index.html @@ -1,36 +1,14 @@ - -
- - -
- - - - -
- - - - -
- -
- - - -
- - + +
+ +

Blog

+ - + - - -
- -
- + + diff --git a/templates/search.html b/templates/search.html new file mode 100644 index 00000000..2a545ec5 --- /dev/null +++ b/templates/search.html @@ -0,0 +1,11 @@ + + + +
+ + + +
+ + + diff --git a/theme.json b/theme.json index 2a0ef1a4..bf31e5d5 100644 --- a/theme.json +++ b/theme.json @@ -996,6 +996,17 @@ "lineHeight": "1.2" } }, + "core/query-pagination": { + "typography": { + "fontSize": "var:preset|font-size|small", + "fontWeight": "500" + } + }, + "core/query-title":{ + "typography": { + "fontSize": "var:preset|font-size|x-large" + } + }, "core/search": { "typography": { "fontSize": "var:preset|font-size|medium", @@ -1013,6 +1024,14 @@ "fontWeight": "700" } }, + "core/term-description": { + "color":{ + "text":"var:preset|color|primary" + }, + "typography": { + "fontSize": "var:preset|font-size|small" + } + }, "core/navigation": { "typography": { "fontSize": "var:preset|font-size|small" From 18f698b5d54dcf852ebe6d0eb492d6e4ef985551 Mon Sep 17 00:00:00 2001 From: Carolina Nymark Date: Wed, 21 Aug 2024 14:44:29 +0200 Subject: [PATCH 02/15] Fix spacing in the no results pattern --- patterns/hidden-no-results.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/patterns/hidden-no-results.php b/patterns/hidden-no-results.php index c9b3917e..55d2b9d0 100644 --- a/patterns/hidden-no-results.php +++ b/patterns/hidden-no-results.php @@ -9,7 +9,7 @@ * @since Twenty Twenty-Five 1.0 */ - ?> +?>

From 28f90e02c526204b1110a881e7abba59eaabef23 Mon Sep 17 00:00:00 2001 From: Carolina Nymark Date: Wed, 21 Aug 2024 15:14:44 +0200 Subject: [PATCH 03/15] WIP: add single template --- templates/single.html | 25 +++++++++++++++++++++++++ theme.json | 6 ++++++ 2 files changed, 31 insertions(+) create mode 100644 templates/single.html diff --git a/templates/single.html b/templates/single.html new file mode 100644 index 00000000..1a79e930 --- /dev/null +++ b/templates/single.html @@ -0,0 +1,25 @@ + + + +
+ +
+ + + + +
+

Written by

+ +
+ + + +
+ +
+ +
+ + + diff --git a/theme.json b/theme.json index bf31e5d5..e26ca2ad 100644 --- a/theme.json +++ b/theme.json @@ -987,6 +987,12 @@ "fontSize": "var:preset|font-size|small" } }, + "core/post-terms": { + "typography": { + "fontSize": "var:preset|font-size|x-small", + "fontWeight": "600" + } + }, "core/pullquote": { "typography": { "fontSize": "var:preset|font-size|x-large", From 728cb6eff4c058f5efbefbf3142540f0f46eff9c Mon Sep 17 00:00:00 2001 From: Carolina Nymark Date: Wed, 21 Aug 2024 15:16:30 +0200 Subject: [PATCH 04/15] Add link to the author archive --- templates/single.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/templates/single.html b/templates/single.html index 1a79e930..2d76d974 100644 --- a/templates/single.html +++ b/templates/single.html @@ -10,7 +10,7 @@

Written by

- +
From 72a892370111eacc3aba8644824585c0fa35260e Mon Sep 17 00:00:00 2001 From: Carolina Nymark Date: Wed, 21 Aug 2024 16:15:53 +0200 Subject: [PATCH 05/15] Single: add next and previous post navigation below the tags. --- templates/single.html | 15 +++++++++++++++ theme.json | 5 +++++ 2 files changed, 20 insertions(+) diff --git a/templates/single.html b/templates/single.html index 2d76d974..f403b61c 100644 --- a/templates/single.html +++ b/templates/single.html @@ -7,16 +7,31 @@ +

Written by

+ +
+ + +
+ +
+ + +
+ +
+ + diff --git a/theme.json b/theme.json index e26ca2ad..c1877c10 100644 --- a/theme.json +++ b/theme.json @@ -987,6 +987,11 @@ "fontSize": "var:preset|font-size|small" } }, + "core/post-navigation-link": { + "typography": { + "fontSize": "var:preset|font-size|small" + } + }, "core/post-terms": { "typography": { "fontSize": "var:preset|font-size|x-small", From 11ccf93c42fe91edb4ace6f9e49b946888cfd1bf Mon Sep 17 00:00:00 2001 From: Carolina Nymark Date: Wed, 21 Aug 2024 16:36:18 +0200 Subject: [PATCH 06/15] Add page template --- templates/page.html | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 templates/page.html diff --git a/templates/page.html b/templates/page.html new file mode 100644 index 00000000..3979cfcc --- /dev/null +++ b/templates/page.html @@ -0,0 +1,15 @@ + + + +
+ +
+ + + +
+ +
+ + + From 20940fa0efb81cbd842438ea546ec7e004342bb6 Mon Sep 17 00:00:00 2001 From: Carolina Nymark Date: Wed, 21 Aug 2024 16:59:57 +0200 Subject: [PATCH 07/15] Change the layout type of the query loop to default Change the layout type of the query loop to default. This fixes a problem where full width blocks did not use the correct width in the archives. --- patterns/posts-personal-blog.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/patterns/posts-personal-blog.php b/patterns/posts-personal-blog.php index 03db50f8..8c1b4849 100644 --- a/patterns/posts-personal-blog.php +++ b/patterns/posts-personal-blog.php @@ -12,7 +12,7 @@ */ ?> - +
From e5c55742d1b404157fc375ffd212ba7077b6bd8b Mon Sep 17 00:00:00 2001 From: Carolina Nymark Date: Fri, 23 Aug 2024 07:14:55 +0200 Subject: [PATCH 08/15] Wrap the query no restults in a group so that it aligns with the rest of the content. --- patterns/posts-personal-blog.php | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/patterns/posts-personal-blog.php b/patterns/posts-personal-blog.php index 8c1b4849..033cc3ac 100644 --- a/patterns/posts-personal-blog.php +++ b/patterns/posts-personal-blog.php @@ -14,9 +14,13 @@ ?>
- - - + +
+ + + +
+
From 2ac8ae1ccf42882de6179afddea418e025b06ecb Mon Sep 17 00:00:00 2001 From: Carolina Nymark Date: Fri, 23 Aug 2024 07:56:27 +0200 Subject: [PATCH 09/15] Update post navigation - Change the inner div in the post navigation to a nav. - Add an aria label that says "Post navigation" - Move the section to a pattern. --- patterns/post-navigation.php | 24 ++++++++++++++++++++++++ templates/single.html | 6 +++--- 2 files changed, 27 insertions(+), 3 deletions(-) create mode 100644 patterns/post-navigation.php diff --git a/patterns/post-navigation.php b/patterns/post-navigation.php new file mode 100644 index 00000000..bbb9c3a4 --- /dev/null +++ b/patterns/post-navigation.php @@ -0,0 +1,24 @@ + + +
+ + + +
+ diff --git a/templates/single.html b/templates/single.html index f403b61c..b5f0d5f9 100644 --- a/templates/single.html +++ b/templates/single.html @@ -23,11 +23,11 @@
- -
+ +
+
From 3c3dd066b98220e08980127137599e215e72a62c Mon Sep 17 00:00:00 2001 From: Carolina Nymark Date: Sun, 25 Aug 2024 10:49:42 +0200 Subject: [PATCH 10/15] Fine tune underlines, space above post date, and content font size. --- patterns/posts-personal-blog.php | 4 ++-- theme.json | 24 +++++++++++++++++++++++- 2 files changed, 25 insertions(+), 3 deletions(-) diff --git a/patterns/posts-personal-blog.php b/patterns/posts-personal-blog.php index 033cc3ac..52871217 100644 --- a/patterns/posts-personal-blog.php +++ b/patterns/posts-personal-blog.php @@ -26,8 +26,8 @@
- - + +
diff --git a/theme.json b/theme.json index 6596856e..7435c2af 100644 --- a/theme.json +++ b/theme.json @@ -977,8 +977,16 @@ }, "elements": { "link": { - "color" : { + "color" : { "text": "var:preset|color|primary" + }, + ":hover": { + "typography": { + "textDecoration": "underline" + } + }, + "typography": { + "textDecoration": "none" } } }, @@ -997,6 +1005,20 @@ "fontWeight": "600" } }, + "core/post-title": { + "elements": { + "link": { + ":hover": { + "typography": { + "textDecoration": "underline" + } + }, + "typography": { + "textDecoration": "none" + } + } + } + }, "core/pullquote": { "typography": { "fontSize": "var:preset|font-size|x-large", From 22043c2b486b346c6dd7cebda1b01f68f11a2c79 Mon Sep 17 00:00:00 2001 From: Carolina Nymark Date: Sun, 25 Aug 2024 11:03:16 +0200 Subject: [PATCH 11/15] Fine tune underlines on post terms --- theme.json | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/theme.json b/theme.json index 7435c2af..9f282fef 100644 --- a/theme.json +++ b/theme.json @@ -1003,6 +1003,18 @@ "typography": { "fontSize": "var:preset|font-size|x-small", "fontWeight": "600" + }, + "elements": { + "link": { + "typography": { + "textDecoration": "none" + }, + ":hover": { + "typography": { + "textDecoration": "underline" + } + } + } } }, "core/post-title": { From d4c4b34fc0adab1a5fa2c03f7b25e0045e4ae259 Mon Sep 17 00:00:00 2001 From: Carolina Nymark Date: Sun, 25 Aug 2024 11:09:32 +0200 Subject: [PATCH 12/15] Make the singular post title larger, update "written by" color. --- templates/page.html | 2 +- templates/single.html | 6 ++++-- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/templates/page.html b/templates/page.html index 3979cfcc..1ae1d4de 100644 --- a/templates/page.html +++ b/templates/page.html @@ -5,7 +5,7 @@
- +
diff --git a/templates/single.html b/templates/single.html index b5f0d5f9..a5e86da4 100644 --- a/templates/single.html +++ b/templates/single.html @@ -5,12 +5,14 @@
- +
-

Written by

+ +

Written by

+
From 5d56a18284b51758538e3c748322481c3d136558 Mon Sep 17 00:00:00 2001 From: Carolina Nymark Date: Sun, 25 Aug 2024 11:46:53 +0200 Subject: [PATCH 13/15] Add block style variation for the pill shaped post terms Add block style variation for the pill shaped post terms. Clean up the unwanted font size on the group that wraps the tags. Remove the separator from the tags. --- styles/blocks/post-terms-1.json | 30 ++++++++++++++++++++++++++++++ templates/single.html | 6 ++++-- 2 files changed, 34 insertions(+), 2 deletions(-) create mode 100644 styles/blocks/post-terms-1.json diff --git a/styles/blocks/post-terms-1.json b/styles/blocks/post-terms-1.json new file mode 100644 index 00000000..40e1b861 --- /dev/null +++ b/styles/blocks/post-terms-1.json @@ -0,0 +1,30 @@ +{ + "version": 3, + "$schema": "https://schemas.wp.org/trunk/theme.json", + "title": "Pill shaped", + "slug": "post-terms-1", + "blockTypes": ["core/post-terms"], + "styles": { + "elements": { + "link": { + "border": { + "color": "var:preset|color|opacity-20", + "radius": "20px", + "width": "0.8px", + "style": "solid" + }, + "spacing": { + "padding": { + "top": "5px", + "right": "10px", + "bottom": "5px", + "left": "10px" + } + }, + "typography": { + "fontWeight": "400" + } + } + } + } +} diff --git a/templates/single.html b/templates/single.html index a5e86da4..a2d79250 100644 --- a/templates/single.html +++ b/templates/single.html @@ -19,8 +19,10 @@ - -
+ +
+ +
From b8b847e965354be3932e8ae2cef56a2baf95dc67 Mon Sep 17 00:00:00 2001 From: Carolina Nymark Date: Sun, 25 Aug 2024 11:56:15 +0200 Subject: [PATCH 14/15] Correct the top border color on post navigation --- patterns/post-navigation.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/patterns/post-navigation.php b/patterns/post-navigation.php index bbb9c3a4..cf5b8ffe 100644 --- a/patterns/post-navigation.php +++ b/patterns/post-navigation.php @@ -14,8 +14,8 @@ ?>
- -