Skip to content

Commit e1db72a

Browse files
committed
docs: add an AstroPaper v4 announcement post
1 parent 1291b22 commit e1db72a

File tree

3 files changed

+125
-1
lines changed

3 files changed

+125
-1
lines changed
158 KB
Loading

src/content/blog/astro-paper-3.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ author: Sat Naing
33
pubDatetime: 2023-09-25T10:25:54.547Z
44
title: AstroPaper 3.0
55
slug: astro-paper-v3
6-
featured: true
6+
featured: false
77
ogImage: https://github.com/satnaing/astro-paper/assets/53733092/1ef0cf03-8137-4d67-ac81-84a032119e3a
88
tags:
99
- release

src/content/blog/astro-paper-4.md

Lines changed: 124 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,124 @@
1+
---
2+
author: Sat Naing
3+
pubDatetime: 2024-01-04T09:30:41.816Z
4+
title: AstroPaper 4.0
5+
slug: "astro-paper-v4"
6+
featured: true
7+
ogImage: ../../assets/images/AstroPaper-v4.png
8+
tags:
9+
- release
10+
description: "AstroPaper v4: ensuring a smoother and more feature-rich blogging experience."
11+
---
12+
13+
Hello everyone! Wishing you a happy New Year 🎉 and all the best for 2024! We're excited to announce the release of AstroPaper v4, a significant update that introduces a range of new features, improvements, and bug fixes to elevate your blogging experience. A big thank you to all the contributors for their valuable input and efforts in making version 4 possible!
14+
15+
![AstroPaper v4](@assets/images/AstroPaper-v4.png)
16+
17+
## Table of contents
18+
19+
## Major Changes
20+
21+
### Upgrade to Astro v4 [#202](https://github.com/satnaing/astro-paper/pull/202)
22+
23+
AstroPaper now leverages the power and capabilities of Astro v4. However, it’s a subtle upgrade and won’t break most Astro users.
24+
25+
![Astro v4](https://astro.build/_astro/header-astro-4.GLp8HjfV.webp)
26+
27+
### Replace `postSlug` with Astro Content `slug` [#197](https://github.com/satnaing/astro-paper/pull/197)
28+
29+
The `postSlug` in the blog content schema is no longer available in AstroPaper v4. Initially Astro doesn't have a `slug` mechanism and thus we have to figure it out on our own. Since Astro v3, it supports content collection and slug features. Now, we believe it's time to adopt Astro's out-of-the-box `slug` feature.
30+
31+
**_file: src/content/blog/astro-paper-4.md_**
32+
33+
```bash
34+
---
35+
author: Sat Naing
36+
pubDatetime: 2024-01-01T04:35:33.428Z
37+
title: AstroPaper 4.0
38+
slug: "astro-paper-v4" # if slug is not specified, it will be 'astro-paper-4' (file name).
39+
# slug: "" ❌ cannot be an empty string
40+
---
41+
```
42+
43+
The behavior of the `slug` is slightly different now. In the previous versions of AstroPaper, if the `postSlug` is not specified in a blog post (markdown file), the title of that blog post would be slugified and used as the `slug`. However, in AstroPaper v4, if the `slug` field is not specified, the markdown file name will be used as the `slug`. One thing to keep in mind is that the `slug` field can be omitted, but it cannot be an empty string (slug: "" ❌).
44+
45+
If you're upgrading AstroPaper from v3 to v4, make sure to replace `postSlug` in your `src/content/blog/*.md` files with `slug`.
46+
47+
## New Features
48+
49+
### Add code-snippets for content creation [#206](https://github.com/satnaing/astro-paper/pull/206)
50+
51+
AstroPaper now includes VSCode snippets for new blog posts, eliminating the need for manual copy/pasting of the frontmatter and content structure (table of contents, heading, excerpt, etc.).
52+
53+
Read more about VSCode Snippets [here](https://code.visualstudio.com/docs/editor/userdefinedsnippets#:~:text=In%20Visual%20Studio%20Code%2C%20snippets,Snippet%20in%20the%20Command%20Palette).
54+
55+
<video autoplay muted="muted" controls plays-inline="true" class="border border-skin-line">
56+
<source src="https://github.com/satnaing/astro-paper/assets/53733092/136f1903-bade-40a2-b6bb-285a3c726350" type="video/mp4">
57+
</video>
58+
59+
### Add Modified Datetime in Blog Posts [#195](https://github.com/satnaing/astro-paper/pull/195)
60+
61+
Keep readers informed about the latest updates by displaying the modified datetime in blog posts. This not only instills user trust in the freshness of the articles but also contributes to improved SEO for the blog.
62+
63+
![Last Modified Date feature in AstroPaper](https://github.com/satnaing/astro-paper/assets/53733092/cc89585e-148e-444d-9da1-0d496e867175)
64+
65+
You can add a `modDatetime` to your blog post if you've made modifications. Now, the sorting behavior of the posts is slightly different. All posts are sorted by both `pubDatetime` and `modDatetime`. If a post has both a `pubDatetime` and `modDatetime`, its sorting position will be determined by the `modDatetime`. If not, only `pubDatetime` will be considered to determine the post's sorting order.
66+
67+
### Implement Back-to-Top Button [#188](https://github.com/satnaing/astro-paper/pull/188)
68+
69+
Enhance user navigation on your blog detail post with the newly implemented back-to-top button.
70+
71+
![Back to top button in AstroPaper](https://github.com/satnaing/astro-paper/assets/53733092/79854957-7877-4f19-936e-ad994b772074)
72+
73+
### Add Pagination in Tag Posts [#201](https://github.com/satnaing/astro-paper/pull/201)
74+
75+
Improve content organization and navigation with the addition of pagination in tag posts, making it easier for users to explore related content. This ensures that if a tag has many posts, readers won't be overwhelmed by all the tag-related posts.
76+
77+
<video autoplay loop="loop" muted="muted" plays-inline="true" class="border border-skin-line">
78+
<source src="https://github.com/satnaing/astro-paper/assets/53733092/9bad87f5-dcf5-4b79-b67a-d6c7244cd616" type="video/mp4">
79+
</video>
80+
81+
### Dynamically Generate robots.txt [#130](https://github.com/satnaing/astro-paper/pull/130)
82+
83+
AstroPaper v4 now dynamically generates the robots.txt file, giving you more control over search engine indexing and web crawling. Besides, sitemap URL will also be added inside `robot.txt` file.
84+
85+
### Add Docker-Compose File [#174](https://github.com/satnaing/astro-paper/pull/174)
86+
87+
Managing your AstroPaper environment is now easier than ever with the addition of a Docker-Compose file, simplifying deployment and configuration.
88+
89+
## Refactoring & Bug Fixes
90+
91+
### Replace Slugified Title with Unslugified Tag Name [#198](https://github.com/satnaing/astro-paper/pull/198)
92+
93+
To improve clarity, user experience and SEO, titles (`Tag: some-tag`) in tag page are no longer slugified (`Tag: Some Tag`).
94+
95+
![Unslugified Tag Names](https://github.com/satnaing/astro-paper/assets/53733092/2fe90d6e-ec52-467b-9c44-95009b3ae0b7)
96+
97+
### Implement 100svh for Min-Height ([79d569d](https://github.com/satnaing/astro-paper/commit/79d569d053036f2113519f41b0d257523d035b76))
98+
99+
We've updated the min-height on the body to use 100svh, offering a better UX for mobile users.
100+
101+
### Update Site URL as Single Source of Truth [#143](https://github.com/satnaing/astro-paper/pull/143)
102+
103+
The site URL is now a single source of truth, streamlining configuration and avoiding inconsistencies. Read more at this [PR](https://github.com/satnaing/astro-paper/pull/143) and its related issue(s).
104+
105+
### Solve Invisible Text Code Block Issue in Light Mode [#163](https://github.com/satnaing/astro-paper/pull/163)
106+
107+
We've fixed the invisible text code block issue in light mode.
108+
109+
### Decode Unicode Tag Characters in Breadcrumb [#175](https://github.com/satnaing/astro-paper/pull/175)
110+
111+
The last part of Tag in the breadcrumb is now decoded, making non-English Unicode characters display better.
112+
113+
### Update LOCALE Config to Cover Overall Locales ([cd02b04](https://github.com/satnaing/astro-paper/commit/cd02b047d2b5e3b4a2940c0ff30568cdebcec0b8))
114+
115+
The LOCALE configuration has been updated to cover a broader range of locales, catering to a more diverse audience.
116+
117+
## Outtro
118+
119+
We believe these updates will significantly elevate your AstroPaper experience. Thank you to everyone who contributed, solved issues, and gave stars to AstroPaper. We look forward to seeing the amazing content you create with AstroPaper v4!
120+
121+
Happy Blogging!
122+
123+
[Sat Naing](https://satnaing.dev) <br/>
124+
Creator of AstroPaper

0 commit comments

Comments
 (0)