| assets/styles/base.scss | ●●●●● patch | view | raw | blame | history | |
| content/notes/hosting.md | ●●●●● patch | view | raw | blame | history | |
| layouts/partials/textprocessing.html | ●●●●● patch | view | raw | blame | history |
assets/styles/base.scss
@@ -85,7 +85,7 @@ } img { width: 100%; max-width: 100%; border-radius: 3px; margin: 1em 0; } content/notes/hosting.md
@@ -3,9 +3,11 @@ tags: - setup weight: -1 aliases: - hosting --- ## GitHub Pages ## Hosting on GitHub Pages Quartz is designed to be effortless to deploy. If you forked and cloned Quartz directly from the repository, everything should already be good to go! Follow the steps below. ### Enable GitHub Actions @@ -13,6 +15,8 @@ *Enable GitHub Actions* ![[notes/images/github-actions.png|200]] ### Enable GitHub Pages Head to the 'Settings' tab of your forked repository and go to the 'Pages' tab. layouts/partials/textprocessing.html
@@ -27,10 +27,8 @@ {{$inner := . | strings.TrimPrefix "![[" | strings.TrimSuffix "]]" }} {{$split := split $inner "|"}} {{$path := index $split 0 | relURL}} {{$reference := split $path "#"}} {{$title := index $reference 0}} {{$display := default $title (index $split 1)}} {{$img := printf "<img src=\"%s\" title=\"%s\">" $path $display}} {{$width := index $split 1}} {{$img := printf "<img src=\"%s\" width=\"%s\" />" $path (default "auto" $width)}} {{$content = replace $content . $img}} {{else}} {{$inner := . | strings.TrimPrefix "[[" | strings.TrimSuffix "]]" }}