mirror of
https://github.com/golang/go
synced 2024-11-06 05:26:11 -07:00
dc0000626d
Change-Id: I974ec7a2caccfca3aff18836d6495597e17664e7 Reviewed-on: https://go-review.googlesource.com/2533 Reviewed-by: Andrew Gerrand <adg@golang.org>
61 lines
1.3 KiB
Cheetah
61 lines
1.3 KiB
Cheetah
{/* This is the slide template. It defines how presentations are formatted. */}
|
|
|
|
{{define "root"}}
|
|
<!DOCTYPE html>
|
|
<html>
|
|
<head>
|
|
<title>{{.Title}}</title>
|
|
<meta charset='utf-8'>
|
|
<script src='/static/slides.js'></script>
|
|
</head>
|
|
|
|
<body style='display: none'>
|
|
|
|
<section class='slides layout-widescreen'>
|
|
|
|
<article>
|
|
<h1>{{.Title}}</h1>
|
|
{{with .Subtitle}}<h3>{{.}}</h3>{{end}}
|
|
{{if not .Time.IsZero}}<h3>{{.Time.Format "2 January 2006"}}</h3>{{end}}
|
|
{{range .Authors}}
|
|
<div class="presenter">
|
|
{{range .TextElem}}{{elem $.Template .}}{{end}}
|
|
</div>
|
|
{{end}}
|
|
</article>
|
|
|
|
{{range $i, $s := .Sections}}
|
|
<!-- start of slide {{$s.Number}} -->
|
|
<article>
|
|
{{if $s.Elem}}
|
|
<h3>{{$s.Title}}</h3>
|
|
{{range $s.Elem}}{{elem $.Template .}}{{end}}
|
|
{{else}}
|
|
<h2>{{$s.Title}}</h2>
|
|
{{end}}
|
|
</article>
|
|
<!-- end of slide {{$i}} -->
|
|
{{end}}{{/* of Slide block */}}
|
|
|
|
<article>
|
|
<h3>Thank you</h3>
|
|
{{range .Authors}}
|
|
<div class="presenter">
|
|
{{range .Elem}}{{elem $.Template .}}{{end}}
|
|
</div>
|
|
{{end}}
|
|
</article>
|
|
|
|
</section>
|
|
|
|
</body>
|
|
{{if .PlayEnabled}}
|
|
<script src='/play.js'></script>
|
|
{{end}}
|
|
</html>
|
|
{{end}}
|
|
|
|
{{define "newline"}}
|
|
<br>
|
|
{{end}}
|