mirror of
https://github.com/jakejarvis/jarv.is.git
synced 2025-07-17 16:05:33 -04:00
valid HTML - don't use px in img width and don't put figures in paragraphs
This commit is contained in:
@@ -1,16 +1,14 @@
|
|||||||
<p>
|
|
||||||
{{ if .Get "caption"}}
|
{{ if .Get "caption"}}
|
||||||
<figure>
|
<figure>
|
||||||
<picture>
|
<picture>
|
||||||
|
{{ else }}
|
||||||
|
<p>
|
||||||
{{ end }}
|
{{ end }}
|
||||||
<img
|
<img src="{{ .Get "src" }}" alt="{{ .Get "alt" }}"{{ if .Get "width"}} width="{{ .Get "width" }}"{{ end }}{{ if .Get "caption"}} title="{{ .Get "caption"}}"{{ end }}>
|
||||||
src="{{ .Get "src" }}"
|
|
||||||
alt="{{ .Get "alt" }}"
|
|
||||||
{{ if .Get "width"}} width="{{ .Get "width" }}px"{{ end }}
|
|
||||||
{{ if .Get "caption"}} title="{{ .Get "caption"}}"{{ end }}>
|
|
||||||
{{ if .Get "caption"}}
|
{{ if .Get "caption"}}
|
||||||
</picture>
|
</picture>
|
||||||
<figcaption>{{ .Get "caption" }}</figcaption>
|
<figcaption>{{ .Get "caption" }}</figcaption>
|
||||||
</figure>
|
</figure>
|
||||||
|
{{ else }}
|
||||||
|
</p>
|
||||||
{{ end }}
|
{{ end }}
|
||||||
</p>
|
|
Reference in New Issue
Block a user