Commit Graph

889 Commits

Author SHA1 Message Date
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 186bc151c3 docs: update README for v3
Update file structure section. Add concurrent command running method for Windows PowerShell users.
Update footer credit to acknowledge the contributions of other contributors.

resolve #113
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
satnaing c516429e5b build: remove astro check cmd in dev script 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
Luks17 4a03558650 fix: update tailwind base styles config (#116) 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 6b8bba1612 chore: upgrade to astro v3.1
Upgrade astro version from v3.0.13 to v3.1 to solve the issue of ViewTransitions api not working properly on prod mode.
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 620446370d chore: add astro prettier plugin 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
dependabot[bot] 3187933dbe build(deps-dev): bump word-wrap from 1.2.3 to 1.2.4
Bumps [word-wrap](https://github.com/jonschlinkert/word-wrap) from 1.2.3 to 1.2.4.
- [Release notes](https://github.com/jonschlinkert/word-wrap/releases)
- [Commits](https://github.com/jonschlinkert/word-wrap/compare/1.2.3...1.2.4)

---
updated-dependencies:
- dependency-name: word-wrap
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-07-20 10:57:20 +06:30
dependabot[bot] c8e9e63d7d build(deps): bump fast-xml-parser from 4.2.4 to 4.2.6
Bumps [fast-xml-parser](https://github.com/NaturalIntelligence/fast-xml-parser) from 4.2.4 to 4.2.6.
- [Release notes](https://github.com/NaturalIntelligence/fast-xml-parser/releases)
- [Changelog](https://github.com/NaturalIntelligence/fast-xml-parser/blob/master/CHANGELOG.md)
- [Commits](https://github.com/NaturalIntelligence/fast-xml-parser/compare/v4.2.4...v4.2.6)

---
updated-dependencies:
- dependency-name: fast-xml-parser
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-07-20 10:56:54 +06:30
dependabot[bot] 7501c63049 build(deps): bump semver from 6.3.0 to 6.3.1
Bumps [semver](https://github.com/npm/node-semver) from 6.3.0 to 6.3.1.
- [Release notes](https://github.com/npm/node-semver/releases)
- [Changelog](https://github.com/npm/node-semver/blob/v6.3.1/CHANGELOG.md)
- [Commits](https://github.com/npm/node-semver/compare/v6.3.0...v6.3.1)

---
updated-dependencies:
- dependency-name: semver
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-07-18 23:33:39 +06:30
satnaing 47b1b4eadc build: update lint-staged to only format certain file types
resolved #79
2023-06-21 12:38:30 +06:30
satnaing e017dcf9a5 style: format files with prettier 2023-06-21 11:48:07 +06:30
satnaing ebb383effd chore: update dependencies 2023-06-21 11:47:05 +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
Sat Naing d48d77c4b5 Merge pull request #77 from satnaing/dependabot/npm_and_yarn/fast-xml-parser-4.2.4
build(deps): bump fast-xml-parser from 4.0.11 to 4.2.4
2023-06-21 09:11:56 +06:30
Sat Naing e21f4927be Merge pull request #76 from satnaing/dependabot/npm_and_yarn/vite-4.3.9
build(deps): bump vite from 4.3.5 to 4.3.9
2023-06-21 09:11:40 +06:30