Add graph to note

This commit is contained in:
David Eisinger
2023-04-30 22:09:39 -04:00
parent f0b2f48840
commit 918d900be4
3 changed files with 15 additions and 8 deletions

View File

@@ -66,6 +66,10 @@ sup {
line-height: 0;
}
figure {
margin: 0;
}
.nowrap {
white-space: nowrap;
}
@@ -74,13 +78,9 @@ sup {
display: flex;
gap: 1em;
figure {
margin: 0;
img {
width: 100%;
height: auto;
}
img {
width: 100%;
height: auto;
}
}

View File

@@ -1,6 +1,11 @@
{{ $orig := .Page.Resources.GetMatch (printf "*%s*" (.Get 0)) }}
{{ $options := .Get 1 }}
{{ $img := $orig.Fill $options }}
{{ $img := $orig.Resize $options }}
{{ if findRE `\d+x\d+` $options }}
{{ $img = $orig.Fill $options }}
{{ end }}
<figure>
<a href="{{ $orig.RelPermalink }}">