From d6930087859afe09010a222dbdb21f3d47cbad79 Mon Sep 17 00:00:00 2001 From: Sergey Gorbachev Date: Mon, 22 Sep 2025 14:58:29 +0300 Subject: [PATCH 01/44] change site domain and name in config --- .env.example | 4 ++-- site.config.ts | 6 +++--- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/.env.example b/.env.example index d8f292f7..8a162264 100644 --- a/.env.example +++ b/.env.example @@ -1,5 +1,5 @@ -WORDPRESS_URL="https://wordpress.com" -WORDPRESS_HOSTNAME="wordpress.com" +WORDPRESS_URL="https://sysblok.ru" +WORDPRESS_HOSTNAME="sysblok.ru" # If using the revalidate plugin # You can generate by running `openssl rand -base64 32` in the terminal diff --git a/site.config.ts b/site.config.ts index 40d044b5..6930924f 100644 --- a/site.config.ts +++ b/site.config.ts @@ -5,7 +5,7 @@ type SiteConfig = { }; export const siteConfig: SiteConfig = { - site_name: "next-wp", - site_description: "Starter template for Headless WordPress with Next.js", - site_domain: "https://next-wp.com", + site_name: "Системный Блокъ", + site_description: "Онлайн-журнал о влиянии цифровых технологий на культуру, человека и общество", + site_domain: "https://new.sysblok.ru", }; From 68980f7d4b99d5ebf47fc5ac14e52ae9092978de Mon Sep 17 00:00:00 2001 From: Sergey Gorbachev Date: Mon, 22 Sep 2025 17:30:27 +0300 Subject: [PATCH 02/44] handle error when fetching author --- app/posts/[slug]/page.tsx | 13 +++++++++---- components/posts/post-card.tsx | 2 -- 2 files changed, 9 insertions(+), 6 deletions(-) diff --git a/app/posts/[slug]/page.tsx b/app/posts/[slug]/page.tsx index ab155d4c..431a1770 100644 --- a/app/posts/[slug]/page.tsx +++ b/app/posts/[slug]/page.tsx @@ -74,7 +74,11 @@ export default async function Page({ const featuredMedia = post.featured_media ? await getFeaturedMediaById(post.featured_media) : null; - const author = await getAuthorById(post.author); + let author; + // TODO: Add coauthor fetch + try { + author = await getAuthorById(post.author); + } catch {} const date = new Date(post.date).toLocaleDateString("en-US", { month: "long", day: "numeric", @@ -95,12 +99,13 @@ export default async function Page({
- Published {date} by{" "} - {author.name && ( + Published {date} + {author?.name && <> + {" by "} {author.name}{" "} - )} + }
Date: Mon, 22 Sep 2025 17:30:42 +0300 Subject: [PATCH 03/44] change default theme to light --- app/layout.tsx | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/app/layout.tsx b/app/layout.tsx index 0507cbe1..5b51286d 100644 --- a/app/layout.tsx +++ b/app/layout.tsx @@ -45,8 +45,7 @@ export default function RootLayout({
- @@ -107,23 +95,16 @@ const Footer = () => { return (