Commit 4128be1
committed
feat: enhance blog code blocks and add admonition support
- Add syntax-highlighted code blocks with copy button functionality
- Improve code block color contrast with better Shiki themes (github-light/github-dark-dimmed)
- Add support for Docusaurus-style admonitions (:::tip:::, :::warning:::, etc.)
- Replace emoji icons with professional SVG icons from simple-icons for social share buttons
- Add hover effects and visual feedback for copy buttons
- Improve accessibility with proper aria-labels
Technical changes:
- Install remark-directive and remark-admonitions for MDX admonition support
- Add custom remark plugin to handle admonition rendering
- Add CSS styles for 5 admonition types (tip, warning, danger, note, info)
- Implement JavaScript code block copy functionality
- Update BlogPostLayout to use SocialIcon component for Twitter/LinkedIn1 parent 019ab7a commit 4128be1
5 files changed
Lines changed: 523 additions & 16 deletions
File tree
- src
- layouts
- styles
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2 | 2 | | |
3 | 3 | | |
4 | 4 | | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
5 | 27 | | |
6 | 28 | | |
7 | 29 | | |
| |||
21 | 43 | | |
22 | 44 | | |
23 | 45 | | |
| 46 | + | |
24 | 47 | | |
25 | | - | |
26 | 48 | | |
27 | 49 | | |
28 | | - | |
| 50 | + | |
29 | 51 | | |
30 | 52 | | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
31 | 62 | | |
32 | 63 | | |
33 | 64 | | |
0 commit comments