Commit Graph

119 Commits

Author SHA1 Message Date
satnaing 65b6a492c3 docs: update estimated reading time blog post async section
Update `getStaticPaths` section of `/tags/[tag]/[page].astro`
to have resolved promises. Replace `flatMap` with
`await Promise.all` and `.flat()`.
2024-08-18 01:50:55 +07:00
Sat Naing 88e5c430c8 docs: update estimated reading time blog post (#354)
Resolves #350
2024-08-17 21:03:28 +07:00
Sat Naing 910b72e513 docs: update pre-commit hook blog post (#344)
Add a section about the removal of the pre-commit
hook in v4.3.0.
2024-08-03 11:41:23 +07:00
u8b19 2f82febff4 fix: resolve non-latin char issue in generated OG images (#318)
Changes made
- update font source with Google font
- add error handling in font fetching logic
- update docs in dynamic-og-images blog post

---------

Co-authored-by: satnaing <satnaingdev@gmail.com>
2024-07-27 14:36:52 +07:00
FjellOverflow 76b65556f7 docs: add guide on integrating user comments with Giscus (#335) 2024-07-27 10:01:25 +07:00
Matthieu aa9430a1cf docs: fix typo in development note of theme configuration guide (#333) 2024-07-24 22:04:13 +07:00
David Legrand 0d5ea52c23 feat: add number of posts config for home page (#281)
* Add a SITE config parameter for posts in index page

* docs: update blog post for `postPerIndex` config

---------

Co-authored-by: satnaing <satnaingdev@gmail.com>
2024-07-14 16:48:49 +07:00
Jahseh J c9150f2774 fix: update incorrect typo in predefined-color-schemes.md (#245) 2024-01-24 09:20:45 +06:30
David Legrand 3efa05cc10 feat: hide posts in Prod with future pubDatetime (#234)
* Hide posts when PubDateTime is not reached

* refactor: extract filter logic into a file

* docs: update SITE config docs

---------

Co-authored-by: satnaing <satnaingdev@gmail.com>
2024-01-15 19:40:02 +06:30
Simon Smale de605d87a0 docs: adds blog post for how to add a social icon (#221)
* docs: adds blog post for how to add a social icon

* refactor: update the blog post

---------

Co-authored-by: Sat Naing <satnaingdev@gmail.com>
2024-01-09 15:47:38 +06:30
Simon Smale bb60a9b3db docs: updates the hook post with a smarter updateHook (#222) 2024-01-09 11:18:40 +06:30
satnaing ff30dee418 docs: add an AstroPaper v4 announcement post 2024-01-04 15:53:12 +06:30
Simon Smale 9c776dac1f docs: adds an article about git hook date setting (#211)
* feat: adds post on git hook date setting

* fix: make necessary adjustments and fix typo

---------

Co-authored-by: Sat Naing <satnaingdev@gmail.com>
2024-01-04 15:53:12 +06:30
satnaing 1c806b7ddd docs: add new color scheme for AstroPaper v4 2024-01-04 15:53:12 +06:30
satnaing 792a02b325 docs: #205 update estimated-reading-time article
Fix typo. Update await files in getSortedPosts.

Closes: #205
2024-01-04 15:53:12 +06:30
Simon Smale 14e2936608 feat: add code-snippets for content creation (#206)
* Create astro-paper.code-snippets

* feat: allow nullable modDatetime

this is needed to allow the snippet to work with a blank date time, and is a precursor of adding in a modified date time setting hook

* Update astro-paper.code-snippets to make feat false by default
2024-01-04 15:53:12 +06:30
Sat Naing 2827d4e7d8 refactor: replace postSlug with Astro content slug
* refactor: replace postSlug with Astro content slug

Remove postSlug from blog schema. Refactor articles that use postSlug. Remove slugify function from slugify util file. Replace slugify logic with Astro's content collections slug logic.

Closes: #186

* docs: update docs for removed slugify contents

* refactor: remove unused import
2023-12-27 10:20:55 +06:30
Sat Naing 80e67a1dca feat: add modified datetime in blog posts
* feat: add modified datetime in blog posts

Add modDatetime in blogSchema. Update Datetime component to accept modDatetime. Update sorting logic. Rename datetime to pubDatetime in Datetime component.

Closes: #134

* feat: add published_time & modified_time meta tags

* docs: update related blog posts to be up-to-date

* fix: remove extra spaces in breadcrumbs
2023-12-26 10:11:26 +06:30
satnaing cd02b047d2 fix: #133 update LOCALE config to cover overall locales
Update LOCALE inside config.ts to include html lang value and datetime locale values. Updated respective files and blog post.

Closes: #133
2023-12-20 10:50:45 +06:30
Tanishq Manuja 9dcc5e1932 refactor: update site URL to be single source of truth (#143)
* wip: astro config to use .ts instead of .mjs

* fix: remove invalid prop in astro config

* refactor: single source of truth for site url

* refactor: make minor updates due to astro.config.ts

---------

Co-authored-by: satnaing <satnaingdev@gmail.com>
2023-10-09 03:07:45 +00:00
satnaing d57f53ac4d docs: add a new theme and add main image in v3 post 2023-09-26 02:04:11 +06:30
satnaing 4c33936b66 docs: add upgrade section for AstroPaper v3 2023-09-26 02:04:11 +06:30
satnaing 485671ac05 docs: remove AstroPaper-2 post from featured posts 2023-09-26 02:04:11 +06:30
satnaing d7196caec9 docs: add AstroPaper v3 release blog post 2023-09-26 02:04:11 +06:30
satnaing e4463ad62a docs: update generated svg image to generated OG image 2023-09-26 02:04:11 +06:30
satnaing a5feb4b3ab docs: update reading-time post for astro-paper v3 2023-09-26 02:04:11 +06:30
satnaing 58c68ee055 docs: update docs for astro-papaer v3
Make docs articles up to date with the latest version of AstroPaper. Add a section for storing
images for blog posts. Rename rec-2 to example-draft-post and update its content.

resolve #117
2023-09-26 02:04:11 +06:30
tanishqmanuja 7f3edbdecd fix: get og image url correctly 2023-09-26 02:04:11 +06:30
tanishqmanuja b03b722369 fix: remove empty string as ogImage 2023-09-26 02:04:11 +06:30
tanishqmanuja 35bb517d3a chore: remove unused file 2023-09-26 02:04:11 +06:30
tanishqmanuja 20c89709ad feat: default post author to site author 2023-09-26 02:04:11 +06:30
tanishqmanuja e9d4303219 feat: add image validation to schema 2023-09-26 02:04:11 +06:30
tanishqmanuja 817e67ac65 refactor: move schema to config file 2023-09-26 02:04:11 +06:30
tanishqmanuja 1cc51c00a7 refactor: use astro generated CollectionEntry type 2023-09-26 02:04:11 +06:30
satnaing b118f09d5d docs: update schema code in docs for new canonicalURL property 2023-07-23 10:59:44 +06:30
Nahuel Garbezza 4687bd516b feat: support custom canonical URLs (#83)
Adding an optional attribute in the posts' frontmatter that allows the user to set a custom canonical URL
2023-07-23 10:55:19 +06:30
Nahuel Garbezza 08383093d1 docs: update "adding new post" tutorial with...
...info about canonical URLs
2023-07-23 10:55:19 +06:30
satnaing 606203d034 docs: add a blog post for adding estimated reading time
Add an article for adding estimated reading time. #74

resolve #74
2023-07-22 23:15:57 +06:30
satnaing d9743af65d docs: add a blog post for updating AstroPaper and dependencies
Add an article to show how to update project dependencies and AstroPaper template.

resolve #68
2023-07-21 21:04:02 +06:30
satnaing 26ecd173dd fix: #72 replace SITE.website with a URL in astro.config site value
Using SITE.website in astro.config.mjs causes the problem . Thus, change back to the original url string in site value of .

Closes: #72
2023-07-20 16:30:02 +06:30
Andrea Mignone 0e9f709c5d feat: add locale configuration for Datetime component (#59) 2023-04-17 23:56:58 +06:30
satnaing 4fe508462e refactor: replace astro.config site value with SITE.website 2023-03-16 14:58:26 +06:30
Mahesh Rijal cbce54bd1c fix: correct typo in blog posts
Fix typo (#35)
2023-02-12 19:16:50 +06:30
B. Burt d9a2ffe909 docs: fix typo in blog post (#24)
Change spelling of criteria.
2023-02-01 12:16:15 +06:30
Sha Mwe La dc026b38de fix: make schema(s) strict (#23)
If schema(s) are made with strict, it will disallow extra keys in the markdown frontmatter.
2023-02-01 12:13:41 +06:30
satnaing 705c59e6ea docs: update OG/desc image and info of predefined color scheme 2023-01-31 20:10:54 +06:30
satnaing b3f760f7d8 docs: update card bgColor in lower contrast new dark theme 2023-01-31 20:09:34 +06:30
satnaing a827f758d3 docs: add AstroPaper 2 dark theme lower contrast 2023-01-31 20:06:02 +06:30
satnaing f99c014de3 docs: add info about automatic class sorting feat 2023-01-31 16:02:16 +06:30
satnaing bb5d6b3837 docs: add main image in astro-paper-2 blog post 2023-01-31 13:04:43 +06:30