Commit Graph

501 Commits

Author SHA1 Message Date
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
Nahuel Garbezza 08383093d1 docs: update "adding new post" tutorial with...
...info about canonical URLs
2023-07-23 10:55:19 +06:30
satnaing 606203d034 docs: add a blog post for adding estimated reading time
Add an article for adding estimated reading time. #74

resolve #74
2023-07-22 23:15:57 +06:30
satnaing d9743af65d docs: add a blog post for updating AstroPaper and dependencies
Add an article to show how to update project dependencies and AstroPaper template.

resolve #68
2023-07-21 21:04:02 +06:30
satnaing 26ecd173dd fix: #72 replace SITE.website with a URL in astro.config site value
Using SITE.website in astro.config.mjs causes the problem . Thus, change back to the original url string in site value of .

Closes: #72
2023-07-20 16:30:02 +06:30
satnaing e017dcf9a5 style: format files with prettier 2023-06-21 11:48:07 +06:30
Ajit Panigrahi d383439c4e perf: update getUniqueTags func for better efficiency
* 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
2023-06-21 10:00:54 +06:30
Chris Kerr 99b27240ec perf: memoize fuse search results with useMemo (#71)
Memoise the value of fuse based off of the search list to prevent reinstantiating it on search keypress.
2023-05-15 11:07:17 +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
Sat Naing 7d46181e68 Merge pull request #66 from LobbyBoy-Dray/tag-bug-fix
Fix: slugify tags in post detail page
2023-05-15 10:03:06 +06:30
Nihaal Sangha a57f3439f8 fix: replace history entries when searching (#62) 2023-05-15 08:47:29 +06:30
Jingwei Gao 49d7f77a86 Fix: slugify tags in post detail page 2023-05-01 17:36:00 +08:00
satnaing 4c1b9c89f3 refactor: update LinkButton role type
Fix Subtype missing error on 'a' element.
2023-04-18 23:24:39 +06:30
satnaing 0f764242fe fix: update menu element with svg and refactor toggle logic
Replace div element in menu button with svg. Refactor toggle-menu JS logic to be more concise.
2023-04-18 23:19:38 +06:30
Andrea Mignone 0e9f709c5d feat: add locale configuration for Datetime component (#59) 2023-04-17 23:56:58 +06:30
satnaing 08151881cc style: format file with prettier 2023-03-24 23:48:15 +06:30
satnaing ccb5a7787c refactor: update imports paths 2023-03-23 23:20:33 +06:30
Salman Hossain Saif 9e62b637e8 fix: sort rss feed from latest to oldest (#38)
* Sorted the rss feed from latest to oldest. Which is crucial for RSS readers.

* sorted rss using util func

* refactor: remove redundant draft filter and update import positions

---------

Co-authored-by: Saif71 <>
Co-authored-by: Sat Naing <satnaingdev@gmail.com>
2023-03-17 13:14:10 +06:30
satnaing 4fe508462e refactor: replace astro.config site value with SITE.website 2023-03-16 14:58:26 +06:30
satnaing 0c6d0ba6cd refactor: add type to SITE object for better type safety 2023-03-16 14:56:54 +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
Mahesh Rijal cbce54bd1c fix: correct typo in blog posts
Fix typo (#35)
2023-02-12 19:16:50 +06:30
John Hooks bcae985671 fix: slugifyAll typo 2023-02-10 05:30:18 -08:00
Sha Mwe La a9631d0e1e feat: add ESLint and update linting errors (#26)
* Install ESLint and Astro ESLint plugin

* Configure 2 plugins

* Improve ignore files

* Add lint script

* Install astro-eslint-parser

* Add parser and fix linting errors
2023-02-02 16:24:38 +06:30
Michael Alaev 29e07761f7 refactor: remove unnecessary comments (#25)
Remove unnecessary comments in `src/utils/generateOgImage.tsx`.
2023-02-01 18:40:20 +06:30
B. Burt d9a2ffe909 docs: fix typo in blog post (#24)
Change spelling of criteria.
2023-02-01 12:16:15 +06:30
Sha Mwe La dc026b38de fix: make schema(s) strict (#23)
If schema(s) are made with strict, it will disallow extra keys in the markdown frontmatter.
2023-02-01 12:13:41 +06:30
satnaing 705c59e6ea docs: update OG/desc image and info of predefined color scheme 2023-01-31 20:10:54 +06:30
satnaing b3f760f7d8 docs: update card bgColor in lower contrast new dark theme 2023-01-31 20:09:34 +06:30
satnaing 8a99601e93 fix: update card bg color 2023-01-31 20:09:05 +06:30
satnaing a827f758d3 docs: add AstroPaper 2 dark theme lower contrast 2023-01-31 20:06:02 +06:30
satnaing cfd1072d9d refactor: change default dark theme 2023-01-31 20:04:08 +06:30
satnaing f99c014de3 docs: add info about automatic class sorting feat 2023-01-31 16:02:16 +06:30
satnaing 1a427285f3 style: format styles with Tailwind Prettier plugin 2023-01-31 15:53:49 +06:30
satnaing bb5d6b3837 docs: add main image in astro-paper-2 blog post 2023-01-31 13:04:43 +06:30
satnaing ca69958908 docs: add info about new predefined color scheme 2023-01-31 12:59:11 +06:30
satnaing bc263b6eac feat: add new predefined color scheme 'astro dark' 2023-01-31 12:50:36 +06:30
satnaing b9aa569e00 docs: mark as featured and add search logic paragraph 2023-01-31 00:33:41 +06:30