* fix: pre > code font color
Co-authored-by: Nomango <nomango@qq.com>
Co-authored-by: shuaixr <1025sxr@gmail.com>
* refactor: extend other css properties besides typography
Update theme extend to include other properties like textColor etc, to clarify confusion.
---------
Co-authored-by: shuaixr <1025sxr@gmail.com>
Co-authored-by: Sat Naing <satnaingdev@gmail.com>
* 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>
Address a mobile layout issue where using 100vh caused unexpected behavior. Switching to 100svh
resolves this problem by accounting for the mobile browser's UI components. This change ensures a
consistent and improved user experience on smaller screens.
resolves#127
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
white-space should be pre-wrap - or else, a single long line of code block may break the layout of whole page on mobile devices
use word break for code and blockquote, white-space: pre for fenced code
* feat: use predictable slug for card transition
* feat: enable view transitions in search card
* refactor: use Card.tsx instead of Card.astro
* refactor: handle card styling in component
* refactor: remove unused class name
---------
Co-authored-by: Sat Naing <satnaingdev@gmail.com>
* refactor: getUniqueTags should perform conversions exactly once per tag
Previously, the `forEach` loop was spreading the tags list and updating it on every iteration. So for every post, the slugify operation was happening on previously converted data again.
Similarly, the last filter operation to remove duplicates was repeated for every post (`O(N * log N)`) instead of checking once at the end (`O(N)`).
* feat: Sort the tags in ascending order (lexicographic)
As per feedback from: https://github.com/satnaing/astro-paper/pull/78#issuecomment-1593979458