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
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
e7c9a56722
refactor: enable scroll-smooth only in post detail page
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
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
tanishqmanuja
88d9343ab5
feat: use new og images in layout
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
6dffcf3cb3
fix: og image src
...
related to: 3e0109c12e708351df60df7b938e8bcc07807540
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
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
cbdaa59bae
feat: add ViewTransitions from Astro
...
Integrate ViewTransitions API from Astro v3.
resolve #96
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
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
satnaing
e017dcf9a5
style: format files with prettier
2023-06-21 11:48:07 +06:30
Gabriel Kanev
f6ac8104b2
fix: add missing sitemap in head ( #69 )
2023-05-15 10:30:57 +06:30
satnaing
e8bd3911b3
refactor: update slugify logic inside the component itself
2023-05-15 10:05:11 +06:30
Jingwei Gao
49d7f77a86
Fix: slugify tags in post detail page
2023-05-01 17:36:00 +08:00
satnaing
ccb5a7787c
refactor: update imports paths
2023-03-23 23:20:33 +06:30
Sat Naing
27507d1d78
feat: generate og images in png format ( #43 )
...
* feat: generate og images in png format
In production mode, generate og images from svg to png format.
fix #40
* refactor: update og image format from svg to png
Update OG image format in post detail to png. Update twitter og images to auto-generated dynamic og
images.
2023-03-01 18:46:42 +06:30
satnaing
1a427285f3
style: format styles with Tailwind Prettier plugin
2023-01-31 15:53:49 +06:30
satnaing
50af65b0b4
refactor: update ogImage.src to ogImage
2023-01-30 20:57:35 +06:30
satnaing
38761e2e8f
refactor: update collection type and new schema property name
2023-01-28 01:18:25 +06:30
satnaing
0fe14f4217
refactor: refactor relative imports to aliases
2023-01-28 00:52:18 +06:30
satnaing
52197d319d
perf: update font load strategy for better performance
2023-01-19 18:21:13 +06:30
satnaing
9434d850e1
fix: use default-og for twitter card
2022-12-30 16:14:12 +06:30
Sat Naing
ce3f1dc4a0
feat: generate dynamic og image for blog posts ( #15 )
...
* feat: add dynamic og image using satori
* feat: add og card styling
* feat: add dynamic paths for ogTitle
* feat: add default og url
* ci: change config site url for testing purpose
* fix: update original auto-generate og image style
* refactor: move ogImage jsx inside generateOgImage
* fix: add conditions for filtering draft posts & ogImages
* build: update minor and major dependency updates
* build: update site option in config file
2022-12-28 09:09:57 +06:30
satnaing
d7e28c700f
build: add google-site-verification tag in the header
2022-12-20 22:42:29 +06:30
satnaing
6b35c7fc2f
fix: hide pagination when there's only 1 page
2022-12-02 23:37:32 +06:30
satnaing
d1450acfa3
refactor: remove redundant 'Navigation' word in pagination aira-label
2022-11-29 23:10:22 +06:30
satnaing
0eeed8e870
refactor: update toggle theme function for better structure and a11y
...
Move theme switch js codes in Layout.astro file to external js file (toggle-theme.js). Update
.prettierignore to exclude the new toggle-theme.js file. Update base.css for new data-theme
attribute.
2022-11-26 23:43:27 +06:30
satnaing
408fc4c7aa
fix(a11y): update previous and next (disabled) buttons for vo a11y
2022-11-26 16:13:33 +06:30
satnaing
5eeea6639e
fix: fix heading style in posts/<page-num> layouts
...
Heading styles not applying properly in Main.astro layout. Fix this problem by applying id selector.
2022-11-03 18:51:28 +06:30
Sat Naing
20822c422a
chore: format files with prettier
2022-10-16 23:53:16 +06:30
Sat Naing
88b95df2e4
Update about layout prose style
2022-09-26 12:18:16 +06:30
Sat Naing
3bc440144a
Add primaryColorScheme feature
2022-09-26 12:04:10 +06:30
Sat Naing
e6e70f713e
Add bold and italic font style
2022-09-26 12:03:40 +06:30
Sat Naing
10358b0fbf
Add prefers-color-scheme media query
2022-09-26 10:11:18 +06:30
Sat Naing
25bc1e06cf
Remove prose-slate style
2022-09-26 02:28:05 +06:30
Sat Naing
350f586e4d
Update outline style of Go Back button
2022-09-26 00:09:02 +06:30
Sat Naing
7877a0c66b
Reposition slugify import
2022-09-25 19:09:35 +06:30
Sat Naing
6e79189afd
Update slug url with new function's slugified url
2022-09-25 19:07:47 +06:30
Sat Naing
ef1fac6043
Set default og image even when empty string is specify
2022-09-23 13:30:58 +06:30
Sat Naing
300fd568e9
Replace env variable with SITE config object
2022-09-22 21:32:02 +06:30
Sat Naing
9db22658ed
Replace env values with SITE config object
2022-09-22 21:20:40 +06:30
Sat Naing
b8a08dc794
Update import of type definition
2022-09-22 20:51:35 +06:30