mirror of
https://github.com/yuzu-emu/shared-bulma-theme.git
synced 2024-11-25 23:05:41 +01:00
23 lines
719 B
HTML
23 lines
719 B
HTML
|
{{ $title := .Get 0 }}
|
||
|
<div class="columns is-bottom-marginless">
|
||
|
<div class="column is-bottom-paddingless juxtapose">
|
||
|
{{ range $param := last 2 .Params }}
|
||
|
<!-- image -->
|
||
|
{{ $items := split $param "|" }}
|
||
|
{{ $src := (index $items 0) }}
|
||
|
{{ $subtitle := (index $items 1) }}
|
||
|
{{ $split_src := split $src "." }}
|
||
|
{{ $extension := index $split_src (sub (len $split_src) 1) }}
|
||
|
{{- if eq $extension "png" -}}
|
||
|
<img src="{{ $src }}.jpg" alt="{{ $title }}">
|
||
|
{{- else -}}
|
||
|
<img src="{{ $src }}" alt="{{ $title }}">
|
||
|
{{- end -}}
|
||
|
{{ end }}
|
||
|
</div>
|
||
|
</div>
|
||
|
|
||
|
{{ if $title }}
|
||
|
<p class="has-text-centered is-italic has-text-grey-light">{{ $title }}</p>
|
||
|
{{ end }}
|