1
mirror of https://github.com/jakejarvis/jarv.is.git synced 2025-07-17 11:55:31 -04:00

update /previously, add Comic Neue webfont

This commit is contained in:
2020-04-27 10:43:52 -04:00
parent c52a357e29
commit 32c4e1140d
9 changed files with 42 additions and 7 deletions

View File

@@ -2,12 +2,13 @@
{{- with .Inner }}
<figure>
{{ with $.Get "link" }}<a class="no-underline" href="{{ . }}"{{ if strings.HasPrefix . "http" }} target="_blank" rel="noopener"{{ end }}>{{ end }}
<picture>
{{ with $.Get "link" }}<a class="no-underline" href="{{ . }}"{{ if strings.HasPrefix . "http" }} target="_blank" rel="noopener"{{ end }}>{{ end }}
<img src="{{ $optimized.Permalink }}" width="{{ $optimized.Width }}" height="{{ $optimized.Height }}"
alt="{{ . | $.Page.RenderString | plainify | safeHTML }}" title="{{ . | $.Page.RenderString | plainify | safeHTML }}">
{{ if $.Get "link" }}</a>{{ end }}
</picture>
{{ if $.Get "link" }}</a>{{ end }}
<figcaption>{{ . | $.Page.RenderString | safeHTML }}</figcaption>
</figure>
{{- else -}}