Fork of Chiri for Astro for my blog
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

style: tweak inline code padding and clarify theme config

the3ash 5270f8a9 f8fa815a

+26 -4
+23 -1
src/content/posts/theme-guide.md
··· 9 9 10 10 ## Basic Commands 11 11 12 - - `pnpm new <title>` - Create a new post (use `_title` for drafts) 12 + - `pnpm new <title` - Create a new post (use `_title` for drafts) 13 13 - `pnpm update-theme` - Update the theme to the latest version 14 14 15 15 ## Main Files & Directories ··· 91 91 title: 'Post Title' 92 92 pubDate: '2025-07-10' 93 93 --- 94 + ``` 95 + 96 + --- 97 + 98 + ## Syntax Highlighting 99 + 100 + You can configure the theme via `shikiConfig` in `astro.config.ts`. 101 + 102 + For more details: [Syntax Highlighting | Astro Docs](https://docs.astro.build/en/guides/syntax-highlighting/) 103 + 104 + ```ts 105 + import { defineConfig } from 'astro/config' 106 + 107 + export default defineConfig({ 108 + markdown: { 109 + shikiConfig: { 110 + light: 'github-light', 111 + dark: 'github-dark', 112 + wrap: false 113 + } 114 + } 115 + }) 94 116 ``` 95 117 96 118 ---
+1 -1
src/styles/global.css
··· 129 129 130 130 @media (max-width: 768px) { 131 131 body { 132 - padding: 3.5rem 1.5rem 1.5rem 1.5rem; 132 + padding: 3.5rem 1.35rem 1.35rem 1.35rem; 133 133 } 134 134 } 135 135
+2 -2
src/styles/post.css
··· 170 170 171 171 /* Inline code */ 172 172 .prose code { 173 - padding: 3px 5px; 174 - border-radius: 6px; 173 + padding: 2.5px 3.5px; 174 + border-radius: 5px; 175 175 background-color: var(--code-bg); 176 176 border: 0.5px solid var(--border); 177 177 font-family: var(--mono);