From 17ffdde1db9cd29fdaa9edcc3d09a5480380ab15 Mon Sep 17 00:00:00 2001 From: Daisuke Date: Thu, 1 Jan 2026 11:26:04 +0900 Subject: [PATCH 1/4] chore(infra): remove deprecated Amplify deployment stack --- amplify-stack.yaml | 61 ---------------------------------------------- 1 file changed, 61 deletions(-) delete mode 100644 amplify-stack.yaml diff --git a/amplify-stack.yaml b/amplify-stack.yaml deleted file mode 100644 index 8bc55fa..0000000 --- a/amplify-stack.yaml +++ /dev/null @@ -1,61 +0,0 @@ -AWSTemplateFormatVersion: '2010-09-09' -Description: 'CloudFormation template for deploying Astro site to AWS Amplify' - -Parameters: - GitHubAccessToken: - Type: String - NoEcho: true - Description: GitHub Access token for repository access - -Resources: - AmplifyApp: - Type: AWS::Amplify::App - UpdateReplacePolicy: Delete - DeletionPolicy: Delete - Properties: - Name: blog_daisuke_nakahara - Repository: https://github.com/Daisuke897/blog_daisuke_nakahara - AccessToken: !Ref GitHubAccessToken - Platform: WEB - BuildSpec: | - version: 1 - frontend: - phases: - preBuild: - commands: - - npm ci --cache .npm --prefer-offline - build: - commands: - - npm run build - artifacts: - baseDirectory: dist - files: - - '**/*' - cache: - paths: - - .npm/**/* - CustomRules: - - Source: ' Date: Fri, 2 Jan 2026 21:27:59 +0900 Subject: [PATCH 2/4] chore: polish layout and homepage lists --- src/components/Footer.astro | 2 +- src/components/Navigation.astro | 2 +- src/layouts/MarkdownPostLayout.astro | 19 ++++++++++++++----- src/pages/index.astro | 3 ++- 4 files changed, 18 insertions(+), 8 deletions(-) diff --git a/src/components/Footer.astro b/src/components/Footer.astro index 9c72f54..3e2edc3 100644 --- a/src/components/Footer.astro +++ b/src/components/Footer.astro @@ -16,5 +16,5 @@ diff --git a/src/components/Navigation.astro b/src/components/Navigation.astro index 4257856..67284b2 100644 --- a/src/components/Navigation.astro +++ b/src/components/Navigation.astro @@ -7,7 +7,7 @@ About Articles Tags - + Forgejo Icon diff --git a/src/layouts/MarkdownPostLayout.astro b/src/layouts/MarkdownPostLayout.astro index af007b0..b236a24 100644 --- a/src/layouts/MarkdownPostLayout.astro +++ b/src/layouts/MarkdownPostLayout.astro @@ -49,18 +49,27 @@ const optionsForDate = { .markdown-content { font-family: sans-serif; - font-size: 1.2rem; - line-height: 2.5; + font-size: 1.1rem; + line-height: 1.8; } .markdown-content h1 { - font-size: 1.9rem; + font-size: 1.6rem; + margin-top: 2rem; + margin-bottom: 1rem; + line-height: 1.3; } .markdown-content h2 { - font-size: 1.75rem; + font-size: 1.4rem; + margin-top: 1.8rem; + margin-bottom: 0.8rem; + line-height: 1.3; } .markdown-content h3 { - font-size: 1.5rem; + font-size: 1.2rem; + margin-top: 1.5rem; + margin-bottom: 0.6rem; + line-height: 1.3; } diff --git a/src/pages/index.astro b/src/pages/index.astro index 06ba9b9..aa7888a 100644 --- a/src/pages/index.astro +++ b/src/pages/index.astro @@ -4,6 +4,7 @@ import BlogPost from "../components/BlogPost.astro"; import { getCollection } from "astro:content"; const pageTitle = "Naputo"; const allPosts = await getCollection("blog"); +const sortedPosts = allPosts.sort((a, b) => b.data.pubDate.valueOf() - a.data.pubDate.valueOf()); ---