Commit Graph

739 Commits

Author SHA1 Message Date
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
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
satnaing c526157118 feat: implement back-to-top button in blog post page
Implement back-to-top button under tags in PostDetails page. Update html scroll-behavior to smooth.

Closes: #156
2023-12-15 14:21:17 +06:30
YUE 058c790d26 fix: decode unicode tag chars in breadcrumb (#175) 2023-12-12 17:18:39 +06:30
Haibo 64b3a286e6 fix: solve invisible text code block issue in light-mode (#163)
* 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>
2023-12-12 14:57:49 +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 79d569d053 fix(layout): use 100svh for min-height on body instead of 100vh
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
2023-10-06 11:45:39 +06:30
tanishqmanuja d025c914d9 fix: anchor oveflow on small screen size 2023-10-03 14:17:50 +06:30
tanishqmanuja 6352353470 feat: dynamically generate robots.txt 2023-10-03 13:44:57 +06:30
satnaing 5178f75631 chore: update dependencies and format code 2023-09-26 02:04:11 +06:30
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
satnaing 5171111f89 style: update nav list style to be more flexible 2023-09-26 02:04:11 +06:30
tanishqmanuja 88d9343ab5 feat: use new og images in layout 2023-09-26 02:04:11 +06:30
tanishqmanuja 300d014fd7 feat: og image routes 2023-09-26 02:04:11 +06:30
tanishqmanuja 3032c18321 feat: generate og image using templates 2023-09-26 02:04:11 +06:30
tanishqmanuja b5308debab chore: remove unused file 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 80fcc93954 feat: use post author in og template 2023-09-26 02:04:11 +06:30
tanishqmanuja 4380a7b290 refactor: og templates 2023-09-26 02:04:11 +06:30
tanishqmanuja 35bb517d3a chore: remove unused file 2023-09-26 02:04:11 +06:30
tanishqmanuja 6dffcf3cb3 fix: og image src
related to: 3e0109c12e708351df60df7b938e8bcc07807540
2023-09-26 02:04:11 +06:30
tanishqmanuja d10e8dfb78 refactor: post slug routing 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
Tanjim Hossain 0af32518b3 fix: resolve single-line code block wrapping issue (#121)
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
2023-09-26 02:04:11 +06:30
satnaing 9eeb8fc76e fix: prevent white flash in dark mode when navigate 2023-09-26 02:04:11 +06:30
Tanishq Manuja 6c7d04fa12 feat: add view transitions for card on search page (#118)
* 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>
2023-09-26 02:04:11 +06:30
satnaing a060cb5c87 feat: add transition effect if light/dark changes 2023-09-26 02:04:11 +06:30
satnaing 1933a6beae fix: update auto-gen OG images to allow special char usage in title
Update the implementation of og image generation code to allow special character usage in title.

fix #103, fix #88
2023-09-26 02:04:11 +06:30
satnaing 08e4f545a0 refactor: display only non-featured posts in Recent Section 2023-09-26 02:04:11 +06:30
satnaing cbdaa59bae feat: add ViewTransitions from Astro
Integrate ViewTransitions API from Astro v3.

resolve #96
2023-09-26 02:04:11 +06:30
satnaing e486687610 feat: upgrade to astro v3
Upgrade to astro v3. Update dependencies. Fix codes and features due to migration.

BREAKING CHANGE: Astro v3

resolve #111
2023-09-26 02:04:11 +06:30
satnaing f25377674e feat: update theme-color tag on theme switch 2023-09-26 02:04:11 +06:30
satnaing 87b3e5b8cd fix: update title of the blog nowrap 2023-09-26 02:04:11 +06:30
Mateus Abelli 0c92492959 fix(css): text wrap in code blocks 2023-08-09 14:11:22 +06:30
Parinya T b571816dcd fix: sort posts in [tag] page (#101)
* fix: sorted posts in tags page
2023-08-09 14:08:16 +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