This commit is contained in:
parent
51efa66cd1
commit
8253e02383
4 changed files with 3 additions and 2 deletions
|
|
@ -18,7 +18,7 @@
|
|||
<a href="{{ .Get "link" }}"{{ with .Get "target" }} target="{{ . }}"{{ end }}{{ with .Get "rel" }} rel="{{ . }}"{{ end }}>
|
||||
{{- end -}}
|
||||
|
||||
{{ $options := or (.Get "options") "500x500 center" }}
|
||||
{{ $options := or (.Get "options") "600x600 center" }}
|
||||
{{ $permalink := "" }}
|
||||
{{ if hasPrefix (.Get "src") "https://" }}
|
||||
{{ $permalink = .Get "src" }}
|
||||
|
|
@ -28,6 +28,7 @@
|
|||
|
||||
<img
|
||||
class="figure-img img-fluid"
|
||||
style="max-width: 500px"
|
||||
src="{{ $permalink }}"
|
||||
{{- if or (.Get "alt") (.Get "caption") }}
|
||||
alt="{{ with .Get "alt" }}{{ . }}{{ else }}{{ .Get "caption" | markdownify| plainify }}{{ end }}"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue