Commit Graph

842 Commits

Author SHA1 Message Date
Sat Naing 793eafa965 fix: adjust nav bar alignment in heading (#492) 2025-03-22 17:22:38 +07:00
Sat Naing 5cff7c50b9 feat: add global and per-post timezone support (#491)
* refactor: replace embedded svg with svg icon

* feat: add global and per-post timezone support

- add `SITE.timezone` in config to define a global default timezone.
- allow per-post timezone overrides via `timezone` in frontmatter.
- update date formatting logic to use the correct timezone when rendering timestamps.
- ensure that posts without a timezone fallback to `SITE.timezone`.
- improve consistency between local and deployed timezones.

* refactor: replace `LOCALE` constant with  `SITE.lang`

* docs: update guides

* fix: update code word-break inside markdown table

Closes #466
2025-03-22 17:21:21 +07:00
Sat Naing a397677d84 fix: ensure only one search bar is displayed on nav link clicks (#489)
Closes #465
2025-03-22 09:21:16 +07:00
satnaing 237467a005 bump: version 5.1.0 → 5.1.1 2025-03-20 12:43:31 +07:00
Sat Naing 5e92a3d4da fix: initial light mode flash in dark mode (#488) 2025-03-20 12:42:30 +07:00
Sat Naing 2774045045 fix: broken editPost link and update editPost logic (#487)
* fix: broken editPost link and update editPost logic

Fixed broken editPost link. Removed the ability to update
the editPost link inside each blog post for consistency.
The editPost button per blog post can still be hidden.

* docs: update docs for editPost
2025-03-20 12:41:58 +07:00
Sat Naing 48f200f444 fix: prevent overflow by adding line breaks in table codes (#485)
Horizontal overflow occurs when a code block in markdown 
table is too long. This is prevented by adding line breaks 
(`break-all`) in codes inside table.
2025-03-18 23:26:33 +07:00
satnaing 0d8cbaf714 bump: version 5.0.1 → 5.1.0 2025-03-18 08:18:41 +07:00
Sat Naing 9c92ba9452 build(deps): bump astro and dependencies (#484)
* build(deps): bump astro from 5.4.2 to 5.5.2

Upgrade astro and add experimental preserveScriptOrder

* build(deps): upgrade tailwind and eslint patch updates
2025-03-18 08:16:27 +07:00
satnaing 004ddcf6ee docs: update blog post creation guide 2025-03-18 07:57:07 +07:00
satnaing 9f75d266c6 refactor: update blog post directory structure 2025-03-18 07:57:07 +07:00
satnaing feaf5e122a feat: allow blog posts to be organized by subdirectories
Blog posts can now be structured into subdirectories, which determine their slugs.

Example:
- `/src/data/blog/2025/testing.md` → `/posts/2025/testing`

Directories prefixed with `_` will be excluded from the slug.

Example:
- `/src/data/blog/_examples/tailwind-typography.md` → `/posts/tailwind-typography`

Closes #470, #366
2025-03-18 07:57:07 +07:00
satnaing 67b9536cce refactor: replace secHeading with variant prop in Card 2025-03-18 07:57:07 +07:00
satnaing ad9c26f260 bump: version 5.0.0 → 5.0.1 2025-03-12 21:49:49 +07:00
Erison Silva ec59d1109e fix: update docker-compose (#475) 2025-03-12 21:00:43 +07:00
Erison Silva 0016dd55d1 fix: update import location in giscus example (#474) 2025-03-12 20:59:08 +07:00
Sat Naing 6749f62015 fix: add an option to disable dynamic OG image generation (#476)
* fix: add an option to disable dynamic OG image generation

Add new `dynamicOgImage` option in the `SITE` object inside 
`src/config.ts` file to disable auto og-image generation during build.

Resolves #428

* docs: update guides for `SITE.dynamicOgImage` option
2025-03-12 20:47:12 +07:00
Erison Silva dc5ca47b1d docs: update giscus integration guide for AstroPaper v5 (#472) 2025-03-12 20:04:09 +07:00
Erison Silva 77ff6b4f64 docs: update color schemes guide for AstroPaper v5 (#469) 2025-03-12 19:54:28 +07:00
Sat Naing 212fd5c550 fix: remove unused ogImage size validation (#462)
* fix: remove unused ogImage size validation

Validation of `ogImage` field in blog collection
causes unintentional broken og images after the build.
Removing the validation solve the issue.

* docs: update docs for ogImage path

* chore: update asset
2025-03-09 19:27:20 +07:00
satnaing a4a5ced8a6 fix: correct Google Fonts API URL construction for proper weight fetching 2025-03-09 17:54:05 +07:00
Alexey Poimtsev 673c00969e fix: align vertically in header nav (#460) 2025-03-09 16:58:19 +07:00
Pujan Modha e08618ad3c fix: add font-weight param in og image card style (#453) 2025-03-09 16:50:00 +07:00
Sat Naing b51a055e22 docs: update LaTeX equations guide in Astro blog posts (#461) 2025-03-09 16:41:19 +07:00
satnaing 4b730b181d bump: version 4.8.0 → 5.0.0 2025-03-08 18:21:37 +07:00
satnaing 9cf78aa64c chore: update name, version and script in package.json 2025-03-08 18:21:37 +07:00
Sat Naing 0cb5a5be7f docs: update blog posts and readme (#459)
* docs: update astro-paper theme config docs

* docs: update adding-new-post blog post

* docs: remove outdated posts and update featured posts

* fix: update broken image link in astro-paper-4 blog

* docs: add a blog post for astro-paper-v5

* docs: update README for AstroPaper v5

* fix: update blog post formatting
2025-03-08 18:21:37 +07:00
satnaing b4ae4cde04 fix: ignore in eslint 2025-03-08 18:21:37 +07:00
satnaing 2b8dde4d64 build: upgrade dependencies and enable responsiveImages option 2025-03-08 18:21:37 +07:00
satnaing 98bff0a876 fix: update blog table padding 2025-03-08 18:21:37 +07:00
satnaing 61c6ec81b8 fix: remove unused back url in the card url 2025-03-08 18:21:37 +07:00
satnaing 39ed4898a3 fix: show light/dark button according to site setting 2025-03-08 18:21:37 +07:00
satnaing b995f4dada fix: add author url in Google JSON-LD conditionally 2025-03-08 18:21:37 +07:00
satnaing 579c29aac5 chore: remove unused fuse.js for search 2025-03-08 18:21:37 +07:00
Sat Naing 9119125643 feat!: add pagefind for static search (#458)
Replace React with pagefind for static site search
2025-03-08 18:21:37 +07:00
satnaing 79c7df45e5 feat: update back button logic
Instead of saving back url in the param, save the
back url info inside session.
2025-03-08 18:21:37 +07:00
Sat Naing 35429176e0 refactor!: remove react dependency for UI interactions (#457)
Remove react as a dependency for UI interactions.
Update jsx components such as Search and Datetime
with astro components.
2025-03-08 18:21:37 +07:00
satnaing 846315a265 chore: remove eslint-plugin-jsx-a11y package 2025-03-08 18:21:37 +07:00
satnaing cb9fd59f79 build: migrate CI and Docker setup to pnpm 2025-03-08 18:21:37 +07:00
satnaing f71fdc1398 chore: update robots.txt implementation 2025-03-08 18:21:37 +07:00
satnaing 172e14b5f4 build!: upgrade to Tailwind CSS v4 2025-03-08 18:21:37 +07:00
satnaing 360278277d chore: update .gitignore and remove unnecessary files 2025-03-08 18:21:37 +07:00
satnaing a2b88e1247 refactor!: separate config and constants 2025-03-08 18:21:37 +07:00
satnaing 53c79dd4c1 refactor: update import alias in files 2025-03-08 18:21:37 +07:00
satnaing cd11b39d22 build: add icons and update asset directorries 2025-03-08 18:21:37 +07:00
satnaing bac762f981 build: upgrade prettier and prettier config file 2025-03-08 18:21:37 +07:00
satnaing d167f6295d build: upgrade ESLint and its related packages 2025-03-08 18:21:37 +07:00
satnaing 90231031a5 build!: update import alias to @/* 2025-03-08 18:21:37 +07:00
satnaing 594addaec1 refactor!: update blog directory to src/data/blog 2025-03-08 18:21:37 +07:00
satnaing cc936ca5e4 build!: upgrade Astro to v5 and related packages 2025-03-08 18:21:37 +07:00