From 78f4cdbe109308fa33cb87387952aef5a528ebbe Mon Sep 17 00:00:00 2001 From: Jacky Zhao <j.zhao2k19@gmail.com> Date: Sat, 19 Aug 2023 23:40:02 +0000 Subject: [PATCH] avoid 404 on icon for spa navigations with anchors --- content/migrating from Quartz 3.md | 8 ++++++-- 1 files changed, 6 insertions(+), 2 deletions(-) diff --git a/content/migrating from Quartz 3.md b/content/migrating from Quartz 3.md index c2e4c4e..4af4868 100644 --- a/content/migrating from Quartz 3.md +++ b/content/migrating from Quartz 3.md @@ -5,13 +5,17 @@ As you already have Quartz locally, you don't need to fork or clone it again. Simply just checkout the alpha branch, install the dependencies, and import your old vault. ```bash -git checkout v4-alpha +git checkout v4 +git pull upstream v4 npm i npx quartz create ``` When running `npx quartz create`, you will be prompted as to how to initialize your content folder. Here, you can choose to import or link your previous content folder and Quartz should work just as you expect it to. +> [!note] +> If the existing content folder you'd like to use is at the _same_ path on a different branch, clone the repo again somewhere at a _different_ path in order to use it. + ## Key changes 1. **Removing Hugo and `hugo-obsidian`**: Hugo worked well for earlier versions of Quartz but it also made it hard for people outside of the Golang and Hugo communities to fully understand what Quartz was doing under the hood and be able to properly customize it to their needs. Quartz 4 now uses a Node-based static-site generation process which should lead to a much more helpful error messages and an overall smoother user experience. @@ -23,4 +27,4 @@ - Some HTML layout may not be the same between Quartz 3 and Quartz 4. If you depended on a particular HTML hierarchy or class names, you may need to update your custom CSS to reflect these changes. - If you customized the layout of Quartz 3, you may need to translate these changes from Go templates back to JSX as Quartz 4 no longer uses Hugo. For components, check out the guide on [[creating components]] for more details on this. -- You will also need to update your deploy scripts. See the [[hosting]] guide for more details. \ No newline at end of file +- You will also need to update your deploy scripts. See the [[hosting]] guide for more details. -- Gitblit v1.10.0