Karim H
d1168170b7
refactor(ogImage): remove debug log for ogImagePath
2025-03-21 18:41:45 -04:00
Karim H
0805e9a3ec
feat(ogImage): enhance user-defined OG image path handling with absolute URL support
2025-03-21 18:40:47 -04:00
Karim H
b861740214
Merge branch 'v4' of github.com:h-karim/quartz into v4
2025-03-21 18:15:26 -04:00
Karim H
b7b53a923e
fix(ogImage): update user-defined OG image path handling to support relative URLs
2025-03-21 13:59:05 -04:00
Karim H
17cea6136a
refactor(path): remove isAbsoluteFilePath function
2025-03-21 13:58:57 -04:00
Karim
aa593a5129
Update quartz/plugins/emitters/ogImage.tsx
...
Co-authored-by: Jacky Zhao <j.zhao2k19@gmail.com>
2025-03-21 13:57:25 -04:00
Karim
616d0ed0a1
Update docs/plugins/CustomOgImages.md
...
Co-authored-by: Jacky Zhao <j.zhao2k19@gmail.com>
2025-03-21 13:57:14 -04:00
Karim H
084685874c
fix(ogImage): improve user-defined OG image path handling
2025-03-21 12:49:51 -04:00
Karim H
f718bd0045
fix(ogImage): typo
2025-03-21 11:40:11 -04:00
Karim H
bdd7b2cbb4
docs(CustomOgImages): update socialImage property to accept full URLs
2025-03-21 11:37:18 -04:00
Karim H
d0d30f6245
fix(ogImage): handle absolute paths for user defined og image paths
2025-03-21 11:34:58 -04:00
Karim H
1b0e887df5
feat(path): add function to check if a file path is absolute
2025-03-21 11:34:17 -04:00
Karim H
248ad2c4ed
fix(ogImage): update socialImage path to include base URL if defined
2025-03-21 11:15:38 -04:00
Shane McDonald
fbca56f278
fix(lastmod) Change defaultDateType to "modified" ( #1862 )
...
Build and Test / build-and-test (ubuntu-latest) (push) Has been skipped
Build and Test / publish-tag (push) Has been skipped
Docker build & push image / build (push) Has been skipped
Build and Test / build-and-test (macos-latest) (push) Has been cancelled
Build and Test / build-and-test (windows-latest) (push) Has been cancelled
Making this change as per https://github.com/jackyzha0/quartz/issues/1857#issuecomment-2737098252
This is necessary for the `git` source to work properly in the CreatedModifiedDate plugin.
2025-03-19 12:47:16 -07:00
Jacky Zhao
eccad3da5d
fix(lastmod): fallback to ctx.arg.directory instead of empty string
Build and Test / build-and-test (macos-latest) (push) Waiting to run
Build and Test / build-and-test (windows-latest) (push) Waiting to run
Build and Test / build-and-test (ubuntu-latest) (push) Has been skipped
Build and Test / publish-tag (push) Has been skipped
Docker build & push image / build (push) Has been skipped
2025-03-18 21:48:24 -07:00
dralagen
bcde2abcb2
fix(transformer): find last modified date form commit on submodule ( #1831 )
...
* fix(transformer): find last modified date form commit on submodule
when the content folder has a submodule git, the relative path start in content folder and not root folder of quartz
* fix(transformer): use path.relative for improved path handling in last modified date calculation
* fix(transformer): keep find file from relative path of repo workdir
* fix(transformer): use variable for repository workdir
use default value if repo.workdir is undefined to user fullFp value
2025-03-18 21:47:35 -07:00
Felix Nie
25979ab216
feat(fonts): allow PageTitle to have its own font subset ( #1848 )
...
* fix(explorer): vertically center the Explorer toggle under mobile view
* Added a separate title font configuration
* Added googleSubFontHref function
* Applied --titleFont to PageTitle
* Made googleFontHref return array of URLs
* Dealing with empty and undefined title
* Minor update
* Dealing with empty and undefined title
* Refined font inclusion logic
* Adopted the googleFontHref + googleFontSubsetHref method
* Adaptively include font subset for PageTitle
* Restored default config
* Minor changes on configuration docs
* Formatted source code
2025-03-18 21:43:32 -07:00
Jacky Zhao
9818e1ad57
chore: remove unused import
Build and Test / build-and-test (macos-latest) (push) Waiting to run
Build and Test / build-and-test (windows-latest) (push) Waiting to run
Build and Test / build-and-test (ubuntu-latest) (push) Has been skipped
Build and Test / publish-tag (push) Has been skipped
Docker build & push image / build (push) Has been skipped
2025-03-18 09:00:15 -07:00
Jacky Zhao
771110a72a
fix(git): deprioritize git, dont fail on non-git content folders
2025-03-18 08:56:06 -07:00
dependabot[bot]
dc6a9f3b12
chore(deps): bump rlespinasse/github-slug-action ( #1851 )
...
Build and Test / build-and-test (macos-latest) (push) Waiting to run
Build and Test / build-and-test (windows-latest) (push) Waiting to run
Build and Test / build-and-test (ubuntu-latest) (push) Has been skipped
Build and Test / publish-tag (push) Has been skipped
Docker build & push image / build (push) Has been skipped
Bumps the ci-dependencies group with 1 update: [rlespinasse/github-slug-action](https://github.com/rlespinasse/github-slug-action ).
Updates `rlespinasse/github-slug-action` from 5.0.0 to 5.1.0
- [Release notes](https://github.com/rlespinasse/github-slug-action/releases )
- [Commits](https://github.com/rlespinasse/github-slug-action/compare/v5.0.0...v5.1.0 )
---
updated-dependencies:
- dependency-name: rlespinasse/github-slug-action
dependency-type: direct:production
update-type: version-update:semver-minor
dependency-group: ci-dependencies
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2025-03-17 14:49:27 -07:00
Yes365
c0b73ddaa4
fix: maybeDates will change children dates ( #1843 )
Build and Test / build-and-test (macos-latest) (push) Waiting to run
Build and Test / build-and-test (windows-latest) (push) Waiting to run
Build and Test / build-and-test (ubuntu-latest) (push) Has been skipped
Build and Test / publish-tag (push) Has been skipped
Docker build & push image / build (push) Has been skipped
2025-03-17 08:27:15 -07:00
Jacky Zhao
e86544064c
fix: parse parallelization chunk arg, inline b64 for og image
Build and Test / build-and-test (macos-latest) (push) Waiting to run
Build and Test / build-and-test (windows-latest) (push) Waiting to run
Build and Test / build-and-test (ubuntu-latest) (push) Has been skipped
Build and Test / publish-tag (push) Has been skipped
Docker build & push image / build (push) Has been skipped
2025-03-16 15:12:40 -07:00
Jacky Zhao
a737207981
perf: incremental rebuild (--fastRebuild v2 but default) ( #1841 )
...
* checkpoint
* incremental all the things
* properly splice changes array
* smol doc update
* update docs
* make fancy logger dumb in ci
2025-03-16 14:17:31 -07:00
Felix Nie
a72b1a4224
fix(explorer): vertically center the Explorer toggle under mobile view ( #1847 )
2025-03-16 12:08:45 -07:00
Jacky Zhao
fbb4523853
fix(folder): use memoized trie instead of handrolled path solution ( closes #1767 )
2025-03-14 15:08:23 -07:00
Jacky Zhao
da1b6b37fe
fix(explorer): fix incorrect recursive case for folder rendering
2025-03-14 10:05:26 -07:00
Jacky Zhao
e26658f4ed
fix(description): calculate description properly when first sentence is longer than max
2025-03-13 14:22:11 -07:00
Jacky Zhao
b579950ae5
fix(og): adjust line clamp
2025-03-13 14:05:26 -07:00
Jacky Zhao
0babbdf780
fix(contentPage): dont emit folders
2025-03-13 13:57:00 -07:00
Jacky Zhao
1efe2e20a4
fix(graph): avoid keeping stroke in gfx
2025-03-13 12:29:30 -07:00
Jacky Zhao
5928d82a56
fix(og): search for font family properly
2025-03-13 12:11:27 -07:00
Jacky Zhao
696403d3fa
chore: bump version to 4.4.1
2025-03-13 10:55:37 -07:00
Jacky Zhao
2c30abe457
fix(analytics): always use defer over async to account for document nav event
2025-03-13 10:48:03 -07:00
Jacky Zhao
80c3196fee
feat(og): add reading time to default, improve logging
2025-03-13 10:41:50 -07:00
Jacky Zhao
d9159e0ac9
feat: make og images an emitter to properly await image generation ( #1826 )
...
* checkpoint
* make emitters async generators
* fix
* custom font spec
* replace spinner, use disk cache for fonts
* use readline instead
* make og images look nice
2025-03-13 10:27:46 -07:00
Jacky Zhao
c005fe4408
fix(explorer): properly respect folderDefaultState ( closes #1827 )
2025-03-12 22:31:44 -07:00
Emile Bangma
580c1bd608
fix(typography): properly pass Google font options ( #1825 )
2025-03-12 11:27:41 -07:00
Jacky Zhao
270a5dc14a
fix(explorer): show file name instead of slug if no file data ( closes #1822 )
2025-03-12 11:24:28 -07:00
Jacky Zhao
bfa938cc62
fix(explorer): allow setting displayName ( closes #1824 )
2025-03-12 10:42:07 -07:00
Jacky Zhao
e3c50caf13
fix(explorer): dont invert mobile css, properly toggle .collapsed
2025-03-12 10:15:54 -07:00
Emile Bangma
ca08ec1ae7
fix(explorer): mobile explorer toggle ( #1823 )
2025-03-12 14:15:16 +01:00
Jacky Zhao
2718ab9019
feat: flex component, document higher-order layout components
2025-03-11 14:56:43 -07:00
Jacky Zhao
87b803790c
fix(mermaid): themechange detector + expand simplification
2025-03-11 11:45:45 -07:00
Jacky Zhao
e59181c3aa
docs(explorer): update to account for new client side explorer)
2025-03-11 10:20:15 -07:00
Jacky Zhao
b00198b888
fix: load mermaid as normal now that inline is safely below bundle size
2025-03-10 16:42:08 -07:00
Jacky Zhao
9e3e711646
fix: mermaid script load order
2025-03-10 16:20:08 -07:00
Jacky Zhao
a8001e9554
feat: support non-singleton explorer
2025-03-10 15:13:22 -07:00
Aaron Pham
dd940a007c
Merge pull request #1820 from jackyzha0/dependabot/npm_and_yarn/production-dependencies-8ce87f9e70
...
chore(deps): bump the production-dependencies group with 5 updates
2025-03-10 17:57:39 -04:00
dependabot[bot]
a71e17919b
chore(deps): bump the production-dependencies group with 5 updates
...
Bumps the production-dependencies group with 5 updates:
| Package | From | To |
| --- | --- | --- |
| [hast-util-to-jsx-runtime](https://github.com/syntax-tree/hast-util-to-jsx-runtime ) | `2.3.5` | `2.3.6` |
| [lightningcss](https://github.com/parcel-bundler/lightningcss ) | `1.29.1` | `1.29.2` |
| [@types/node](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/node ) | `22.13.9` | `22.13.10` |
| [@types/ws](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/ws ) | `8.5.14` | `8.18.0` |
| [esbuild](https://github.com/evanw/esbuild ) | `0.25.0` | `0.25.1` |
Updates `hast-util-to-jsx-runtime` from 2.3.5 to 2.3.6
- [Release notes](https://github.com/syntax-tree/hast-util-to-jsx-runtime/releases )
- [Commits](https://github.com/syntax-tree/hast-util-to-jsx-runtime/compare/2.3.5...2.3.6 )
Updates `lightningcss` from 1.29.1 to 1.29.2
- [Release notes](https://github.com/parcel-bundler/lightningcss/releases )
- [Commits](https://github.com/parcel-bundler/lightningcss/commits/v1.29.2 )
Updates `@types/node` from 22.13.9 to 22.13.10
- [Release notes](https://github.com/DefinitelyTyped/DefinitelyTyped/releases )
- [Commits](https://github.com/DefinitelyTyped/DefinitelyTyped/commits/HEAD/types/node )
Updates `@types/ws` from 8.5.14 to 8.18.0
- [Release notes](https://github.com/DefinitelyTyped/DefinitelyTyped/releases )
- [Commits](https://github.com/DefinitelyTyped/DefinitelyTyped/commits/HEAD/types/ws )
Updates `esbuild` from 0.25.0 to 0.25.1
- [Release notes](https://github.com/evanw/esbuild/releases )
- [Changelog](https://github.com/evanw/esbuild/blob/main/CHANGELOG.md )
- [Commits](https://github.com/evanw/esbuild/compare/v0.25.0...v0.25.1 )
---
updated-dependencies:
- dependency-name: hast-util-to-jsx-runtime
dependency-type: direct:production
update-type: version-update:semver-patch
dependency-group: production-dependencies
- dependency-name: lightningcss
dependency-type: direct:production
update-type: version-update:semver-patch
dependency-group: production-dependencies
- dependency-name: "@types/node"
dependency-type: direct:development
update-type: version-update:semver-patch
dependency-group: production-dependencies
- dependency-name: "@types/ws"
dependency-type: direct:development
update-type: version-update:semver-minor
dependency-group: production-dependencies
- dependency-name: esbuild
dependency-type: direct:development
update-type: version-update:semver-patch
dependency-group: production-dependencies
...
Signed-off-by: dependabot[bot] <support@github.com>
2025-03-10 20:57:05 +00:00
Aaron Pham
aca0c330e7
docs: cleanup showcase ( #1818 )
...
Signed-off-by: Aaron Pham <contact@aarnphm.xyz>
2025-03-10 11:46:49 -07:00