Skip to content

Commit f40914c

Browse files
committed
ok
1 parent 56ecf86 commit f40914c

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

70 files changed

+4642
-5
lines changed

.gitmodules

Lines changed: 0 additions & 4 deletions
This file was deleted.

themes/serene

Lines changed: 0 additions & 1 deletion
This file was deleted.

themes/serene/.gitignore

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
public/
2+
content/
3+
static/img/
4+
static/hl-light.css
5+
static/hl-dark.css
6+
config.toml
7+
8+
.DS_Store

themes/serene/CHANGELOG.md

Lines changed: 247 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,247 @@
1+
# Changelog
2+
3+
All notable changes to this project will be documented in this file.
4+
5+
## [3.4.0] - 2024-04-25
6+
7+
### Add:
8+
9+
- Math rending with [Typst](https://typst.app) [@Lambdaris](https://github.com/Lambdaris) [(#57)](https://github.com/isunjn/serene/pull/57)
10+
11+
## [3.3.1] - 2024-03-10
12+
13+
### Fix:
14+
15+
- Callout content overflow issue
16+
17+
### UI:
18+
19+
- Change highlight color of `diff` syntax
20+
- A few tweaks
21+
22+
## [3.3.0] - 2024-03-01
23+
24+
### Add:
25+
26+
- New css variables: `--callout-border-radius` `--detail-border-radius`
27+
28+
### Fix:
29+
30+
- Overflow issue on mobile screens
31+
32+
### UI:
33+
34+
- Update quote icon
35+
- A few tweaks
36+
37+
## [3.2.0] - 2024-01-26
38+
39+
### Add:
40+
41+
- Dark mode img/chart brightness option
42+
43+
## [3.1.0] - 2024-01-20
44+
45+
### Add:
46+
47+
- New shortcode: `quote` and `detail`
48+
49+
### Fix:
50+
51+
- Add `word-wrap: break-word` to inline code
52+
53+
54+
## [3.0.0] - 2024-01-14
55+
56+
> **Warning**
57+
> This version contains several breaking changes.
58+
> If you came from a previous version and want to upgrade, I suggest you start all over again.
59+
60+
### Add:
61+
62+
- `recent` homepage layout
63+
- `featured` mark
64+
- Add title to ToC when it's too long
65+
- A way to sort categories
66+
- Project item image
67+
- prerender/prefetch when hover, using `speculationrules` or `prefetch`
68+
- RSS mask
69+
- A few more css variables
70+
71+
### Fix:
72+
73+
- Theme init logic
74+
- Mobile sidebar ui
75+
76+
### UI:
77+
78+
- A few tweaks
79+
- Default icon size set to 20 (You should re-copy the `static/icon` folder)
80+
81+
82+
## [2.3.0] - 2024-01-09
83+
84+
### Fix:
85+
86+
- `z-index` of mobile sidebar
87+
88+
### UI:
89+
90+
- Color change and some small tweaks
91+
92+
### Remove:
93+
94+
- Default custom font removed
95+
96+
97+
## [2.2.1] - 2024-01-02
98+
99+
### Fix:
100+
101+
- Use `sessionStorage` for theme init in `_base.html`
102+
103+
## [2.2.0] - 2023-12-29
104+
105+
### Fix:
106+
107+
- Use `sessionStorage` for theme restore
108+
- Fix an issue when initializing giscus theme
109+
- Hide `#` anchor link in feed file
110+
111+
## [2.1.2] - 2023-09-19
112+
113+
### Fix:
114+
115+
- Outdate alert not 'hidden' ([#49](https://github.com/isunjn/serene/issues/49))
116+
117+
## [2.1.1] - 2023-09-16
118+
119+
### Add:
120+
121+
- Custom 404 page
122+
123+
## [2.0.1] - 2023-09-13
124+
125+
### Fix:
126+
127+
- Min height of prose page & post page
128+
129+
## [2.0.0] - 2023-09-01
130+
131+
> **Warning**
132+
> This version contains several breaking changes.
133+
> If you came from a previous version and want to upgrade, I suggest you start all over again.
134+
135+
### UI:
136+
137+
- Text selction now is styled
138+
- Other minor tweaks
139+
- Change defalut bg color of codeblock to transparent
140+
141+
### Add:
142+
143+
- Option `dispaly_tags` and `truncate_summary` [@woojiq](https://github.com/woojiq) ([#40](https://github.com/isunjn/serene/issues/40))
144+
- Support for footnote and backlink
145+
- Active TOC indicator
146+
- Generay `prose` section/page
147+
- Config option `sections`, now you can rename `blog` to somthing else, e.g. `posts`
148+
- Support for header nav fold/unfold
149+
- Option for homepage layout, can be `about` or `list`
150+
- A separate `_custom_css.html` for css customization
151+
152+
### Fix:
153+
154+
- Codeblock distance calculation
155+
- Codeblock highlight style
156+
- Add description tag only when it's available
157+
- Post 3 column layout issue
158+
- Inline code style in list item
159+
- Link text-decoration style on mobile
160+
161+
162+
## [1.2.0] - 2023-08-19
163+
164+
### UI:
165+
166+
- Use noborder theme of giscus by default
167+
- Post list item and callout styles changed
168+
- Code block styles improved
169+
- Default colors changed
170+
171+
### Add:
172+
173+
- Outline styles [@mrtnvgr](https://github.com/mrtnvgr) ([#26](https://github.com/isunjn/serene/pull/26))
174+
- Support self-host font ([#29](https://github.com/isunjn/serene/pull/29))
175+
- Copy button for code blocks ([#30](https://github.com/isunjn/serene/pull/30))
176+
- Support light/dark switch for code blocks ([#33](https://github.com/isunjn/serene/pull/33))
177+
- Support tags for project page
178+
- Back-to-top button
179+
- A shortcode for code block with file name: `codeblock` ([#39](https://github.com/isunjn/serene/pull/39))
180+
181+
### Fix:
182+
183+
- Update theme toggle icon on page load [@mrtnvgr](https://github.com/mrtnvgr) ([#25](https://github.com/isunjn/serene/pull/25))
184+
- Layout shift problem on post page ([#27](https://github.com/isunjn/serene/pull/27))
185+
186+
## [1.1.1] - 2023-08-09
187+
188+
- Allow no tags in front matter [@mrtnvgr](https://github.com/mrtnvgr)
189+
- Fix figcaption width issue
190+
191+
## [1.1.0] - 2023-05-27
192+
193+
- Fix theme auto-toggle logic
194+
- A few ui tweaks
195+
196+
## [1.0.0] - 2023-05-24
197+
198+
> **Warning**
199+
> The 1.0.0 version contains many breaking changes.
200+
> If you came from a previous version and want to upgrade, I suggest you start all over again.
201+
202+
### Breaking
203+
204+
- `config.toml` restructured, config items are renamed
205+
- All analytics configs removed, use `_head_extend.html` instead
206+
- All comment-support configs removed, replace with [giscus](https://giscus.app)
207+
- Icons now using svg files
208+
- Callout renamed: `info -> note`, `caution -> warning`, `warning -> alert`
209+
- Callout removed: `good`, `bad`, `happy`, `unhappy`, `check`, `wrong`, `flag`, `star`
210+
- `cc_license` removed
211+
- Reading-progress-bar removed
212+
- Back-to-top button removed
213+
- Many other tweaks
214+
215+
## [0.2.0] - 2022-02-16
216+
217+
### Add:
218+
- KaTeX support
219+
- Mermaid support
220+
221+
### Fix:
222+
- Style issue of table-of-contents
223+
- A few non-critical bugs
224+
225+
## [0.1.0] - 2022-01-14
226+
227+
First release 🎉
228+
229+
[3.4.0]: https://github.com/isunjn/serene/compare/v3.3.1...v3.4.0
230+
[3.3.1]: https://github.com/isunjn/serene/compare/v3.3.0...v3.3.1
231+
[3.3.0]: https://github.com/isunjn/serene/compare/v3.2.0...v3.3.0
232+
[3.2.0]: https://github.com/isunjn/serene/compare/v3.1.0...v3.2.0
233+
[3.1.0]: https://github.com/isunjn/serene/compare/v3.0.0...v3.1.0
234+
[3.0.0]: https://github.com/isunjn/serene/compare/v2.3.0...v3.0.0
235+
[2.3.0]: https://github.com/isunjn/serene/compare/v2.2.1...v2.3.0
236+
[2.2.1]: https://github.com/isunjn/serene/compare/v2.2.0...v2.2.1
237+
[2.2.0]: https://github.com/isunjn/serene/compare/v2.1.2...v2.2.0
238+
[2.1.2]: https://github.com/isunjn/serene/compare/v2.1.1...v2.1.2
239+
[2.1.1]: https://github.com/isunjn/serene/compare/v2.0.1...v2.1.1
240+
[2.0.1]: https://github.com/isunjn/serene/compare/v2.0.0...v2.0.1
241+
[2.0.0]: https://github.com/isunjn/serene/compare/v1.2.0...v2.0.0
242+
[1.2.0]: https://github.com/isunjn/serene/compare/v1.1.1...v1.2.0
243+
[1.1.1]: https://github.com/isunjn/serene/compare/v1.1.0...v1.1.1
244+
[1.1.0]: https://github.com/isunjn/serene/compare/v1.0.0...v1.1.0
245+
[1.0.0]: https://github.com/isunjn/serene/compare/v0.2.0...v1.0.0
246+
[0.2.0]: https://github.com/isunjn/serene/compare/v0.1.0...v0.2.0
247+
[0.1.0]: https://github.com/isunjn/serene/releases/tag/v0.1.0

themes/serene/LICENSE

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
MIT License
2+
3+
Copyright (c) 2021-present isunjn
4+
5+
Permission is hereby granted, free of charge, to any person obtaining a copy
6+
of this software and associated documentation files (the "Software"), to deal
7+
in the Software without restriction, including without limitation the rights
8+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9+
copies of the Software, and to permit persons to whom the Software is
10+
furnished to do so, subject to the following conditions:
11+
12+
The above copyright notice and this permission notice shall be included in all
13+
copies or substantial portions of the Software.
14+
15+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21+
SOFTWARE.

themes/serene/README.md

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
<img width="1501" alt="screenshot" src="https://github.com/isunjn/serene/assets/60461730/61b9ff3d-6ed3-4062-8872-1f3a3d9b60a7">
2+
3+
<br />
4+
<br />
5+
6+
A blog theme for [zola](https://www.getzola.org), simple and clean
7+
8+
## Demo
9+
10+
- <https://serene-demo.pages.dev>
11+
12+
## Features
13+
14+
- A spiffy design, well crafted
15+
- Projects page
16+
- Dark mode
17+
- Image zooming
18+
- Out-of-date alert
19+
- Sticky table-of-contents
20+
- Callout (note, warning, alert, etc.)
21+
- Comments using [Giscus](https://giscus.app)
22+
- Mathematical notations using [KaTeX](https://katex.org) or [Typst](https://typst.app)
23+
- Diagrams and visualizations using [Mermaid](https://github.com/mermaid-js/mermaid)
24+
25+
## Usage
26+
27+
- Check the [USAGE.md](https://github.com/isunjn/serene/blob/latest/USAGE.md) of `latest` branch
28+
- Also available in Simplified Chinese: [USAGE-zh_CN.md](https://github.com/isunjn/serene/blob/latest/USAGE-zh_CN.md) (简体中文)

0 commit comments

Comments
 (0)