mirror of
https://github.com/falsycat/ar.falsy.cat.git
synced 2024-12-26 00:14:51 +00:00
feat: image scaling (closes #131)
This commit is contained in:
parent
e884f4927f
commit
8b2fba895a
@ -85,7 +85,7 @@ table {
|
|||||||
}
|
}
|
||||||
|
|
||||||
img {
|
img {
|
||||||
width: 100%;
|
max-width: 100%;
|
||||||
border-radius: 3px;
|
border-radius: 3px;
|
||||||
margin: 1em 0;
|
margin: 1em 0;
|
||||||
}
|
}
|
||||||
|
@ -3,9 +3,11 @@ title: "Deploying Quartz to the Web"
|
|||||||
tags:
|
tags:
|
||||||
- setup
|
- setup
|
||||||
weight: -1
|
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.
|
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
|
### Enable GitHub Actions
|
||||||
@ -13,6 +15,8 @@ By default, GitHub disables workflows from running automatically on Forked Repos
|
|||||||
|
|
||||||
![Enable GitHub Actions](notes/images/github-actions.png)*Enable GitHub Actions*
|
![Enable GitHub Actions](notes/images/github-actions.png)*Enable GitHub Actions*
|
||||||
|
|
||||||
|
![[notes/images/github-actions.png|200]]
|
||||||
|
|
||||||
### Enable GitHub Pages
|
### Enable GitHub Pages
|
||||||
|
|
||||||
Head to the 'Settings' tab of your forked repository and go to the 'Pages' tab.
|
Head to the 'Settings' tab of your forked repository and go to the 'Pages' tab.
|
||||||
|
@ -27,10 +27,8 @@
|
|||||||
{{$inner := . | strings.TrimPrefix "![[" | strings.TrimSuffix "]]" }}
|
{{$inner := . | strings.TrimPrefix "![[" | strings.TrimSuffix "]]" }}
|
||||||
{{$split := split $inner "|"}}
|
{{$split := split $inner "|"}}
|
||||||
{{$path := index $split 0 | relURL}}
|
{{$path := index $split 0 | relURL}}
|
||||||
{{$reference := split $path "#"}}
|
{{$width := index $split 1}}
|
||||||
{{$title := index $reference 0}}
|
{{$img := printf "<img src=\"%s\" width=\"%s\" />" $path (default "auto" $width)}}
|
||||||
{{$display := default $title (index $split 1)}}
|
|
||||||
{{$img := printf "<img src=\"%s\" title=\"%s\">" $path $display}}
|
|
||||||
{{$content = replace $content . $img}}
|
{{$content = replace $content . $img}}
|
||||||
{{else}}
|
{{else}}
|
||||||
{{$inner := . | strings.TrimPrefix "[[" | strings.TrimSuffix "]]" }}
|
{{$inner := . | strings.TrimPrefix "[[" | strings.TrimSuffix "]]" }}
|
||||||
|
Loading…
Reference in New Issue
Block a user