浏览代码

Give a name to the video template

This is useful for debugging.
Lucas Stadler 9 年之前
父节点
当前提交
712df77694
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      go/blog/blog.go

+ 1 - 1
go/blog/blog.go

@ -417,7 +417,7 @@ var textTmpl = template.Must(baseTmpl.New("text").
417 417
</article>
418 418
`))
419 419
420
var videoTmpl = template.Must(baseTmpl.Parse(`
420
var videoTmpl = template.Must(baseTmpl.New("video").Parse(`
421 421
<article id="{{ .Id }}" class="video">
422 422
	{{- template "title" . }}
423 423
	<iframe width="560" height="315" src="https://www.youtube.com/embed/{{ .URL }}" frameborder="0" allowfullscreen></iframe>