first commit
This commit is contained in:
commit
13e2fd6e74
125 changed files with 19943 additions and 0 deletions
122
layouts/index.html
Executable file
122
layouts/index.html
Executable file
|
@ -0,0 +1,122 @@
|
|||
<!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">
|
||||
<div class="unit-66">
|
||||
<div class="units-row-end">
|
||||
<div class="unit-33 dateblock">
|
||||
|
||||
</div>
|
||||
<div class="unit-66">
|
||||
<p></p>
|
||||
</div>
|
||||
</div>
|
||||
{{ range first 2 ((where .Data.Pages.ByDate "Section" "blog").Reverse) }}
|
||||
<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"> </div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="unit-33">
|
||||
|
||||
<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> pdf</a>{{ end }}
|
||||
</li>
|
||||
{{ end }}
|
||||
</ul>
|
||||
|
||||
<footer class="group">
|
||||
<nav class="navbar navbar-right"><a href="/publications">→ More Papers</a></nav>
|
||||
</footer>
|
||||
|
||||
<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" }}–{{ .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" }}–{{ .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" }}–{{ .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">→ Other Classes</a></nav>
|
||||
</footer>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
</div><!-- /end .wrapper -->
|
||||
|
||||
<hr class="separator">
|
||||
|
||||
{{ partial "whatisthis.html" . }}
|
||||
|
||||
{{ partial "foot.html" . }}
|
||||
</body>
|
||||
</html>
|
Loading…
Add table
Add a link
Reference in a new issue