Kimberley Mackenzie e35e01f06f
Prettier Spike (#1517)
* Add Prettier set-up (no formatting in this commit).

* Manual fixes for Prettier issues.

* Run Prettier fix on non-markdown files.

* Incorporate Prettier PR feedback - update commands, re-apply new yaml styles, add editor config.

* Remove deprecated config item.

* Add dependency on prettier-plugin-go-template.

* reconcile changed file with prettier formatting.

* Add git blame ignore revs file to include Prettier formatting commit.

* Fix format issue with merge conflict.
2022-06-01 10:58:20 -07:00

12 lines
474 B
HTML

{{ if .context.Params.meta_video }}
<div class="my-8">
{{ with .context.Params.meta_video }}
<video class="rounded shadow-lg" src="{{ .url }}" alt="{{ .Title }}" poster="{{ .poster }}" controls></video>
{{ end }}
</div>
{{ else if .context.Params.meta_image }}
<div class="my-8">
<img class="rounded" src="{{ (.context.Resources.GetMatch .context.Params.meta_image).RelPermalink }}" alt="{{ .Title }}" />
</div>
{{ end }}