mirror of
https://github.com/jackyzha0/quartz.git
synced 2026-03-24 15:05:42 -05:00
Merge branch 'jackyzha0:hugo' into hugo
This commit is contained in:
commit
51c6dfd923
@ -117,7 +117,7 @@ const resultToHTML = ({ url, title, content }) => {
|
|||||||
const redir = (id, term) => {
|
const redir = (id, term) => {
|
||||||
const shouldTrim = PRODUCTION && SEARCH_ENABLED
|
const shouldTrim = PRODUCTION && SEARCH_ENABLED
|
||||||
const baseURLPrefix = shouldTrim ? "" : BASE_URL.replace(/\/$/g, "")
|
const baseURLPrefix = shouldTrim ? "" : BASE_URL.replace(/\/$/g, "")
|
||||||
const urlString = `${baseURLPrefix}${id}#:~:text=${encodeURIComponent(term)}/`
|
const urlString = `${baseURLPrefix}${id}#:~:text=${encodeURIComponent(term)}`
|
||||||
window.Million.navigate(
|
window.Million.navigate(
|
||||||
new URL(urlString),
|
new URL(urlString),
|
||||||
".singlePage",
|
".singlePage",
|
||||||
|
|||||||
@ -114,6 +114,10 @@ blockquote[class*="-callout"] > p:first-child {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
blockquote[class*="-callout"] > p:empty {
|
||||||
|
padding: 1.2em 35px;
|
||||||
|
}
|
||||||
|
|
||||||
$summary: summary, abstract, tldr;
|
$summary: summary, abstract, tldr;
|
||||||
$bug: bug;
|
$bug: bug;
|
||||||
$danger: danger, error;
|
$danger: danger, error;
|
||||||
|
|||||||
@ -10,7 +10,7 @@ This includes
|
|||||||
- 12 Distinct callout types (each with several aliases)
|
- 12 Distinct callout types (each with several aliases)
|
||||||
- Collapsable callouts
|
- Collapsable callouts
|
||||||
|
|
||||||
See [documentation on supported types and syntax here](https://help.obsidian.md/How+to/Use+callouts#Types).
|
See [documentation on supported types and syntax here](https://help.obsidian.md/Editing+and+formatting/Callouts).
|
||||||
|
|
||||||
## Showcase
|
## Showcase
|
||||||
|
|
||||||
|
|||||||
@ -18,5 +18,6 @@ Want to see what Quartz can do? Here are some cool community gardens :)
|
|||||||
- [oldwinterの数字花园](https://garden.oldwinter.top/)
|
- [oldwinterの数字花园](https://garden.oldwinter.top/)
|
||||||
- [SethMB Work](https://sethmb.xyz/)
|
- [SethMB Work](https://sethmb.xyz/)
|
||||||
- [Abhijeet's Math Wiki](https://abhmul.github.io/quartz/Math-Wiki/)
|
- [Abhijeet's Math Wiki](https://abhmul.github.io/quartz/Math-Wiki/)
|
||||||
|
- [Mike's AI Garden 🤖🪴](https://mwalton.me/)
|
||||||
|
|
||||||
If you want to see your own on here, submit a [Pull Request adding yourself to this file](https://github.com/jackyzha0/quartz/blob/hugo/content/notes/showcase.md)!
|
If you want to see your own on here, submit a [Pull Request adding yourself to this file](https://github.com/jackyzha0/quartz/blob/hugo/content/notes/showcase.md)!
|
||||||
|
|||||||
@ -1,5 +1,4 @@
|
|||||||
<script
|
<script
|
||||||
async
|
|
||||||
src="https://cdn.jsdelivr.net/npm/d3@6.7.0/dist/d3.min.js"
|
src="https://cdn.jsdelivr.net/npm/d3@6.7.0/dist/d3.min.js"
|
||||||
integrity="sha256-+7jaYCp29O1JusNWHaYtgUn6EhuP0VaFuswhNV06MyI="
|
integrity="sha256-+7jaYCp29O1JusNWHaYtgUn6EhuP0VaFuswhNV06MyI="
|
||||||
crossorigin="anonymous"
|
crossorigin="anonymous"
|
||||||
|
|||||||
@ -75,7 +75,7 @@
|
|||||||
<script src="https://cdn.jsdelivr.net/npm/@floating-ui/dom@1.2.1"></script>
|
<script src="https://cdn.jsdelivr.net/npm/@floating-ui/dom@1.2.1"></script>
|
||||||
{{ $popover := resources.Get "js/popover.js" | resources.Fingerprint "md5" |
|
{{ $popover := resources.Get "js/popover.js" | resources.Fingerprint "md5" |
|
||||||
resources.Minify }}
|
resources.Minify }}
|
||||||
<script async src="{{$popover.Permalink}}"></script>
|
<script defer src="{{$popover.Permalink}}"></script>
|
||||||
|
|
||||||
<!-- Optional scripts -->
|
<!-- Optional scripts -->
|
||||||
{{ if $data.enableCodeBlockTitle | default $.Site.Data.config.enableCallouts }}
|
{{ if $data.enableCodeBlockTitle | default $.Site.Data.config.enableCallouts }}
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user