themes/apachecon/layouts/tracks/single.html (102 lines of code) (raw):
<!DOCTYPE HTML>
<html>
{{ partial "header.html" . }}
<body>
<!-- Header Wrapper -->
<div class="wrapper style1">
{{ partial "smallpageheader.html" . }}
<!-- Main -->
<div id="main" class="wrapper style4 page-session">
<!-- Content -->
<div id="content" class="container">
<section class="session">
<header class="major">
<h2 class="text-center">{{.Title}}</h2>
<hr></hr>
<h3>{{i18n "trackchairs"}} : {{.Params.trackchairs}}</h3>
</header>
<article>{{.Content}}</article>
{{$fn := .File.TranslationBaseName}}
{{ $bigtracks := "bigdata" }}
{{ $day := "" }}
{{ range $page_index, $page_val := sort .Site.Pages "Date" "asc" }}
{{if in $bigtracks .Params.track}} <!--do nothing here-->
{{else}}
{{if eq $fn .Params.track}}
{{ $pageDay := dateFormat "2006-01-02" .Date }}
{{ if eq $pageDay $day }}
{{else}}
{{if $day}}</dl>
{{end}}
<dl>
<dt class="session-date" style="float: left;"><h3 class="lh-2em">{{ $pageDay }}</h3></dt>
<dd class="session-list">
{{end}}
<p>
<!-- @TODO: link to session list of the day -->
<span>{{dateFormat "15:04 GMT+8" .Date}}</span>
<a href="{{.Permalink}}" title="{{.Title}}">{{.Title}}</a>
<sub>{{.Params.stype}}</sub>
<!-- @TODO: link to info page of the speaker -->
<span>{{if .Params.speaker}} {{.Params.speaker}} {{else}} {{.Params.presenters}} {{end}}</span>
</p>
{{ $day = $pageDay }}
{{end}}
{{end}}
{{end}}
</dd>
{{ range $page_index, $page_val := sort .Site.Pages "Date" "asc" }}
{{if in $bigtracks .Params.track}}
{{if eq "A" .Params.room}}
{{if eq $fn .Params.track}}
{{ $pageDay := dateFormat "2006-01-02" .Date }}
{{ if eq $pageDay $day }}
{{else}}
{{if $day}}</dl>
{{end}}
<dl>
<dt class="session-date" style="float: left;"><h3 class="lh-2em">{{ $pageDay }}</h3>
<h3 class="lh-2em">ROOM : A</h3>
</dt>
<dd class="session-list">
{{end}}
<p>
<!-- @TODO: link to session list of the day -->
<span>{{dateFormat "15:04 GMT+8" .Date}}</span>
<a href="{{.Permalink}}" title="{{.Title}}">{{.Title}}</a>
<sub>{{.Params.stype}}</sub>
<!-- @TODO: link to info page of the speaker -->
<span>{{if .Params.speaker}} {{.Params.speaker}} {{else}} {{.Params.presenters}} {{end}}</span>
</p>
{{ $day = $pageDay }}
{{end}}
{{end}}
{{end}}
{{end}}
</dd>
{{ range $page_index, $page_val := sort .Site.Pages "Date" "asc" }}
{{if in $bigtracks .Params.track}}
{{if eq "B" .Params.room}}
{{if eq $fn .Params.track}}
{{ $pageDay := dateFormat "2006-01-02" .Date }}
{{ if eq $pageDay $day }}
{{else}}
{{if $day}}</dl>
{{end}}
<dl>
<dt class="session-date" style="float: left;"><h3 class="lh-2em">{{ $pageDay }}</h3>
<h3 class="lh-2em">ROOM : B</h3>
</dt>
<dd class="session-list">
{{end}}
<p>
<!-- @TODO: link to session list of the day -->
<span>{{dateFormat "15:04 GMT+8" .Date}}</span>
<a href="{{.Permalink}}" title="{{.Title}}">{{.Title}}</a>
<sub>{{.Params.stype}}</sub>
<!-- @TODO: link to info page of the speaker -->
<span>{{if .Params.speaker}} {{.Params.speaker}} {{else}} {{.Params.presenters}} {{end}}</span>
</p>
{{ $day = $pageDay }}
{{end}}
{{end}}
{{end}}
{{end}}
</dd>
</section>
</div>
</div>
{{ partial "footer.html" . }}
</body>
</html>