stop hardcoding images/ directory in content frontmatter

This commit is contained in:
jake committed 2020-04-16 09:34:58 -04:00
1 parent 9005c00112
commit 8537042ff1
28 files changed
+38 -26

No files matched your search

+1 -1
View File
@@ -3,7 +3,7 @@
<h1><a class="no-underline" href="{{ .Permalink }}">{{ .Title | markdownify }}</a></h1>
<video
{{ with .Resources.GetMatch "images/*.png" }}poster="{{ .Permalink }}"{{ end }}
{{ with .Resources.GetMatch "thumb.*" }}poster="{{ .Permalink }}"{{ end }}
controls crossorigin playsinline preload="none">
{{ with .Resources.GetMatch "*.webm" }}<source src="{{ .Permalink }}" type="video/webm">{{ end }}
{{ with .Resources.GetMatch "*.mp4" }}<source src="{{ .Permalink }}" type="video/mp4">{{ end }}