Ben Schlegel
d23eda7c1a
docs: add documentation for social images
2024-01-27 22:26:07 +01:00
Ben Schlegel
0289fd67f8
feat: add frontmatter alias for obsidian publish
2024-01-27 20:08:13 +01:00
Ben Schlegel
fe282292ce
feat: add frontmatter aliases for cover image
2024-01-26 22:29:30 +01:00
Ben Schlegel
be5f060bc1
refactor: rename socialImage frontmatter property
2024-01-26 22:26:05 +01:00
Ben Schlegel
2a14a898f5
chore: improve comments + types
2024-01-26 20:41:06 +01:00
Ben Schlegel
881eb67988
Merge branch 'v4' into open-graph
2024-01-26 19:40:01 +01:00
Ben Schlegel
cd5e8d89d7
refactor: rename defaultImage.tsx > socialImage.tsx
2023-09-30 12:46:01 +02:00
Ben Schlegel
1ab8dffd0d
feat: option for users to provide own image struct (satori)
...
This allows users to pass their own jsx for generating the default og image
2023-09-29 17:24:25 +02:00
Ben Schlegel
7011796101
feat: pass userOpts to image generator
2023-09-29 16:54:47 +02:00
Ben Schlegel
12d470d137
feat: make image dimensions configurable
2023-09-29 16:52:21 +02:00
Ben Schlegel
2cdf880e59
feat: remove html from description
2023-09-29 12:49:28 +02:00
Ben Schlegel
a6711364f2
fix: only set width/height header if known
2023-09-28 11:14:38 +02:00
Ben Schlegel
d1dfc59f0d
chore: add todos
2023-09-25 20:32:21 +02:00
Ben Schlegel
a476a6c784
refactor: move default image to own component
2023-09-25 13:48:43 +02:00
Ben Schlegel
bb9e857bf7
refactor: make image generation cleaner
2023-09-24 13:36:17 +02:00
Ben Schlegel
3a47f383b0
refactor: clean font helpers, rename fonts helper
2023-09-24 12:58:31 +02:00
Ben Schlegel
3c038677d6
feat: support custom og images via frontmatter
2023-09-23 14:56:33 +02:00
Ben Schlegel
997044d6d1
feat: add config option for social images
2023-09-23 14:32:08 +02:00
Ben Schlegel
b207477248
feat: use default og image if no path exists
2023-09-23 13:45:13 +02:00
Ben Schlegel
91a0c3e0b4
perf: memoize fonts
2023-09-22 17:00:17 +02:00
Ben Schlegel
346dbfe3e3
feat: use config header + body fonts for satori
2023-09-22 16:43:43 +02:00
Ben Schlegel
5ea283ac1a
feat: improve image margins, add font breakpoint
2023-09-22 16:05:52 +02:00
Ben Schlegel
9297e34d97
feat: add config for theme (light or dark)
2023-09-22 15:31:41 +02:00
Ben Schlegel
3887de1eca
feat: use sharp to convert to webp, add content headers
2023-09-22 15:15:40 +02:00
Ben Schlegel
ee15e27265
fix: og preview on discord
2023-09-22 12:17:10 +02:00
Ben Schlegel
5400b273f7
feat: dynamically generate og images, write to fs as png
2023-09-22 11:55:36 +02:00
Ben Schlegel
4310d48f1f
Squashed commit of the following:
...
commit fa69c2a565
Author: Ben Schlegel <31989404+benschlegel@users.noreply.github.com>
Date: Thu Sep 21 19:35:11 2023 +0200
fix(explorer): increase consistency, explicitly use font-family (#496 )
* fix(explorer): display name for folders without `index` file
* docs(explorer): add section for folder display names
* docs(explorer): fix broken wikilink
* fix(consistency): explicitly set font + label/link fix
Use consistent styling between folders with `folderClickBehavior: "link"` and `"collapse`
* Update quartz/components/styles/explorer.scss
Co-authored-by: Jacky Zhao <j.zhao2k19@gmail.com>
* Update quartz/components/styles/explorer.scss
Co-authored-by: Jacky Zhao <j.zhao2k19@gmail.com>
---------
Co-authored-by: Jacky Zhao <j.zhao2k19@gmail.com>
commit 8eb1554b13
Author: Ben Schlegel <31989404+benschlegel@users.noreply.github.com>
Date: Thu Sep 21 18:54:33 2023 +0200
fix(explorer): display names for folders without frontmatter (#494 )
* fix(explorer): display name for folders without `index` file
* docs(explorer): add section for folder display names
commit dcdeae4e7b
Author: Ben Schlegel <31989404+benschlegel@users.noreply.github.com>
Date: Thu Sep 21 18:53:19 2023 +0200
docs(explorer): update default config + new example (#493 )
commit 48452231d5
Author: Jacky Zhao <j.zhao2k19@gmail.com>
Date: Wed Sep 20 16:09:18 2023 -0700
perf: memoize filetree computation (#490 )
* perf: memoize filetree computation
* format
* var -> let
commit 16d33fb771
Author: Jacky Zhao <j.zhao2k19@gmail.com>
Date: Wed Sep 20 16:08:54 2023 -0700
feat: display name for folders, expand explorer a little bit (#489 )
* feat: display name for folders, expand explorer a little bit
* update docs
commit b029eeadab
Author: Ben Schlegel <31989404+benschlegel@users.noreply.github.com>
Date: Wed Sep 20 22:55:29 2023 +0200
feat(explorer): improve accessibility and consistency (+ bug fix) (#488 )
* feat(consistency): use `all: unset` on button
* style: improve accessibility and consistency for explorer
* fix: localStorage bug with folder name changes
* chore: bump quartz version
commit 6a9e6352e8
Author: Jacky Zhao <j.zhao2k19@gmail.com>
Date: Wed Sep 20 13:52:45 2023 -0700
Revert "feat: Making Quartz available offline by making it a PWA (#465 )"
This reverts commit d6301fae90 .
commit 70e029d151
Author: Jacky Zhao <j.zhao2k19@gmail.com>
Date: Wed Sep 20 13:52:29 2023 -0700
Revert "docs: wording changes for offline support"
This reverts commit 52a172d1a4 .
commit 0bad3ce799
Author: Jacky Zhao <j.zhao2k19@gmail.com>
Date: Wed Sep 20 11:58:52 2023 -0700
docs: document enableToc
commit 52a172d1a4
Author: Jacky Zhao <j.zhao2k19@gmail.com>
Date: Wed Sep 20 11:40:36 2023 -0700
docs: wording changes for offline support
commit d6301fae90
Author: Adam Brangenberg <adambrangenberg@proton.me>
Date: Wed Sep 20 20:38:13 2023 +0200
feat: Making Quartz available offline by making it a PWA (#465 )
* Adding PWA and chaching for offline aviability
* renamed workbox config to fit Quartz' scheme
* Documenting new configuration
* Added missig umami documentation
* Fixed formatting so the build passes, thank you prettier :)
* specified caching strategies to improve performance
* formatting...
* fixing "404 manifest.json not found" on subdirectories by adding a / to manifestpath
* turning it into a plugin
* Removed Workbox-cli and updated @types/node
* Added Serviceworkercode to offline.ts
* formatting
* Removing workbox from docs
* applied suggestions
* Removed path.join for sw path
Co-authored-by: Jacky Zhao <j.zhao2k19@gmail.com>
* Removed path.join for manifest path
Co-authored-by: Jacky Zhao <j.zhao2k19@gmail.com>
* Removing path module import
* Added absolute path to manifests start_url and manifest "import" using baseUrl
* Adding protocol to baseurl
Co-authored-by: Jacky Zhao <j.zhao2k19@gmail.com>
* Adding protocol to start_url too then
* formatting...
* Adding fallback page
* Documenting offline plugin
* formatting...
* merge suggestion
Co-authored-by: Jacky Zhao <j.zhao2k19@gmail.com>
* merge suggestion
Co-authored-by: Jacky Zhao <j.zhao2k19@gmail.com>
* merge suggestion
Co-authored-by: Jacky Zhao <j.zhao2k19@gmail.com>
* merge suggestion
Co-authored-by: Jacky Zhao <j.zhao2k19@gmail.com>
* merge suggestion
Co-authored-by: Jacky Zhao <j.zhao2k19@gmail.com>
* merge suggestion
Co-authored-by: Jacky Zhao <j.zhao2k19@gmail.com>
* merge suggestion
Co-authored-by: Jacky Zhao <j.zhao2k19@gmail.com>
* merge suggestion
Co-authored-by: Jacky Zhao <j.zhao2k19@gmail.com>
* merge suggestion
Co-authored-by: Jacky Zhao <j.zhao2k19@gmail.com>
* merge suggestion
Co-authored-by: Jacky Zhao <j.zhao2k19@gmail.com>
* merge suggestion
Co-authored-by: Jacky Zhao <j.zhao2k19@gmail.com>
* merge suggestion
Co-authored-by: Jacky Zhao <j.zhao2k19@gmail.com>
* formatting...
* Fixing manifest path, all these nits hiding the actual issues .-.
* Offline fallback page through plugins, most things taken from 404 Plugin
* adding Offline Plugin to config
* formatting...
* Turned offline off as default and removed offline.md
---------
Co-authored-by: Jacky Zhao <j.zhao2k19@gmail.com>
commit 27a6087dd5
Author: rwutscher <richard.wutscher@gmail.com>
Date: Tue Sep 19 21:26:30 2023 +0200
fix: tag regex no longer includes purely numerical 'tags' (#485 )
* fix: tag regex no longer includes purely numerical 'tags'
* fix: formatting
* fix: use guard in findAndReplace() instead of expanding the regex
commit 1bf7e3d8b3
Author: Jacky Zhao <j.zhao2k19@gmail.com>
Date: Tue Sep 19 10:22:39 2023 -0700
fix(nit): make defaultOptions on explorer not a function
commit cc31a40b0c
Author: David Fischer <david@konst.fish>
Date: Tue Sep 19 18:25:51 2023 +0200
feat: support changes in system theme (#484 )
* feat: support changes in system theme
* fix: run prettier
* fix: add content/.gitkeep
commit 0d3cf29226
Author: Ben Schlegel <31989404+benschlegel@users.noreply.github.com>
Date: Mon Sep 18 23:32:00 2023 +0200
docs: fix explorer example (#483 )
2023-09-21 21:40:37 +02:00
Ben Schlegel
715446272a
feat: add basic satori og image generation
2023-09-19 19:41:42 +02:00
Ben Schlegel
5962a56aac
Merge remote-tracking branch 'upstream/v4' into v4
2023-09-18 11:12:42 +02:00
Ben Schlegel
6a2e0b3ad3
fix: bad visibility for last explorer item ( #478 )
...
* fix: bad visibility for last explorer item
* feat(explorer): add pseudo element for observer
2023-09-17 22:04:44 +02:00
Ben Schlegel
e67f409ec1
Merge pull request #479 from benschlegel/explorer-config
...
feat(explorer): add config for custom sort/map/filter functions
2023-09-17 21:36:04 +02:00
Ben Schlegel
4afb099bf3
docs: fix examples
2023-09-17 21:32:23 +02:00
Ben Schlegel
6914d4b40c
docs: fix intra page links
2023-09-17 21:20:09 +02:00
Christian Gill
af41f34bfd
fix(slug): Handle question mark ( #481 )
2023-09-17 11:02:00 -07:00
Ben Schlegel
7ac772fca8
fix: darkmode scroll bars ( #480 )
2023-09-17 10:29:20 -07:00
Ben Schlegel
5cc9253c41
docs(explorer): write docs for new features
2023-09-17 16:41:23 +02:00
Ben Schlegel
94a04ab1c9
fix(explorer): filter function in ExplorerNode
2023-09-17 15:51:08 +02:00
Ben Schlegel
9358f73f1c
fix: display name for file nodes
2023-09-17 12:41:06 +02:00
Ben Schlegel
f7029012df
feat: black magic
...
add config for `order` array, which determines the order in which all passed config functions for explorer will get executed in.
functions will now dynamically be called on `fileTree` via array accessor (e.g. fileTree["sort"].call(...)) with corresponding function from options being passed to call)
2023-09-16 21:58:38 +02:00
Ben Schlegel
fea352849c
fix: create deep copy of file passed into tree
2023-09-16 19:45:21 +02:00
Ben Schlegel
3d8c470c0d
feat(explorer): implement map fn argument
...
Add a function for mapping over all FileNodes as an option for `Explorer`
2023-09-16 19:35:27 +02:00
Ben Schlegel
31d16fbd2c
feat(explorer): integrate filter option
2023-09-16 19:18:59 +02:00
Ben Schlegel
036a33f70b
fix: use correct import for QuartzPluginData
2023-09-16 17:47:44 +02:00
Ben Schlegel
58aea1cb07
feat: implement filter function for explorer
2023-09-16 17:28:58 +02:00
Ben Schlegel
c7d3474ba8
feat(explorer): add config to support custom sort fn
2023-09-16 12:40:19 +02:00
Ben Schlegel
a5729828e0
Merge remote-tracking branch 'upstream/v4' into v4
2023-09-16 10:03:23 +02:00
Yuto Nagata
422ba5c365
fix: umami analytics date attribute ( #477 )
2023-09-15 19:17:20 -07:00
Jacky Zhao
9ae6343dd0
Revert "fix: use git dates by default, @napi/git is fast enough"
...
This reverts commit 5dcb7e83fc .
2023-09-15 10:33:38 -07:00
Ben Schlegel
af6314a05d
Merge remote-tracking branch 'upstream/v4' into v4
2023-09-15 18:46:38 +02:00
Jacky Zhao
5dcb7e83fc
fix: use git dates by default, @napi/git is fast enough
2023-09-15 09:46:06 -07:00