diff --git a/content/notes/hosting.md b/content/notes/hosting.md index 0227fde..a6725b7 100644 --- a/content/notes/hosting.md +++ b/content/notes/hosting.md @@ -10,7 +10,7 @@ Quartz is designed to be effortless to deploy. If you forked and cloned Quartz d ### Enable GitHub Actions By default, GitHub disables workflows from running automatically on Forked Repostories. Head to the 'Actions' tab of your forked repository and Enable Workflows to setup deploying your Quartz site! -![Enable GitHub Actions](/notes/images/github-actions.png)*Enable GitHub Actions* +![Enable GitHub Actions](notes/images/github-actions.png)*Enable GitHub Actions* ### Enable GitHub Pages diff --git a/layouts/_default/_markup/render-image.html b/layouts/_default/_markup/render-image.html new file mode 100644 index 0000000..ff4e8b3 --- /dev/null +++ b/layouts/_default/_markup/render-image.html @@ -0,0 +1,8 @@ +{{$src := .Destination | safeURL }} +{{$external := strings.HasPrefix $src "http" }} +{{- if $external -}} +{{ .Text }} +{{- else -}} +{{$fixedUrl := (cond (hasPrefix $src "/") $src (print "/" $src)) | urlize}} +{{ .Text }} +{{- end -}} diff --git a/layouts/partials/popover.html b/layouts/partials/popover.html index 37f0db4..32f019f 100644 --- a/layouts/partials/popover.html +++ b/layouts/partials/popover.html @@ -11,9 +11,6 @@ fetchData().then(({content}) => { const links = [...document.getElementsByClassName("internal-link")] links.forEach(li => { - console.log(li.dataset.src.replace(baseUrl, "")) - console.log(content[li.dataset.src.replace(baseUrl, "")]) - console.log(content) const linkDest = content[li.dataset.src.replace(baseUrl, "")] // const linkDest = content[li.dataset.src] if (linkDest) {