* Add a SITE config parameter for posts in index page
* docs: update blog post for `postPerIndex` config
---------
Co-authored-by: satnaing <satnaingdev@gmail.com>
* 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
Add trailing slash to links for improved consistency with RSS links and to avoid unnecessary redirects.
---------
Co-authored-by: satnaing <satnaingdev@gmail.com>
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.
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
* 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>
* 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>
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
* 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>
* 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>
* 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