Skip to content

Commit 52e95bb

Browse files
committed
fix: fix known issues
1 parent 22836fd commit 52e95bb

File tree

14 files changed

+138
-20
lines changed

14 files changed

+138
-20
lines changed

Obsidian Template/README.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,8 @@
11
# Obsidian Template
22

3+
## En
4+
If you’re using Obsidian for note-taking, you can set this folder as your template folder under `Preferences -> Templates -> Template Folder Location`.
5+
6+
## Zh
37
如果你使用 Obsidian 作为笔记软件,将此文件夹设置为模板文件夹 `Preferences -> 模板 -> 模板文件夹位置`
48

README.md

Lines changed: 54 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,16 @@
22

33
English · [中文](./README-zh_CN.md)
44

5+
## Why We build it?
6+
7+
We love writing and sharing, and we appreciate well-crafted products. That’s why we created this minimalist theme, focusing on content itself, providing a smooth and pure writing and reading experience. Built on the latest framework, it’s faster, lighter, and more efficient.
8+
9+
It also works seamlessly with [Obsidian](https://obsidian.md/), helping you turn your notes into published posts effortlessly.
10+
511
## ✨ Features
612

7-
- Minimalist style theme, adaptable to multiple platforms, support `light` and `dark` mode.
13+
- Minimalist style theme, adaptable to multiple platforms
14+
- Support `light` and `dark` mode.
815
- Zero-based quick start, foolproof configuration, easy deployment
916
- Support for article drafts, local preview, and automatic draft filtering in production builds
1017
- Default RSS generation with Follow subscription authentication
@@ -15,6 +22,7 @@ English · [中文](./README-zh_CN.md)
1522

1623
- Astro + React + Typescript
1724
- Tailwindcss + @radix-ui/colors
25+
- Updated to [Tailwind CSS v4.0](https://tailwindcss.com/blog/tailwindcss-v4) (Jan 10, 2025)
1826
- Docsearch
1927

2028
## 🔨 Usage
@@ -108,3 +116,48 @@ tags:
108116
pubDate: 2025-01-06
109117
---
110118
```
119+
120+
## Markdown Syntax Support
121+
122+
In addition to standard Markdown syntax, the following extended syntax is supported:
123+
124+
### Basic Syntax
125+
- Headers, lists, blockquotes, code blocks and other basic syntax
126+
- Tables
127+
- Links and images
128+
- **Bold**, *italic*, and ~strikethrough~ text
129+
130+
### Extended Syntax
131+
#### Container syntax
132+
Using `:::` markers
133+
```md
134+
:::info
135+
This is an information prompt
136+
:::
137+
```
138+
The result will be displayed as:
139+
140+
:::info
141+
This is an information prompt
142+
:::
143+
144+
#### LaTeX Mathematical Formulas
145+
- Inline formula: $E = mc^2$
146+
- Block formula: $$ E = mc^2 $$
147+
148+
#### Support for image captions
149+
```md
150+
![Image caption](image-url)
151+
```
152+
The result will be displayed as:
153+
154+
![Slate Blog Preview](https://pub-acdbc21bc3964d18a684b0c51010a4e5.r2.dev/slate-blog-preview.png)
155+
156+
## Updates
157+
### Version 1.1.1
158+
- Fixed known issues
159+
160+
### Version 1.1
161+
- Upgraded to support [Tailwind CSS v4.0](https://tailwindcss.com/blog/tailwindcss-v4)
162+
- Added dark mode support
163+
- Fixed known issues

plugins/remark-reading-time.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,6 @@ export function remarkReadingTime() {
99
const textOnPage = toString(tree);
1010
const readingTime = getReadingTime(textOnPage);
1111
data.astro.frontmatter.minutesRead =
12-
Math.round(readingTime.minutes) + ' 分钟阅读';
12+
Math.round(readingTime.minutes) + ' Min Read';
1313
};
1414
}

slate.config.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,6 @@ export default defineConfig({
1111
lastModified: true,
1212
readTime: true,
1313
footer: {
14-
copyright: '© 2025 Slate Blog',
14+
copyright: '© 2025 Slate Design',
1515
}
1616
});

src/assets/style/blog.css

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -25,10 +25,10 @@
2525
@apply text-indigo11 underline-offset-4 transition-all hover:underline decoration-indigo6;
2626
}
2727

28-
a::after{
28+
/* a::after{
2929
@apply text-slate8 mx-0.5;
3030
content: '↗';
31-
}
31+
} */
3232

3333
img {
3434
@apply mx-auto my-8 w-full rounded-2xl border border-slate6;
@@ -116,7 +116,7 @@
116116
}
117117

118118
figcaption {
119-
@apply text-center text-sm text-slate8;
119+
@apply text-center text-sm text-slate8 -mt-4;
120120
}
121121

122122
.expressive-code{

src/components/affix-title/index.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ const AffixTitle = (props: AffixTitleProps) => {
1313
const [isVisible, setIsVisible] = useState(false);
1414

1515
const classes = classNames(
16-
'fixed left-0 right-0 top-0 w-full transform bg-slate1/90 backdrop-blur-md transition-all duration-300 ease-in-out',
16+
'fixed left-0 right-0 top-0 w-full transform bg-slate1/90 backdrop-blur-md transition-all duration-300 ease-in-out z-10',
1717
isVisible ? ['translate-y-0', 'opacity-100'] : ['-translate-y-full', 'opacity-0'],
1818
);
1919

src/content/post/40-questions.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ tags:
55
- Life
66
- Thinking
77
- Writing
8-
pubDate: 2025-01-21
8+
pubDate: 2022-01-14
99
---
1010

1111
## About

src/content/post/about-slate-blog.md

Lines changed: 54 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,9 +9,15 @@ tags:
99
pubDate: 2025-01-21
1010
---
1111

12+
## Why We build it?
13+
We love writing and sharing, and we also appreciate great internet products. So we created this minimalist blogging product, focusing on content itself, providing a smooth and pure writing and reading experience, and built on the latest technology framework to make it faster and lighter.
14+
15+
It also works seamlessly with [Obsidian](https://obsidian.md/), helping you turn your notes into published posts effortlessly.
16+
1217
## ✨ Features
1318

1419
- Minimalist style theme, adaptable to multiple platforms
20+
- Support `light` and `dark` mode.
1521
- Zero-based quick start, foolproof configuration, easy deployment
1622
- Support for article drafts, local preview, and automatic draft filtering in production builds
1723
- Default RSS generation with Follow subscription authentication
@@ -22,6 +28,7 @@ pubDate: 2025-01-21
2228

2329
- Astro + React + Typescript
2430
- Tailwindcss + @radix-ui/colors
31+
- Updated to [Tailwind CSS v4.0](https://tailwindcss.com/blog/tailwindcss-v4) (Jan 10, 2025)
2532
- Docsearch
2633

2734
## 🔨 Usage
@@ -67,8 +74,9 @@ Theme configuration is done through `slate.config.ts` in the root directory.
6774
| title | Website title | `string` | - |
6875
| description | Website description | `string` | - |
6976
| lang | Language | `string` | `zh-CN` |
77+
| theme | Theme | `{ mode: 'auto' | 'light' | 'dark', enableUserChange: boolean }` | `{ mode: 'auto', enableUserChange: true }` |
7078
| avatar | Avatar | `string` | - |
71-
| sitemap | Website sitemap configuration | `{ hostname: string }` | - |
79+
| sitemap | Website sitemap configuration | [SitemapOptions](https://docs.astro.build/en/guides/integrations-guide/sitemap/) | - |
7280
| readTime | Show reading time | `boolean` | `false` |
7381
| lastModified | Show last modified time | `boolean` | `false` |
7482
| algolia | Docsearch configuration | `{ appId: string, apiKey: string, indexName: string }` | - |
@@ -113,4 +121,48 @@ tags:
113121
- Writing
114122
pubDate: 2025-01-06
115123
---
116-
```
124+
```
125+
126+
## Markdown Syntax Support
127+
128+
In addition to standard Markdown syntax, the following extended syntax is supported:
129+
130+
### Basic Syntax
131+
- Headers, lists, blockquotes, code blocks and other basic syntax
132+
- Tables
133+
- Links and images
134+
- **Bold**, *italic*, and ~strikethrough~ text
135+
136+
### Extended Syntax
137+
#### Container syntax
138+
Using `:::` markers
139+
```md
140+
:::info
141+
This is an information prompt
142+
:::
143+
```
144+
The result will be displayed as:
145+
146+
:::info
147+
This is an information prompt
148+
:::
149+
150+
#### LaTeX Mathematical Formulas
151+
- Inline formula: $E = mc^2$
152+
- Block formula: $$ E = mc^2 $$
153+
154+
#### Support for image captions
155+
```md
156+
![Image caption](image-url)
157+
```
158+
The result will be displayed as:
159+
160+
![Slate Blog Preview](https://pub-acdbc21bc3964d18a684b0c51010a4e5.r2.dev/slate-blog-preview.png)
161+
162+
## Updates
163+
164+
### Version 1.1
165+
- Upgraded to support [Tailwind CSS v4.0](https://tailwindcss.com/blog/tailwindcss-v4)
166+
- Added dark mode support
167+
- Fixed known issues
168+

src/content/post/life-is-short.md

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ description: Life is short, as everyone knows. When I was a kid I used to wonder
44
tags:
55
- Thinking
66
- Life
7-
pubDate: 2025-01-21
7+
pubDate: 2016-01-01
88
---
99

1010
Life is short, as everyone knows. When I was a kid I used to wonder about this. Is life actually short, or are we really complaining about its finiteness? Would we be just as likely to feel life was short if we lived 10 times as long?
@@ -69,7 +69,12 @@ Notes
6969

7070
[2] I chose this example deliberately as a note to self. I get attacked a lot online. People tell the craziest lies about me. And I have so far done a pretty mediocre job of suppressing the natural human inclination to say "Hey, that's not true!"
7171

72-
Thanks to Jessica Livingston and Geoff Ralston for reading drafts of this.
72+
**Thanks** to Jessica Livingston and Geoff Ralston for reading drafts of this.
73+
74+
- [Korean Translation](https://blog.naver.com/happy_alpaca/221346692172)
75+
- [Japanese Translation](https://note.com/tokyojack/n/ne4c25e990634)
76+
- [Chinese Translation](https://www.jianshu.com/p/682429f8ac3f)
77+
7378

7479
:::info
7580
From [LIFE IS SHORT](https://www.paulgraham.com/vb.html)

src/content/post/obsidian-vault-template.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ tags:
55
- Obsidian
66
- Writing
77
- Dev
8-
pubDate: 2025-01-21
8+
pubDate: 2024-04-16
99
---
1010

1111
I use [Obsidian](https://stephango.com/obsidian) to think, take notes, write essays, and publish this site. This is my bottom-up approach to note-taking and organizing things I am interested in. It embraces chaos and laziness to create emergent structure.
@@ -28,7 +28,7 @@ The following is in no way dogmatic, just one example of how you can use Obsidia
2828
## Plugins
2929
Some of my templates depend on plugins:
3030

31-
- [Dataview](https://github.com/blacksmithgu/obsidian-dataview)for overview notes
31+
- [Dataview](https://github.com/blacksmithgu/obsidian-dataview) for overview notes
3232
- [Leaflet](https://github.com/javalent/obsidian-leaflet) for maps
3333

3434
## Folders

0 commit comments

Comments
 (0)