Erison Silva
cac8ba05f4
fix: replace twitter with x ( #407 )
2024-11-05 18:12:10 +07:00
Erison Silva
ec1060978c
feat: add pencil icon before suggestion changes text ( #405 )
...
* feat: Add pencil icon before suggestion changes text
* fix: update class to className and adjust icon scale
---------
Co-authored-by: satnaing <satnaingdev@gmail.com >
2024-10-29 13:00:13 +07:00
Patrick Wilson
7573617e79
feat: add archives page with configurable menu ( #386 )
...
* feat: add archives page with configurable menu
* optimize: compat mobile layout
* fix: update archive menu layout
* fix: hide archives page from URL if showArchives is false
* docs: add `showArchives` option in docs
Resolves #361
---------
Co-authored-by: satnaing <satnaingdev@gmail.com >
2024-10-14 18:49:40 +07:00
Patrick Wilson
0bc8eeeac8
feat: add edit post feature in blog posts ( #384 )
...
* feat: add edit post feature
* fix: remove edit button except on post detail pages
* docs: update site config docs for editPost
Resolves #191
---------
Co-authored-by: satnaing <satnaingdev@gmail.com >
2024-10-11 18:14:17 +07:00
Andrea Mignone
b16fba81af
refactor: remove duplicate [page].astro ( #389 )
...
Co-authored-by: satnaing <satnaingdev@gmail.com >
2024-10-07 20:50:44 +07:00
Erison Silva
c11b2a2960
fix(docs): update giscus blog post ( #392 )
2024-10-02 21:44:40 +07:00
Rob Hudson
94ede9bb17
fix: add missing posts sorting ( #383 )
2024-10-02 21:31:12 +07:00
Sat Naing
cbbb3eb1e1
perf: preload font and load theme script asynchronously ( #380 )
...
Improve page performance by preloading the font with
`as="style"` and loading the theme script asynchronously.
2024-09-16 21:28:51 +07:00
Sat Naing
29eff36794
feat: add prev/next links at the bottom of blog post ( #372 )
...
* feat: add prev/next links at the bottom of blog post
* fix: update and rerun scripts in post details page after swap
Resolves #358
2024-09-16 20:43:54 +07:00
Timon Jurschitsch
08b1676cdd
refactor: replace pagination logic with Astro built-in pagination ( #376 )
2024-09-16 13:05:50 +07:00
Alberto Perdomo
70b2486293
docs: add a blog post for LaTex support ( #373 )
...
Add a blog post for adding LaTex equation rendering
in AstroPaper blog posts.
---------
Co-authored-by: satnaing <satnaingdev@gmail.com >
2024-09-11 09:21:43 +07:00
Xuân Nghĩa
28f886b4d6
fix(og): add the missing SITE.website to loadGoogleFonts ( #360 )
2024-09-08 14:48:09 +07:00
faiz ahnaf
ec373c3369
fix(blog): correct file reference in reading time guide ( #359 )
...
Ensure no duplicate items appear in the list of the blog post
and update the list with the correct one.
2024-09-08 12:25:24 +07:00
Sat Naing
6bbe177566
chore: upgrade ESLint to v9 and update configurations ( #356 )
...
* chore: upgrade ESLint to v9 and update configurations
Upgrade ESLint and configure and update ESLint rules.
* refactor: update code to comply with new ESLint v9 rules
2024-08-19 12:58:16 +07:00
Sat Naing
dab61b3714
build: bump Astro to v4.14.2 & use content layer ( #355 )
...
Bump Astro from v4.13 to v4.14.2 and use experimental
content layer api.
2024-08-19 12:53:58 +07:00
Alejandro Ñáñez Ortiz
2b617b20a3
refactor: replace github-slugger with lodash.kebabcase ( #357 )
...
Previously, `github-slugger` omitted emojis when generating slugs, transforming tags like "🌱 -my-tag" into "-my-tag". This change replaces `github-slugger` with `lodash.kebabcase` to ensure that emojis are preserved in the generated slugs, improving the accuracy and consistency of tag representations.
2024-08-19 12:52:59 +07:00
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
8762650c60
fix(a11y): remove aria-labels from non-interactive elements ( #346 )
...
Remove aria-label from `<h1>` of 404 page and disabled LinkButton.
Resolves #263
2024-08-04 14:50:31 +07:00
Sat Naing
be172efa17
refactor: update tailwind classes to v3 syntax ( #345 )
...
Updated background/border opacity to the new syntax:
- border-skin-fill border-opacity-40 => border-skin-fill/40
- selection:bg-skin-accent selection:bg-opacity-70 => selection:bg-skin-accent/70
2024-08-04 10:49:13 +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
satnaing
63feb9607b
refactor: remove commented codes
2024-07-27 17:29:58 +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
Sat Naing
9de19c2c68
feat: support light/dark theme in code blocks ( #327 )
...
Update Astro and its related dependencies. Support
light/dark theme in code-blocks.
2024-07-21 16:18:22 +07:00
87xie
b9266cb20d
refactor: remove redundant role in article element ( #323 )
2024-07-15 22:36:03 +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
87xie
7b045a0be8
feat: make heading links keyboard focusable ( #275 )
2024-07-14 16:10:56 +07:00
87xie
227fcf21e7
refactor: avoid using unnecessary class-name in the pagination component ( #274 )
2024-07-14 15:59:27 +07:00
87xie
e252506493
fix: avoid undefined when passing class-name as prop ( #270 )
...
- avoid `undefined` when passing class-name as prop
- use built-in `class:list` directive
2024-07-14 15:21:49 +07:00
David Legrand
8fbb0b4d85
feat: add JSON-LD structured data ( #260 )
...
- Add author profile to SITE variables
- Add JSON-LD to Layout.astro
2024-07-14 15:06:46 +07:00
Parinya T
25a640b728
fix: display Updated in posts only when modDatetime > pubDatetime ( #258 )
...
* refactor: show update time when modDatetime more recently than pubDatetime
* fix: show wrong date when compare with null modeDate
* refactor: modDatetime type checking & rewrite myDatetime
2024-02-19 10:38:43 +06:30
Sat Naing
8e022c7b5a
feat: add scroll indicator in blog posts ( #249 )
2024-02-09 11:43:51 +06:30
Alan Ye
556df2d21a
fix: add SITE.title in PostDetails title tag for consistent look ( #247 )
...
Add `SITE.title` in PostDetails page to be the same as other page title tags.
---------
Co-authored-by: satnaing <satnaingdev@gmail.com >
2024-01-25 10:33:32 +06:30
面条
b3a1d9d369
fix: add trailing slash to links to avoid extra redirects ( #246 )
...
Add trailing slash to links for improved consistency with RSS links and to avoid unnecessary redirects.
---------
Co-authored-by: satnaing <satnaingdev@gmail.com >
2024-01-25 10:24:28 +06:30
satnaing
b05ab6213e
refactor: update post detail script codes
...
Updates:
- add optional chaining in possible null variables
- remove unnecessary after-swap event listeners
2024-01-24 13:46:31 +06:30
satnaing
a7abab4372
refactor: update code formatting with prettier
2024-01-24 09:23:16 +06:30
Jahseh J
c9150f2774
fix: update incorrect typo in predefined-color-schemes.md ( #245 )
2024-01-24 09:20:45 +06:30
Sat Naing
8f75f0a5e7
fix: update back button to redirect to home when no route history ( #241 )
...
Update back button in PostDetails.astro to redirect to home page when
there's no route history.
If a blog post url is pasted in the browser and there's no route history
,prior to this commit, back button did not work as expected.
Now, if there's somewhere to go back, the back button will go back to the
previous route.
If not, the back button will redirect to home page.
2024-01-22 11:03:41 +06:30
Sat Naing
629dbfda5b
fix: remove recent posts section if there's no post ( #238 )
...
Changes made:
- Removed the recent posts section if there's no post under the recent section.
- Eliminated unnecessary <Hr /> tags when there's no recent post.
- Extracted all-links from the recent section and put it above the footer.
Closes : #204
2024-01-18 09:38:41 +06:30
vrabe
ece0682adc
fix: resolve broken line break in inline code ( #237 )
2024-01-17 14:50:44 +06:30
David Legrand
1331795a49
fix: reduce margin-bottom on markdown images ( #235 )
...
* Disable margin bottom on image
The result is better on images with caption defined as:
```

*caption*
```
* refactor: combine mt and mb into my-2
---------
Co-authored-by: satnaing <satnaingdev@gmail.com >
2024-01-15 19:54:14 +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
Benjamin Rae
742baff2c9
feat: add heading links to PostDetails page ( #232 )
...
- implement easy links to headings (h2-h6) on post details
- the links are aria-hidden and only show on hover
2024-01-15 11:17:47 +06:30
Mario Davó
742314e0ac
fix: remove extra padding if lightAndDarkMode is false ( #230 )
...
Remove the extra "right-padding" inside the header search icon when lightAndDarkMode is false so UI is consistent.
This is done by including <li> tag inside if statement
2024-01-12 22:03:19 +06:30
satnaing
940deb6d3f
fix(a11y): resolve accessibility issues
...
A11y Improvements
- add screen-reader only texts
- remove autoFocus on search box
- replace disabled link with span text in LinkButton
2024-01-09 15:49:50 +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
satnaing
db31df3ce4
refactor: remove SocialObjects type and update SocialObjects type
...
- remove SocialMedia type from src/types.ts
- generate each social icon type from socialIcons object instead
2024-01-09 15:45:48 +06:30
Simon Smale
bb60a9b3db
docs: updates the hook post with a smarter updateHook ( #222 )
2024-01-09 11:18:40 +06:30