Jacky Zhao
2022-04-03 4fd983277e36e323675e2d77048fb3daaa016dc6
fix: cjk support + demo page
6 files modified
1 files renamed
19 ■■■■■ changed files
assets/js/graph.js 2 ●●● patch | view | raw | blame | history
content/_index.md 3 ●●●● patch | view | raw | blame | history
content/notes/CJK + Latex Support (测试).md 5 ●●●● patch | view | raw | blame | history
content/notes/config.md 2 ●●●●● patch | view | raw | blame | history
content/notes/troubleshooting.md 2 ●●● patch | view | raw | blame | history
data/config.yaml 2 ●●● patch | view | raw | blame | history
layouts/partials/katex.html 3 ●●●●● patch | view | raw | blame | history
assets/js/graph.js
@@ -185,7 +185,7 @@
  const labels = graphNode.append("text")
    .attr("dx", 12)
    .attr("dy", ".35em")
    .text((d) => content[decodeURI(d.id).replace(/\s+/g, '-')]?.title || d.id.replace("-", " "))
    .text((d) => content[d.id]?.title || d.id.replace("-", " "))
    .style("opacity", 0)
    .style("pointer-events", "none")
    .call(drag(simulation));
content/_index.md
@@ -1,12 +1,13 @@
---
title: 🪴 Quartz 3.2
---
Host your second brain and [digital garden](https://jzhao.xyz/posts/networked-thought) for free. Quartz features
1. Extremely fast full-text search by pressing `ctrl` + `k`
2. Wikilink support
3. Display for backlinks of each note
4. [CJK + Latex Support](notes/CJK%20+%20Latex%20Test%20(测试).md)
4. Built-in [CJK + Latex Support (测试)](notes/CJK%20+%20Latex%20Support%20(测试).md)
5. Fully customizable local graph view
6. Endlessly powerful page and theme customization using CSS
7. Automatically generated tag and section lists of content
content/notes/CJK + Latex Support (测试).md
File was renamed from content/notes/CJK + Latex Test (测试).md
@@ -1,5 +1,5 @@
---
title: "CJK + Latex Test (测试)"
title: "CJK + Latex Support (测试)"
---
## Chinese, Japanese, Korean Support
@@ -36,3 +36,6 @@
a & b & c
\end{bmatrix}
$$
## RTL
More information on configuring RTL languages like Arabic in the [config](notes/config.md) page
content/notes/config.md
@@ -49,6 +49,8 @@
Still having problems? Checkout our [FAQ and Troubleshooting guide](notes/troubleshooting.md).
## Multilingual
[CJK + Latex Support (测试)](notes/CJK%20+%20Latex%20Support%20(测试).md) comes out of the box with Quartz.
Want to support languages that read from right-to-left (like Arabic)? Hugo (and by proxy, Quartz) supports this natively.
Follow the steps [Hugo provides here](https://gohugo.io/content-management/multilingual/#configure-languages) and modify your `config.toml`
content/notes/troubleshooting.md
@@ -7,7 +7,7 @@
While you're here, join our [Discord](https://discord.gg/cRFFHYye7t) :)
### Does Quartz have Latex support?
Yes! See [CJK + Latex Test (测试)](CJK%20+%20Latex%20Test%20(测试).md) for a brief demo.
Yes! See [CJK + Latex Support (测试)](notes/CJK%20+%20Latex%20Support%20(测试).md) for a brief demo.
### Can I use \<Obsidian Plugin\> in Quartz?
Unless it produces direct Markdown output in the file, no. There currently is no way to bundle plugin code with Quartz.
data/config.yaml
@@ -6,7 +6,7 @@
  Host your second brain and digital garden for free. Quartz features extremely fast full-text search,
  Wikilink support, backlinks, local graph, tags, and link previews.
page_title:
  "🪴 Quartz .2"
  "🪴 Quartz 3.2"
links:
  - link_name: Twitter
    link: https://twitter.com/_jzhao
layouts/partials/katex.html
@@ -5,15 +5,12 @@
<script>
  document.addEventListener("DOMContentLoaded", function() {
    renderMathInElement(document.body, {
      // customised options
      // • auto-render specific keys, e.g.:
      delimiters: [
        {left: '$$', right: '$$', display: true},
        {left: '$', right: '$', display: false},
        {left: '\\(', right: '\\)', display: false},
        {left: '\\[', right: '\\]', display: true}
      ],
      // • rendering keys, e.g.:
      throwOnError : false
    });
  });