Sfoglia il codice sorgente

Give a name to the video template

This is useful for debugging.
Lucas Stadler 9 anni fa
parent
commit
712df77694
1 ha cambiato i file con 1 aggiunte e 1 eliminazioni
  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>