jeremykidwell.info/layouts/index.html
2017-09-12 21:38:49 +01:00

145 lines
5.8 KiB
HTML
Executable file

<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
{{ partial "meta.html" . }}
<base href="{{ .Site.BaseURL }}">
<title>{{ .Site.Title }}</title>
<link rel="canonical" href="{{ .Permalink }}">
<link href="{{ .RSSLink }}" rel="alternate" type="application/rss+xml" title="{{ .Site.Title }}" />
{{ partial "head_includes.html" . }}
</head>
<body>
<div id="topbar">
<div class="wrapper">
<header>
{{ partial "sidebar.html" . }}
</header>
</div>
</div>
<div class="wrapper">
<div class="units-row">
<!-- First Column -->
<div class="unit-66">
<div class="units-row-end">
<div class="unit-33 dateblock">
&nbsp;
</div>
<div class="unit-66">
<p></p>
</div>
</div>
<<<<<<< HEAD
{{ range first 4 ((where .Data.Pages.ByDate "Section" "blog").Reverse) }}
=======
{{ range first 5 ((where .Data.Pages.ByDate "Section" "blog").Reverse) }}
>>>>>>> ad061bf5da969819ab07a42ecac5fa2069916a04
<div class="units-row-end">
<div class="unit-33 dateblock">
<h3><a href="{{ .Permalink }}">{{ .Title }}</a></h3>
<h4>{{ .Date.Format "2 January 2006" }}</h4>
</div>
<div class="unit-66">
{{ if .Truncated }}
{{ .Summary }}
<p class="text-right"><a href="{{ .RelPermalink }}">Read More…</a></p>
{{ else }}
{{ .Content }}
{{ end }}
</div>
</div>
{{ end }}
<hr>
<div class="units-row-end">
<div class="unit-33 dateblock">&nbsp;</div>
</div>
</div>
<!-- Second Column -->
<div class="unit-33">
<!-- First Pane -->
<h3>Recent Papers</h3>
<ul class="compact fa-ul">
{{ range first 5 (where .Data.Pages.ByDate "Section" "publications").Reverse }}
<li><i class="fa-li fa {{ if eq .Type "unpublished" }}fa-file-o {{ else if eq .Params.kind "book" }}fa-book {{ else }}fa-file {{ end }} fa-fw" style="color:#03396c;font-size:80%;padding-top:6px;"></i> {{ .Params.citation | safeHTML }}
<a href="{{ .Permalink }}" class="badge badge-small">Abstract</a>
{{ if isset .Params "file" }}<a href="{{.Site.BaseURL}}files/papers/{{ .Params.file }}" class="badge badge-small"><i class="fa fa-file-pdf-o"></i>&nbsp;pdf</a>{{ end }}
</li>
{{ end }}
</ul>
<footer class="group">
<nav class="navbar navbar-right"><a href="/publications">&rarr; More Papers</a></nav>
</footer>
<!-- Second Pane -->
<h3>Recent &amp; Upcoming Presentations</h3>
<ul class="compact fa-ul">
{{ range (where .Data.Pages.ByDate "Section" "presentations").Reverse }}
{{ if (ge .Date.Unix .Now.Unix) }}
{{ if (le .Date.Unix (add .Now.Unix 10368000)) }}
<li><i class="fa-li fa fa-comment-o fa-fw" style="color:#b00;font-size:80%;padding-top:6px;"></i><a href="{{ .Permalink }}"><em>{{ .Title | safeHTML }}</em></a>, {{ .Params.host | safeHTML }} ({{ .Date.Format "2 January 2006" }}). {{ partial "comingsoon.html" . }}
</li>
{{ end }}
{{ end }}
{{ if (ge .Now.Unix .Date.Unix ) }}
{{ if (le .Now.Unix (add .Date.Unix 12368000)) }}
<li><i class="fa-li fa fa-comment-o fa-fw" style="color:#e88;font-size:80%;padding-top:6px;"></i><a href="{{ .Permalink }}"><em>{{ .Title | safeHTML }}</em></a>, {{ .Params.host | safeHTML }} ({{ .Date.Format "2 January 2006" }}).
</li>
{{ end }}
{{ end }}
{{ end }}
</ul>
<footer class="group">
<nav class="navbar navbar-right"><a href="/presentations">&rarr; More Presentations</a></nav>
</footer>
<!-- Third Pane -->
<h3>Current Teaching</h3>
<ul class="compact fa-ul">
{{ range (where .Data.Pages.ByDate "Section" "teaching").Reverse }}
{{ if (ge .Date.Unix now.Unix) }}
{{ if (le .Date.Unix (add now.Unix 7776000)) }}
<li><i class="fa-li fa fa-mortar-board fa-fw" style="color:#03396c;font-size:80%;padding-top:6px;"></i><a href="{{ .Permalink }}"><span class="caps">{{ .Title }}</span></a>, {{ .Date.Format "January" }}&ndash;{{ .Params.enddate | dateFormat "January 2006" }}. {{ partial "comingsoon.html" . }}
</li>
{{ end }}
{{ end }}
{{ end }}
{{ range (where .Data.Pages.ByDate "Section" "teaching").Reverse }}
{{ if (le .Date.Unix now.Unix) }}
{{ if (le now.Unix (add .Date.Unix .Params.duration)) }}
<li><i class="fa-li fa fa-mortar-board fa-fw" style="color:#03396c;font-size:80%;padding-top:6px;"></i><a href="{{ .Permalink }}"><span class="caps">{{ .Title }}</span></a>, {{ .Date.Format "January" }}&ndash;{{ .Params.enddate | dateFormat "January 2006" }}. {{ partial "nowon.html" . }}
</li>
{{ end }}
{{ end }}
{{ end }}
{{ range (where .Data.Pages.ByDate "Section" "teaching").Reverse }}
{{ $classend := (add .Date.Unix .Params.duration) }}
{{ if (ge now.Unix $classend ) }}
{{ if (le now.Unix (add $classend 10368000)) }}
<li><i class="fa-li fa fa-mortar-board fa-fw" style="color:#03396c;font-size:80%;padding-top:6px;"></i><a href="{{ .Permalink }}"><span class="caps">{{ .Title }}</span></a>, {{ .Date.Format "January" }}&ndash;{{ .Params.enddate | dateFormat "January 2006" }}. <span class="badge badge-small">completed</span>
</li>
{{ end }}
{{ end }}
{{ end }}
</ul>
<footer class="group">
<nav class="navbar navbar-right"><br /><a href="/teaching">&rarr; Other Classes</a></nav>
</footer>
<!-- End of third pane -->
</div>
</div>
</div><!-- /end .wrapper -->
<hr class="separator">
{{ partial "whatisthis.html" . }}
{{ partial "foot.html" . }}
</body>
</html>