@jet-w/astro-blog 0.1.5 → 0.2.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/chunk-ATRISB7B.js +206 -0
- package/dist/chunk-HVQKQN6B.js +145 -0
- package/dist/config/index.d.ts +3 -47
- package/dist/config/index.js +18 -2
- package/dist/i18n-5H4W145i.d.ts +202 -0
- package/dist/index.d.ts +186 -7
- package/dist/index.js +238 -3
- package/dist/integration.d.ts +9 -1
- package/dist/integration.js +2 -1
- package/dist/{sidebar-DNdiCKBw.d.ts → sidebar-Da-W_4Lr.d.ts} +1 -1
- package/dist/utils/sidebar.d.ts +1 -1
- package/package.json +4 -3
- package/src/components/layout/Footer.astro +36 -20
- package/src/components/layout/Header.astro +69 -15
- package/src/components/layout/Sidebar.astro +27 -15
- package/src/components/ui/LanguageSwitcher.vue +183 -0
- package/src/layouts/BaseLayout.astro +77 -52
- package/src/layouts/PageLayout.astro +22 -27
- package/src/layouts/SlidesLayout.astro +14 -2
- package/src/pages/rss.xml.ts +18 -6
- package/templates/default/astro.config.mjs +22 -2
- package/templates/default/content/posts/blog_docs/12-i18n.md +355 -0
- package/templates/default/content/posts/blog_docs/README.md +1 -0
- package/templates/default/content/posts/blog_docs_en/README.md +78 -0
- package/templates/default/content/posts/blog_docs_en/config/01-site.md +208 -0
- package/templates/default/content/posts/blog_docs_en/config/02-sidebar.md +240 -0
- package/templates/default/content/posts/blog_docs_en/config/03-i18n.md +285 -0
- package/templates/default/content/posts/blog_docs_en/config/README.md +85 -0
- package/templates/default/content/posts/blog_docs_en/get-started/01-intro.md +81 -0
- package/templates/default/content/posts/blog_docs_en/get-started/02-install.md +137 -0
- package/templates/default/content/posts/blog_docs_en/get-started/03-create-post.md +176 -0
- package/templates/default/content/posts/blog_docs_en/get-started/04-structure.md +173 -0
- package/templates/default/content/posts/blog_docs_en/get-started/05-deploy.md +197 -0
- package/templates/default/content/posts/blog_docs_en/get-started/README.md +52 -0
- package/templates/default/content/posts/blog_docs_en/guide/README.md +59 -0
- package/templates/default/content/posts/blog_docs_en/guide/features/01-mermaid.md +194 -0
- package/templates/default/content/posts/blog_docs_en/guide/features/02-latex.md +233 -0
- package/templates/default/content/posts/blog_docs_en/guide/features/03-video.md +184 -0
- package/templates/default/content/posts/blog_docs_en/guide/features/04-icons.md +227 -0
- package/templates/default/content/posts/blog_docs_en/guide/features/README.md +51 -0
- package/templates/default/content/posts/blog_docs_en/guide/markdown/02-containers.md +226 -0
- package/templates/default/content/posts/blog_docs_en/guide/markdown/03-code-blocks.md +206 -0
- package/templates/default/content/posts/blog_docs_en/guide/markdown/README.md +194 -0
- package/templates/default/package-lock.json +9667 -0
- package/templates/default/package.json +1 -1
- package/templates/default/src/config/footer.ts +14 -11
- package/templates/default/src/config/locales/en/footer.ts +17 -0
- package/templates/default/src/config/locales/en/index.ts +16 -0
- package/templates/default/src/config/locales/en/menu.ts +12 -0
- package/templates/default/src/config/locales/en/sidebar.ts +18 -0
- package/templates/default/src/config/locales/en/site.ts +7 -0
- package/templates/default/src/config/locales/index.ts +7 -0
- package/templates/default/src/config/locales/zh-CN/footer.ts +17 -0
- package/templates/default/src/config/locales/zh-CN/index.ts +16 -0
- package/templates/default/src/config/locales/zh-CN/menu.ts +12 -0
- package/templates/default/src/config/locales/zh-CN/sidebar.ts +18 -0
- package/templates/default/src/config/locales/zh-CN/site.ts +7 -0
- package/templates/default/src/config/sidebar.ts +10 -12
- package/templates/default/src/env.d.ts +7 -0
- package/dist/chunk-MQXPSOYB.js +0 -124
- /package/dist/{chunk-GYLSY3OJ.js → chunk-AZHCNNAC.js} +0 -0
|
@@ -0,0 +1,194 @@
|
|
|
1
|
+
---
|
|
2
|
+
title: Markdown Essentials
|
|
3
|
+
description: Core Markdown syntax for everyday writing
|
|
4
|
+
pubDate: 2025-01-01
|
|
5
|
+
author: Astro Blog
|
|
6
|
+
categories:
|
|
7
|
+
- Documentation
|
|
8
|
+
tags:
|
|
9
|
+
- Markdown
|
|
10
|
+
- Writing
|
|
11
|
+
---
|
|
12
|
+
|
|
13
|
+
# Markdown Essentials
|
|
14
|
+
|
|
15
|
+
Markdown is a lightweight markup language that makes writing formatted content easy and intuitive.
|
|
16
|
+
|
|
17
|
+
## Headings
|
|
18
|
+
|
|
19
|
+
Use `#` symbols for headings:
|
|
20
|
+
|
|
21
|
+
```markdown
|
|
22
|
+
# Heading 1
|
|
23
|
+
## Heading 2
|
|
24
|
+
### Heading 3
|
|
25
|
+
#### Heading 4
|
|
26
|
+
```
|
|
27
|
+
|
|
28
|
+
::: tip Best Practices
|
|
29
|
+
- Use only one `# Heading 1` per page (your title)
|
|
30
|
+
- Don't skip levels (don't jump from `##` to `####`)
|
|
31
|
+
- Keep headings concise
|
|
32
|
+
:::
|
|
33
|
+
|
|
34
|
+
## Text Formatting
|
|
35
|
+
|
|
36
|
+
### Basic Styles
|
|
37
|
+
|
|
38
|
+
| Syntax | Result | Use For |
|
|
39
|
+
|--------|--------|---------|
|
|
40
|
+
| `**bold**` | **bold** | Important terms |
|
|
41
|
+
| `*italic*` | *italic* | Emphasis |
|
|
42
|
+
| `~~strike~~` | ~~strike~~ | Deprecated content |
|
|
43
|
+
| `` `code` `` | `code` | Inline code |
|
|
44
|
+
|
|
45
|
+
### Combined Styles
|
|
46
|
+
|
|
47
|
+
```markdown
|
|
48
|
+
***bold and italic***
|
|
49
|
+
**bold with `code` inside**
|
|
50
|
+
```
|
|
51
|
+
|
|
52
|
+
## Links
|
|
53
|
+
|
|
54
|
+
### Basic Links
|
|
55
|
+
|
|
56
|
+
```markdown
|
|
57
|
+
[Link Text](https://example.com)
|
|
58
|
+
[Link with Title](https://example.com "Hover text")
|
|
59
|
+
```
|
|
60
|
+
|
|
61
|
+
### Internal Links
|
|
62
|
+
|
|
63
|
+
Link to other posts:
|
|
64
|
+
|
|
65
|
+
```markdown
|
|
66
|
+
[See the guide](./02-containers)
|
|
67
|
+
[Back to home](/)
|
|
68
|
+
```
|
|
69
|
+
|
|
70
|
+
## Images
|
|
71
|
+
|
|
72
|
+
### Basic Image
|
|
73
|
+
|
|
74
|
+
```markdown
|
|
75
|
+

|
|
76
|
+
```
|
|
77
|
+
|
|
78
|
+
### Image with Caption
|
|
79
|
+
|
|
80
|
+
```markdown
|
|
81
|
+

|
|
82
|
+
*A beautiful sunset over the ocean*
|
|
83
|
+
```
|
|
84
|
+
|
|
85
|
+
### Image Sizing
|
|
86
|
+
|
|
87
|
+
Use HTML for more control:
|
|
88
|
+
|
|
89
|
+
```html
|
|
90
|
+
<img src="/images/photo.jpg" alt="Photo" width="300" />
|
|
91
|
+
```
|
|
92
|
+
|
|
93
|
+
## Lists
|
|
94
|
+
|
|
95
|
+
### Unordered Lists
|
|
96
|
+
|
|
97
|
+
```markdown
|
|
98
|
+
- Item one
|
|
99
|
+
- Item two
|
|
100
|
+
- Nested item
|
|
101
|
+
- Another nested
|
|
102
|
+
- Item three
|
|
103
|
+
```
|
|
104
|
+
|
|
105
|
+
Result:
|
|
106
|
+
- Item one
|
|
107
|
+
- Item two
|
|
108
|
+
- Nested item
|
|
109
|
+
- Another nested
|
|
110
|
+
- Item three
|
|
111
|
+
|
|
112
|
+
### Ordered Lists
|
|
113
|
+
|
|
114
|
+
```markdown
|
|
115
|
+
1. First step
|
|
116
|
+
2. Second step
|
|
117
|
+
3. Third step
|
|
118
|
+
```
|
|
119
|
+
|
|
120
|
+
### Task Lists
|
|
121
|
+
|
|
122
|
+
```markdown
|
|
123
|
+
- [x] Completed task
|
|
124
|
+
- [ ] Pending task
|
|
125
|
+
- [ ] Another task
|
|
126
|
+
```
|
|
127
|
+
|
|
128
|
+
- [x] Completed task
|
|
129
|
+
- [ ] Pending task
|
|
130
|
+
- [ ] Another task
|
|
131
|
+
|
|
132
|
+
## Blockquotes
|
|
133
|
+
|
|
134
|
+
```markdown
|
|
135
|
+
> This is a quote.
|
|
136
|
+
> It can span multiple lines.
|
|
137
|
+
|
|
138
|
+
> Nested quotes:
|
|
139
|
+
>> Are also possible
|
|
140
|
+
```
|
|
141
|
+
|
|
142
|
+
> This is a quote.
|
|
143
|
+
> It can span multiple lines.
|
|
144
|
+
|
|
145
|
+
## Horizontal Rules
|
|
146
|
+
|
|
147
|
+
Create dividers with:
|
|
148
|
+
|
|
149
|
+
```markdown
|
|
150
|
+
---
|
|
151
|
+
```
|
|
152
|
+
|
|
153
|
+
---
|
|
154
|
+
|
|
155
|
+
## Tables
|
|
156
|
+
|
|
157
|
+
```markdown
|
|
158
|
+
| Column 1 | Column 2 | Column 3 |
|
|
159
|
+
|----------|----------|----------|
|
|
160
|
+
| Cell 1 | Cell 2 | Cell 3 |
|
|
161
|
+
| Cell 4 | Cell 5 | Cell 6 |
|
|
162
|
+
```
|
|
163
|
+
|
|
164
|
+
| Column 1 | Column 2 | Column 3 |
|
|
165
|
+
|----------|----------|----------|
|
|
166
|
+
| Cell 1 | Cell 2 | Cell 3 |
|
|
167
|
+
| Cell 4 | Cell 5 | Cell 6 |
|
|
168
|
+
|
|
169
|
+
### Table Alignment
|
|
170
|
+
|
|
171
|
+
```markdown
|
|
172
|
+
| Left | Center | Right |
|
|
173
|
+
|:-----|:------:|------:|
|
|
174
|
+
| L | C | R |
|
|
175
|
+
```
|
|
176
|
+
|
|
177
|
+
| Left | Center | Right |
|
|
178
|
+
|:-----|:------:|------:|
|
|
179
|
+
| L | C | R |
|
|
180
|
+
|
|
181
|
+
## Escaping Characters
|
|
182
|
+
|
|
183
|
+
Use backslash to show literal characters:
|
|
184
|
+
|
|
185
|
+
```markdown
|
|
186
|
+
\*not italic\*
|
|
187
|
+
\# not a heading
|
|
188
|
+
```
|
|
189
|
+
|
|
190
|
+
\*not italic\*
|
|
191
|
+
|
|
192
|
+
---
|
|
193
|
+
|
|
194
|
+
Next: Learn about [Containers](./02-containers) for callouts and tips.
|