refacture all the things!
This commit is contained in:
parent
9a7b9ba2c0
commit
2e3a02af0c
12 changed files with 169 additions and 153 deletions
|
@ -30,6 +30,6 @@
|
|||
<links/>
|
||||
</event>
|
||||
</room>
|
||||
</day>
|
||||
</day>
|
||||
{{end -}}
|
||||
</schedule>
|
||||
|
|
|
@ -3,7 +3,7 @@
|
|||
<div class="row">
|
||||
<div class="col-lg-8 col-lg-offset-2 col-md-10 col-md-offset-1">
|
||||
<article role="main" class="blog-post">
|
||||
{{ partial "talk-infobox" . }}
|
||||
{{ partial "talk-infobox" . }}
|
||||
{{ .Content }}
|
||||
|
||||
{{ if .Params.tags }}
|
||||
|
@ -11,7 +11,7 @@
|
|||
{{ range .Params.tags }}
|
||||
<a href="{{ $.Site.LanguagePrefix | absURL }}/tags/{{ . | urlize }}/">{{ . }}</a>
|
||||
{{ end }}
|
||||
</div>
|
||||
</div><!--/.blog-tags-->
|
||||
{{ end }}
|
||||
|
||||
{{ if .Site.Params.socialShare }}
|
||||
|
@ -19,24 +19,24 @@
|
|||
<section id="social-share">
|
||||
<ul class="list-inline footer-links">
|
||||
{{ partial "share-links" . }}
|
||||
</ul>
|
||||
</section>
|
||||
</ul><!--/.social-share-->
|
||||
</section><!--/.list-inline /.footer-links-->
|
||||
{{ end }}
|
||||
</article>
|
||||
</article><!--/.blog-post-->
|
||||
|
||||
{{ if ne .Type "page" }}
|
||||
<ul class="pager blog-pager">
|
||||
{{ if .PrevInSection }}
|
||||
<li class="previous">
|
||||
<a href="{{ .PrevInSection.Permalink }}" data-toggle="tooltip" data-placement="top" title="{{ .PrevInSection.Title }}">← {{ i18n "previousPost" }}</a>
|
||||
</li>
|
||||
</li><!--/.previous-->
|
||||
{{ end }}
|
||||
{{ if .NextInSection }}
|
||||
<li class="next">
|
||||
<a href="{{ .NextInSection.Permalink }}" data-toggle="tooltip" data-placement="top" title="{{ .NextInSection.Title }}">{{ i18n "nextPost" }} →</a>
|
||||
</li>
|
||||
</li><!--/.next-->
|
||||
{{ end }}
|
||||
</ul>
|
||||
</ul><!--/.pager /.blog-pager-->
|
||||
{{ end }}
|
||||
|
||||
|
||||
|
@ -44,16 +44,16 @@
|
|||
{{ if .Site.DisqusShortname }}
|
||||
<div class="disqus-comments">
|
||||
{{ template "_internal/disqus.html" . }}
|
||||
</div>
|
||||
</div><!--/.disqus-comments-->
|
||||
{{ end }}
|
||||
{{ if .Site.Params.staticman }}
|
||||
<div class="staticman-comments">
|
||||
{{ partial "staticman-comments.html" . }}
|
||||
</div>
|
||||
</div><!--/.staticman-comments-->
|
||||
{{ end }}
|
||||
{{ end }}
|
||||
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div><!--/.col-lg-8 /.col-lg-offset-2 /.col-md-10 /.col-md-offset-1-->
|
||||
</div><!--/.row-->
|
||||
</div><!--/.container-->
|
||||
{{ end }}
|
||||
|
|
|
@ -31,7 +31,7 @@ DTEND;TZID=Europe/Berlin:{{.Params.dtend}}
|
|||
RRULE:{{.Params.rrule}}
|
||||
{{if isset .Params "rrule_excludes" }}
|
||||
{{range .Params.rrule_excludes }}
|
||||
EXDATE;TZID=Europe/Berlin:{{.}}
|
||||
EXDATE;TZID=Europe/Berlin:{{.}}
|
||||
{{end -}}
|
||||
{{end -}}
|
||||
LOCATION:{{with .Params.location}}{{.}}{{else}}CCCB{{end}}
|
||||
|
|
|
@ -1,29 +1,29 @@
|
|||
{{ $series := or (.Get 0) $.Page.Params.series }}
|
||||
<table>
|
||||
<tr>
|
||||
<th>No.</th>
|
||||
<th>Date</th>
|
||||
<th>Speaker</th>
|
||||
<th>Topic</th>
|
||||
<th>Video</th>
|
||||
</tr>
|
||||
{{ range $ind,$art := $.Site.Pages.ByDate.Reverse }}
|
||||
{{ if eq $art.Params.series $series }}
|
||||
<tr>
|
||||
<tr>
|
||||
<th>No.</th>
|
||||
<th>Date</th>
|
||||
<th>Speaker</th>
|
||||
<th>Topic</th>
|
||||
<th>Video</th>
|
||||
</tr>
|
||||
{{ range $ind,$art := $.Site.Pages.ByDate.Reverse }}
|
||||
{{ if eq $art.Params.series $series }}
|
||||
<tr>
|
||||
<td>{{ $art.Params.no }}</td>
|
||||
<td>{{ dateFormat "02.01.2006" $art.Params.event.start }}</td>
|
||||
{{ if isset $art.Params "speaker_url" }}
|
||||
<td><a href="{{ $art.Params.speaker_url }}">{{ $art.Params.speaker }}</a></td>
|
||||
{{ else }}
|
||||
{{ else }}
|
||||
<td>{{ $art.Params.speaker }}</td>
|
||||
{{ end }}
|
||||
<td><a href="{{ $art.Permalink }}">{{ $art.Params.subtitle }}</a></td>
|
||||
{{ if $art.Params.recording }}
|
||||
<td><a href="{{ $art.Params.recording }}"><i class="fa fa-video fa-fw"></i></a></td>
|
||||
{{ else }}
|
||||
<td><i class="fa fa-video-slash fa-fw"></i></a></td>
|
||||
{{ end }}
|
||||
</tr>
|
||||
{{ end }}
|
||||
{{ end }}
|
||||
<td><a href="{{ $art.Permalink }}">{{ $art.Params.subtitle }}</a></td>
|
||||
{{ if $art.Params.recording }}
|
||||
<td><a href="{{ $art.Params.recording }}"><i class="fa fa-video fa-fw"></i></a></td>
|
||||
{{ else }}
|
||||
<td><i class="fa fa-video-slash fa-fw"></i></a></td>
|
||||
{{ end }}
|
||||
</tr>
|
||||
{{ end }}
|
||||
{{ end }}
|
||||
</table>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue