Commit Graph

663 Commits

Author SHA1 Message Date
87xie eba03726b2 chore: use @typescript-eslint/parser as the default parser (#273) 2024-07-14 15:33:57 +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
satnaing 242729a6fe docs: add figma design file in README 2024-07-07 13:00:57 +07:00
Yenru Chin c00a3aa5dc fix: add $CURRENT_TIMEZONE_OFFSET in custom code snippets (#264) 2024-02-19 16:02:46 +06:30
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 7c88c6af50 chore(release): 4.2.0 2024-01-24 09:23:16 +06:30
satnaing f19279d8ba chore: update outdated prettier script 2024-01-24 09:23:16 +06:30
satnaing dcb320930b chore: add astro extension in lint-staged code formatting 2024-01-24 09:23:16 +06:30
satnaing a7abab4372 refactor: update code formatting with prettier 2024-01-24 09:23:16 +06:30
satnaing bdd0a793fc build(deps): upgrade astro and other dependencies 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
dependabot[bot] 31f6644a04 build(deps): bump vite from 4.5.1 to 5.0.12 (#243)
Bumps [vite](https://github.com/vitejs/vite/tree/HEAD/packages/vite) from 4.5.1 to 5.0.12.
- [Release notes](https://github.com/vitejs/vite/releases)
- [Changelog](https://github.com/vitejs/vite/blob/v5.0.12/packages/vite/CHANGELOG.md)
- [Commits](https://github.com/vitejs/vite/commits/v5.0.12/packages/vite)

---
updated-dependencies:
- dependency-name: vite
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-01-22 11:05:44 +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: 
```
![alt text](/path/to/img)
*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 f525698771 chore(release): 4.1.0 2024-01-10 10:27:56 +06:30
satnaing 034dd394ab build(deps): upgrade dependencies 2024-01-10 09:13:37 +06:30
satnaing f70a0b78ed build(deps): update Astro and its related dependencies 2024-01-10 09:01:08 +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
satnaing 43f716054b fix: update twitter ShareLink title 2024-01-08 15:16:49 +06:30
immodded 1e2c5e82d8 feat: add share links in blog post (#215)
* Add share links

* refactor: update and rename Sharebutton to ShareLinks

- rename SOCIALS to shareLinks to avoid confusion with `src/config.ts > SOCIALS`
- fix type error related with shareLinks
- add `linkTitle` in shareLinks for better accessibility
- update styles to looks good in all devices

* refactor: place ShareLinks next to `back to top`

- place ShareLinks at the bottom (next to `back to top`)
- update styles for ShareLinks and Back to Top button

---------

Co-authored-by: Sat Naing <satnaingdev@gmail.com>
2024-01-08 15:11:10 +06:30
Qisthi Ramadhani 6e7d76a0d3 feat: add copy buttons for code blocks (#217)
* feat: copy button on snippet code

* refactor: update func name, styles and refactor backToTop

Rename the function name `copyButton` to `attachCopyButtons`. Update copy button styles. Fix broken `backToTop` function by attaching `astro:after-swap` event listener.

---------

Co-authored-by: Sat Naing <satnaingdev@gmail.com>
2024-01-07 21:15:47 +06:30
May Kittens Devour Your Soul 1b4164226a refactor: update breadcrumbs delimiter to "»" (#213) 2024-01-06 23:43:18 +06:30
satnaing d929ce1fef fix: solve modDatetime type errors
Update modDatetime props type to have null type for components that have modDatetime as props.
2024-01-05 10:32:31 +06:30
satnaing c3567896fb chore(release): 4.0.0 2024-01-04 15:53:12 +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 a5a7e7459a style: remove unnecessary margin 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
satnaing e7c9a56722 refactor: enable scroll-smooth only in post detail page 2024-01-04 15:53:12 +06:30
satnaing 20536b0562 fix: update rss pubDate to prioritize modDatetime if exists 2024-01-04 15:53:12 +06:30
satnaing f5855cb826 build(deps): upgrade dependencies 2024-01-04 15:53:12 +06:30
satnaing 59df7a5826 build!(deps): upgrade Astro and related packages to v4
Bump astro v3.6.4 to v4.0.9 (major upgrade). Bump astrojs/rss v3.0.0 to 4.0.1 (major upgrade). Upgrade other astro related packages.

BREAKING CHANGE: Astro v4 upgrade

Closes: #187
2024-01-04 15:53:12 +06:30
satnaing 8309d6823f refactor: reduce main layout content margin bottom 2023-12-29 10:27:42 +06:30
Sat Naing 581826a5af feat: add pagination in tag posts (#201)
* feat: add pagination in tag posts

Implement pagination in tag posts. Refactor and extract pagination logic and pagination component.

Closes: #152

* fix: update breadcrumbs for updated tag pagination
2023-12-29 10:26:02 +06:30
Sat Naing b05b8fb842 feat: replace slugified title with unslugified tag name (#198)
Update slugified titles to be unslugified in the tag page. This is for better SEO and better a11y. Url and tag elelemnts will still be slugified.

Closes: #179
2023-12-28 14:16:40 +06:30