mirror of
https://github.com/Noratrieb/website.git
synced 2026-01-14 17:05:02 +01:00
never use a submodule ever again
This commit is contained in:
parent
830045ee2f
commit
bf24af3431
77 changed files with 12557 additions and 1 deletions
3
blog/themes/terminal/layouts/shortcodes/image.html
Normal file
3
blog/themes/terminal/layouts/shortcodes/image.html
Normal file
|
|
@ -0,0 +1,3 @@
|
|||
{{ if .Get "src" }}
|
||||
<img src="{{ .Get "src" | safeURL }}" {{ with .Get "alt" }} alt="{{ . | plainify }}" {{ end }} class="{{ with .Get "position"}}{{ . }}{{ else -}} left {{- end }}" {{ with .Get "style" }} style="{{ . | safeCSS }}" {{ end }} {{ with .Get "width" }} width="{{ . | plainify }}" {{ end }} {{ with .Get "height" }} height="{{ . | plainify }}" {{ end }} />
|
||||
{{ end }}
|
||||
Loading…
Add table
Add a link
Reference in a new issue