You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/configuration.md
+6-5Lines changed: 6 additions & 5 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -27,7 +27,7 @@ This part of the configuration concerns anything that can affect the whole site.
27
27
-`analytics`: what to use for analytics on your site. Values can be
28
28
-`null`: don't use analytics;
29
29
-`{ provider: 'google', tagId: '<your-google-tag>' }`: use Google Analytics;
30
-
-`{ provider: 'plausible' }` (managed) or `{ provider: 'plausible', host: '<your-plausible-host>' }` (self-hosted): use [Plausible](https://plausible.io/);
30
+
-`{ provider: 'plausible' }` (managed) or `{ provider: 'plausible', host: 'https://<your-plausible-host>' }` (self-hosted, make sure to include the `https://` protocol prefix): use [Plausible](https://plausible.io/);
31
31
-`{ provider: 'umami', host: '<your-umami-host>', websiteId: '<your-umami-website-id>' }`: use [Umami](https://umami.is/);
-`{ provider: 'posthog', apiKey: '<your-posthog-project-apiKey>', host: '<your-posthog-host>' }`: use [Posthog](https://posthog.com/);
@@ -41,11 +41,12 @@ This part of the configuration concerns anything that can affect the whole site.
41
41
-`ignorePatterns`: a list of [glob](<https://en.wikipedia.org/wiki/Glob_(programming)>) patterns that Quartz should ignore and not search through when looking for files inside the `content` folder. See [[private pages]] for more details.
42
42
-`defaultDateType`: whether to use created, modified, or published as the default date to display on pages and page listings.
43
43
-`theme`: configure how the site looks.
44
-
-`cdnCaching`: If`true` (default), use Google CDN to cache the fonts. This will generally will be faster. Disable (`false`) this if you want Quartz to download the fonts to be self-contained.
44
+
-`cdnCaching`: if`true` (default), use Google CDN to cache the fonts. This will generally be faster. Disable (`false`) this if you want Quartz to download the fonts to be self-contained.
45
45
-`typography`: what fonts to use. Any font available on [Google Fonts](https://fonts.google.com/) works here.
46
-
-`header`: Font to use for headers
47
-
-`code`: Font for inline and block quotes.
48
-
-`body`: Font for everything
46
+
-`title`: font for the title of the site (optional, same as `header` by default)
Copy file name to clipboardExpand all lines: docs/features/explorer.md
+11-8Lines changed: 11 additions & 8 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -43,9 +43,7 @@ Want to customize it even more?
43
43
- Removing explorer: remove `Component.Explorer()` from `quartz.layout.ts`
44
44
- (optional): After removing the explorer component, you can move the [[table of contents | Table of Contents]] component back to the `left` part of the layout
45
45
- Changing `sort`, `filter` and `map` behavior: explained in [[#Advanced customization]]
Copy file name to clipboardExpand all lines: docs/features/private pages.md
+2-4Lines changed: 2 additions & 4 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -13,9 +13,7 @@ There may be some notes you want to avoid publishing as a website. Quartz suppor
13
13
If you'd like to only publish a select number of notes, you can instead use [[ExplicitPublish]] which will filter out all notes except for any that have `publish: true` in the frontmatter.
14
14
15
15
> [!warning]
16
-
> Regardless of the filter plugin used, **all non-markdown files will be emitted and available publically in the final build.** This includes files such as images, voice recordings, PDFs, etc. One way to prevent this and still be able to embed local images is to create a folder specifically for public media and add the following two patterns to the ignorePatterns array.
17
-
>
18
-
> `"!(PublicMedia)**/!(*.md)", "!(*.md)"`
16
+
> Regardless of the filter plugin used, **all non-markdown files will be emitted and available publically in the final build.** This includes files such as images, voice recordings, PDFs, etc.
19
17
20
18
## `ignorePatterns`
21
19
@@ -28,7 +26,7 @@ Common examples include:
28
26
29
27
-`some/folder`: exclude the entire of `some/folder`
30
28
-`*.md`: exclude all files with a `.md` extension
31
-
-`!*.md` exclude all files that _don't_ have a `.md` extension
29
+
-`!(*.md)` exclude all files that _don't_ have a `.md` extension. Note that negations _must_ parenthesize the rest of the pattern!
32
30
-`**/private`: exclude any files or folders named `private` at any level of nesting
Reader Mode is a feature that allows users to focus on the content by hiding the sidebars and other UI elements. When enabled, it provides a clean, distraction-free reading experience.
8
+
9
+
## Configuration
10
+
11
+
Reader Mode is enabled by default. To disable it, you can remove the component from your layout configuration in `quartz.layout.ts`:
12
+
13
+
```ts
14
+
// Remove or comment out this line
15
+
Component.ReaderMode(),
16
+
```
17
+
18
+
## Usage
19
+
20
+
The Reader Mode toggle appears as a button with a book icon. When clicked:
21
+
22
+
- Sidebars are hidden
23
+
- Hovering over the content area reveals the sidebars temporarily
24
+
25
+
Unlike Dark Mode, Reader Mode state is not persisted between page reloads but is maintained during SPA navigation within the site.
26
+
27
+
## Customization
28
+
29
+
You can customize the appearance of Reader Mode through CSS variables and styles. The component uses the following classes:
30
+
31
+
-`.readermode`: The toggle button
32
+
-`.readerIcon`: The book icon
33
+
-`[reader-mode="on"]`: Applied to the root element when Reader Mode is active
0 commit comments