Merge branch 'jackyzha0:hugo' into hugo

This commit is contained in:
hiyori 2023-04-18 05:04:52 -05:00 committed by GitHub
commit 51c6dfd923
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
6 changed files with 8 additions and 4 deletions

View File

@ -117,7 +117,7 @@ const resultToHTML = ({ url, title, content }) => {
const redir = (id, term) => {
const shouldTrim = PRODUCTION && SEARCH_ENABLED
const baseURLPrefix = shouldTrim ? "" : BASE_URL.replace(/\/$/g, "")
const urlString = `${baseURLPrefix}${id}#:~:text=${encodeURIComponent(term)}/`
const urlString = `${baseURLPrefix}${id}#:~:text=${encodeURIComponent(term)}`
window.Million.navigate(
new URL(urlString),
".singlePage",

View File

@ -114,6 +114,10 @@ blockquote[class*="-callout"] > p:first-child {
}
}
blockquote[class*="-callout"] > p:empty {
padding: 1.2em 35px;
}
$summary: summary, abstract, tldr;
$bug: bug;
$danger: danger, error;

View File

@ -10,7 +10,7 @@ This includes
- 12 Distinct callout types (each with several aliases)
- 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

View File

@ -18,5 +18,6 @@ Want to see what Quartz can do? Here are some cool community gardens :)
- [oldwinterの数字花园](https://garden.oldwinter.top/)
- [SethMB Work](https://sethmb.xyz/)
- [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)!

View File

@ -1,5 +1,4 @@
<script
async
src="https://cdn.jsdelivr.net/npm/d3@6.7.0/dist/d3.min.js"
integrity="sha256-+7jaYCp29O1JusNWHaYtgUn6EhuP0VaFuswhNV06MyI="
crossorigin="anonymous"

View File

@ -75,7 +75,7 @@
<script src="https://cdn.jsdelivr.net/npm/@floating-ui/dom@1.2.1"></script>
{{ $popover := resources.Get "js/popover.js" | resources.Fingerprint "md5" |
resources.Minify }}
<script async src="{{$popover.Permalink}}"></script>
<script defer src="{{$popover.Permalink}}"></script>
<!-- Optional scripts -->
{{ if $data.enableCodeBlockTitle | default $.Site.Data.config.enableCallouts }}