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: fix post first-child margin & tweak toc indicator width

the3ash 91276613 1f774f53

+9 -2
+1 -1
src/components/ui/TableOfContents.astro
··· 366 366 position: absolute; 367 367 left: 0; 368 368 top: 50%; 369 - width: 2.5rem; 369 + width: 1.75rem; 370 370 height: 1px; 371 371 background-color: var(--text-tertiary); 372 372 transform: translateY(-50%);
src/content/posts/_assets/toc.png

This is a binary file and will not be displayed.

+3 -1
src/layouts/PostLayout.astro
··· 56 56 } 57 57 </div> 58 58 </div> 59 - <slot /> 59 + <article class="content"> 60 + <slot /> 61 + </article> 60 62 </div> 61 63 </main> 62 64 <ImageOptimizer />
+5
src/styles/post.css
··· 10 10 margin-bottom: 8rem; 11 11 } 12 12 13 + /* Remove margin-top for the first child */ 14 + .prose .content > :first-child { 15 + margin-top: 0; 16 + } 17 + 13 18 /* Post title section */ 14 19 .prose .title { 15 20 margin-bottom: 2.5em;