layouts: the contenttype is a function, not a field

Signed-off-by: Vincent Batts <vbatts@hashbangbash.com>
This commit is contained in:
Vincent Batts 2017-08-08 16:22:09 -04:00
parent 3c6deccbea
commit 23ead5239c
Signed by: vbatts
GPG Key ID: 10937E57733F1362
1 changed files with 2 additions and 2 deletions

View File

@ -209,7 +209,7 @@ var fileViewAudioTemplateHTML = `
{{if .}}
<a href="/f/{{.Filename}}">
<audio controls>
<source src="/f/{{.Filename}}" type="{{.ContentType}}">
<source src="/f/{{.Filename}}" />
Your browser does not support the video tag.
</audio>
</a>
@ -221,7 +221,7 @@ var fileViewVideoTemplateHTML = `
{{if .}}
<a href="/f/{{.Filename}}">
<video width="320" height="240" controls>
<source src="/f/{{.Filename}}" type="{{.ContentType}}">
<source src="/f/{{.Filename}}" />
Your browser does not support the video tag.
</video>
</a>