first commit

This commit is contained in:
Jeremy Kidwell 2017-06-26 20:57:02 +01:00
commit 13e2fd6e74
125 changed files with 19943 additions and 0 deletions

142
layouts/404.html Executable file
View file

@ -0,0 +1,142 @@
{{ partial "head.html" . }}
{{ $baseurl := .Site.BaseURL }}
<body>
<div id="topbar">
<div class="wrapper">
<header>
<nav class="navbar">
<ul>
<li class="hd"><span><a href="{{ $baseurl }}"><b>consequently.org</b></a></span></li>
<li><a href="{{ $baseurl }}/news">News</a></li>
<li><a href="{{ $baseurl }}/writing">Writing</a></li>
<li><a href="{{ $baseurl }}/presentation">Presentations</a></li>
<li><a href="{{ $baseurl }}/class">Classes</a></li>
<li><a href="#searchsite">Search</a></li>
<li><a href="#about">About</a></li>
</ul>
</nav>
</header>
</div>
</div>
<div class="wrapper">
<div class="units-row">
<div class="unit-50">
<h2>404: Page Not Found</h2>
<p class="big">
There is no page here at the address you requested. Perhaps try a search to find what you are looking for?
</p>
<form method="get" action="http://duckduckgo.com/">
<input type="search" name="q" maxlength="255" placeholder="Search consequently.org">
<input type="hidden" name="sites" value="consequently.org"/>
<input type="hidden" name="ka" value="Alegreya"/>
<input type="hidden" name="k7" value="#faf8f8"/>
<input type="hidden" name="kj" value="#b33"/>
<input type="hidden" name="ky" value="#fafafa"/>
<input type="hidden" name="kx" value="b"/>
<input type="hidden" name="ko" value="-1"/>
<input type="hidden" name="k1" value="-1"/>
<input type="hidden" name="kt" value="Alegreya Sans"/>
<input type="submit" value="DuckDuckGo Search" style="visibility: hidden;" /></form>
</div>
<div class="unit-50">
<h2>Recent News</h2>
<ul class="compact fa-ul">
{{ range first 10 (where .Data.Pages.ByDate "Section" "news").Reverse }}
<li><i class="fa-li fa fa-newspaper-o fa-fw" style="color:#b00;font-size:80%;padding-top:6px;"></i> <a href="{{ .Permalink }}">{{ .Title | safeHTML }}</a>{{if not (isset .Params "grlog") }}, <time><em>{{ .Date.Format "January 2, 2006" }}</em></time>{{ end }} </li>
{{ end }}
</ul>
<footer class="group">
<nav class="navbar navbar-right"><a href="news">&rarr; All News</a></nav>
</footer>
<h2>Recent Writing</h2>
<ul class="compact fa-ul">
{{ range first 5 (where .Data.Pages.ByDate "Section" "writing").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:#e88;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}}/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="writing">&rarr; All Writing</a></nav>
</footer>
<h2>Recent &amp; Upcoming Presentations</h2>
<ul class="compact fa-ul">
{{ range (where .Data.Pages.ByDate "Section" "presentation").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="presentation">&rarr; All Presentations</a></nav>
</footer>
<h2>Recent &amp; Upcoming Classes</h2>
<ul class="compact fa-ul">
{{ range (where .Data.Pages.ByDate "Section" "class").Reverse }}
{{ if (ge .Date.Unix now.Unix) }}
{{ if (le .Date.Unix (add now.Unix 7776000)) }}
<li><i class="fa-li fa {{ if eq .Params.host "Coursera" }}fa-laptop {{ else }}fa-mortar-board {{ end }}fa-fw" style="color:#b00;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" "class").Reverse }}
{{ if (le .Date.Unix now.Unix) }}
{{ if (le now.Unix (add .Date.Unix .Params.duration)) }}
<li><i class="fa-li fa {{ if eq .Params.host "Coursera" }}fa-laptop {{ else }}fa-mortar-board {{ end }}fa-fw" style="color:#e88;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" "class").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 {{ if eq .Params.host "coursera" }}fa-laptop {{ else }}fa-mortar-board {{ end }}fa-fw" style="color:#e88;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"><a href="class">&rarr; All Classes</a></nav>
</footer>
</div>
</div>
</div><!-- /end .wrapper -->
<hr class="separator">
{{ partial "whatisthis.html" . }}
{{ partial "foot.html" . }}
</body>
</html>

4
layouts/archive/li.html Executable file
View file

@ -0,0 +1,4 @@
<li>
<h3 id="archive"><a href="{{ .RelPermalink }}">{{ .Title }}</a></h3>
<div class="meta">{{ .Date.Format "Jan 2, 2006" }}</div>
</li>

36
layouts/archive/single.html Executable file
View file

@ -0,0 +1,36 @@
{{ template "partials/header.html" . }}
<body lang="en" itemscope itemtype="http://schema.org/Article">
<div id="topbar">
<div class="wrapper">
<header>
{{ template "partials/sidebar.html" . }}
{{ $baseurl := .Site.BaseURL }}
</header>
</div>
</div>
<div class="wrapper">
<div class="units-row">
<div class="unit-60">
{{ range $index, $value := (where .Site.Pages "Type" "blog").GroupByDate "January 2006" }}
<h3 class="center">{{ .Key }}</h3>
<p>
{{ range .Pages }} &middot; {{if not (isset .Params "grlog") }}<time><em>{{ .Date.Format "January 2" }}</em></time>, {{ end }}<a href="{{ .Permalink }}">{{ .Title | safeHTML }}</a> {{ end }} </p>
{{ end }}
{{ template "partials/allcats.html"}}
</div>
<div class="unit-30">
<p><em>Links to all the blog entires on this site since 2002.</em></p>
</div>
</div>
<hr class="separator">
{{ partial "whatisthis.html" . }}
{{ partial "footer.html" . }}

6
layouts/blog/li.html Executable file
View file

@ -0,0 +1,6 @@
<div class = "post">
<li>
<h3 id="archive"><a href="{{ .RelPermalink }}">{{ .Title }}</a></h3>
<div class="meta">{{ .Date.Format "Jan 2, 2006" }}</div>
</li>
</div>

49
layouts/blog/single.html Executable file
View file

@ -0,0 +1,49 @@
{{ partial "header.html" . }}
{{ $baseurl := .Site.BaseURL }}
<body>
<div id="topbar">
<div class="wrapper">
<header>
{{ partial "sidebar.html" . }}
</header>
</div>
</div>
<div class="wrapper">
<div class="units-row">
<div class="unit-20">&nbsp;</div>
<div class="unit-60"><h2><a href="">{{ .Title }}</a></h2></div>
</div>
<div class="units-row">
<div class="unit-20 dateblock">{{if not (isset .Params "grlog") }}<h4>{{ .Date.Format "January 2, 2006" }}</h4>{{ else }}&nbsp;{{ end }}
{{ range .Params.categories }}
&middot; <a class="small" href="{{ $baseurl }}categories/{{ . | urlize }}">{{ . }}</a>
{{ end }}
</div>
<div class="unit-60">
{{ .Content }}
{{ partial "meta_aside.html" . }}
{{ partial "allcats.html" . }}
</div>
</div>
</div>
<hr class="separator">
{{ partial "whatisthis.html" . }}
{{ partial "foot.html" . }}
</body>
</html>

11
layouts/blog/summary.html Executable file
View file

@ -0,0 +1,11 @@
<article class="postlist">
<header>
<div class="meta"><h4>{{ .Date.Format "Mon, Jan 2, 2006" }}</h4></div>
<h2><a href='{{ .Permalink }}'> {{ .Title }}</a> </h2>
</header>
{{ .Summary }}
<footer>
<a href='{{ .Permalink }}'><nobr>Read more →</nobr></a>
</footer>
</article>

122
layouts/index.html Executable file
View 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">
&nbsp;
</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">&nbsp;</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>&nbsp;pdf</a>{{ end }}
</li>
{{ end }}
</ul>
<footer class="group">
<nav class="navbar navbar-right"><a href="/publications">&rarr; 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" }}&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>
</div>
</div>
</div><!-- /end .wrapper -->
<hr class="separator">
{{ partial "whatisthis.html" . }}
{{ partial "foot.html" . }}
</body>
</html>

37
layouts/indexes/blog.html Executable file
View file

@ -0,0 +1,37 @@
{{ partial "header.html" . }}
<body lang="en">
<div id="topbar">
<div class="wrapper">
<header>
{{ partial "sidebar.html" . }}
{{ $baseurl := .Site.BaseURL }}
</header>
</div>
</div>
<div class="wrapper">
<div class="units-row">
<div class="unit-70">
<!-- Column of even-numbered posts -->
{{ range (.Paginator 10).Pages }}
{{ .Render "summary" }}
{{ end }}
</div>
<div class="unit-30">
<h3></h3>
<p><em>Sociology and other distractions, since 2002. View <a href="blog/archives/">all posts by date</a>, or <a href="/categories/">an index of posts by category</a></em>.</p>
</div>
</div>
</div>
{{partial "paging.html" . }}
<br />
<hr class="separator">
{{ partial "whatisthis.html" . }}
{{ partial "foot.html" . }}

34
layouts/indexes/category.html Executable file
View file

@ -0,0 +1,34 @@
{{ partial "header.html" . }}
<body lang="en" itemscope itemtype="http://schema.org/Article">
<div id="topbar">
<div class="wrapper">
<header>
{{ template "partials/sidebar.html" . }}
{{ $baseurl := .Site.BaseURL }}
</header>
</div>
</div>
<div class="wrapper">
<p class="lead"><a href="/categories/">Categories</a> &rtrif; {{ .Title }}</p>
<ul class="post" id="list">
{{ range (.Paginator 10).Pages }}
{{ .Render "summary"}}
{{ end }}
</ul>
</div>
{{partial "paging.html" . }}
<hr class="separator">
{{ partial "whatisthis.html" . }}
{{ partial "foot.html" . }}

36
layouts/indexes/indexes.html Executable file
View file

@ -0,0 +1,36 @@
{{ partial "header.html" . }}
<body lang="en" itemscope itemtype="http://schema.org/Article">
<div id="topbar">
<div class="wrapper">
<header>
{{ template "partials/sidebar.html" . }}
{{ $baseurl := .Site.BaseURL }}
</header>
</div>
</div>
<div class="wrapper">
<div class="units-row">
<div class="unit-centered unit-80">
<h2>Category Index</h2>
<p class="capitalize">
{{ $data := .Data }}
{{ range $key,$value := .Data.Index.ByCount }}
&middot; <a href="categories/{{ $value.Name | urlize }}"> {{ $value.Name }} </a> ({{ $value.Count }})
{{ end }}
</p>
{{ partial "allcats.html" . }}
</div>
</div>
</div>
<hr class="separator">
{{ partial "whatisthis.html" . }}
{{ partial "foot.html" . }}
</body>
</html>

19
layouts/indexes/page.html Executable file
View file

@ -0,0 +1,19 @@
{{ partial "header.html" . }}
<body lang="en" class="theme-base-0f">
{{ partial "sidebar.html" . }}
<div class="content container">
<section id="main">
<div>
<ul id="list">
{{ range first 10 .Data.Pages }}
{{ .Render "summary"}}
{{ end }}
</ul>
</div>
</section>
{{ partial "footer.html" . }}

41
layouts/other/single.html Executable file
View file

@ -0,0 +1,41 @@
{{ template "partials/header.html" . }}
<body lang="en" itemscope itemtype="http://schema.org/Article">
<div id="topbar">
<div class="wrapper">
<header>
{{ template "partials/sidebar.html" . }}
{{ $baseurl := .Site.BaseURL }}
</header>
</div>
</div>
<div class="wrapper">
<div class="units-row">
<div class="unit-20">&nbsp;</div>
<div class="unit-60"><h2><a href="">{{ .Title | safeHTML }}</a></h2></div>
</div>
<div class="units-row">
<div class="unit-20 dateblock"><p>{{.Params.author}}, {{ .Params.citation | safeHTML }}</p>
{{ if .Params.doi }}<p class="small"><a href="http://dx.doi.org/{{.Params.doi}}">doi:{{.Params.doi}}</a></p>{{ end }}
{{ if .Params.file }}<p><a href="{{.Site.BaseURL}}files/papers/{{.Params.file}}" class="badge badge-red"><i class="fa fa-file-pdf-o"></i>&nbsp;download pdf</a></p>{{ end }}
</div>
<div class="unit-60">
{{ .Content }}
<hr>
{{ if .PrevInSection }}
<a href="{{.PrevInSection.Permalink}}"> &laquo;&nbsp;{{.PrevInSection.Title}}</a> | {{ end }}<a href="{{ $baseurl }}/publications"><em>Publications List</em></a>{{ if .NextInSection }} | <a href="{{.NextInSection.Permalink}}">{{.NextInSection.Title}}&nbsp;&raquo; </a>
{{ end }}
</div>
</div>
</div>
<hr class="separator">
{{ partial "whatisthis.html" . }}
{{ partial "footer.html" . }}

28
layouts/page/single.html Executable file
View file

@ -0,0 +1,28 @@
{{ partial "header.html" . }}
<body lang="en" itemscope itemtype="http://schema.org/Article">
<div id="topbar">
<div class="wrapper">
<header>
{{ template "partials/sidebar.html" . }}
{{ $baseurl := .Site.BaseURL }}
</header>
</div>
</div>
<div class="wrapper">
<div class="units-row">
<div class="unit-centered unit-80">
<article class="post" id="content">
{{ .Content }}
</article>
</div>
</div>
</div>
<hr class="separator">
{{ partial "whatisthis.html" . }}
{{ partial "foot.html" . }}

1
layouts/partials/allcats.html Executable file
View file

@ -0,0 +1 @@
<a href="/blog/archives/">All Posts by Date</a> &middot; <a href="/categories/">All Posts by Category</a>

9
layouts/partials/archive.html Executable file
View file

@ -0,0 +1,9 @@
<ul class="post" id="list">
{{ range .Site.Pages }}
<h3 id="archive" class="shortend shorttop"><a href="{{ .RelPermalink }}">{{ .Title }}</a></h3>
<p>{{ .Date.Format "Jan 2, 2006" }}</p>
{{ end }}
</ul>

View file

@ -0,0 +1 @@
{{ if ge .Date.Unix now.Unix }}{{ if (le .Date.Unix (add now.Unix 7776000)) }}<span class="badge badge-small badge-yellow">coming soon</span>{{ end }}{{ end }}

2
layouts/partials/details.html Executable file
View file

@ -0,0 +1,2 @@

4
layouts/partials/foot.html Executable file
View file

@ -0,0 +1,4 @@
<footer id="footer">
<section class="wrapper small">Powered by <a href="http://gohugo.io">Hugo</a> and <a href="http://imperavi.com/kube/">Kube</a>. &copy; Jeremy Kidwell 2017&ndash;{{ now.Format "2006" }}.
</section>
</footer>

View file

@ -0,0 +1,6 @@
<footer>
</footer>
</body>
</html>

5
layouts/partials/footer.html Executable file
View file

@ -0,0 +1,5 @@
<!-- Google Analytics -->
</body>
</html>

18
layouts/partials/head.html Executable file
View file

@ -0,0 +1,18 @@
<!DOCTYPE html>
<html>
<head>
<link href="http://gmpg.org/xfn/11" rel="profile">
<meta http-equiv="content-type" content="text/html; charset=utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>{{ .Title }}</title>
<!-- CSS -->
<link rel="stylesheet" href="{{ .Site.BaseURL }}/css/kube.css" />
<link rel="stylesheet" href="{{ .Site.BaseURL }}/css/demo.css" />
<link href="http://maxcdn.bootstrapcdn.com/font-awesome/4.3.0/css/font-awesome.min.css" rel="stylesheet">
<!-- Icons -->
<link rel="apple-touch-icon-precomposed" href="{{ .Site.BaseURL }}/apple-touch-icon.png">
<link rel="shortcut icon" href="{{ .Site.BaseURL }}/favicon.ico" />
<!-- RSS -->
<link href="{{ .RSSLink }}" rel="alternate" type="application/rss+xml" title="{{ .Site.Title }}" />
</script>
</head>

View file

@ -0,0 +1,5 @@
<link rel="stylesheet" href="/css/stylesheet-min.css" />
<link href="https://maxcdn.bootstrapcdn.com/font-awesome/4.3.0/css/font-awesome.min.css" rel="stylesheet">
{{ partial "javascripts.html" . }}
{{ partial "typekit.html" . }}

16
layouts/partials/header.html Executable file
View file

@ -0,0 +1,16 @@
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
{{ partial "meta.html" . }}
<base href="{{ .Site.BaseURL }}">
<title> {{ .Title }} </title>
<link rel="canonical" href="{{ .Permalink }}">
{{ if .RSSLink }}<link href="{{ .RSSLink }}" rel="alternate" type="application/rss+xml" title="{{ .Title }}" />{{ end }}
{{ partial "head_includes.html" . }}
<link rel="shortcut icon" href="/favicon.ico" type="image/x-icon" />
<link rel="apple-touch-icon" href="/apple-touch-icon.png" />
</head>

View file

@ -0,0 +1,28 @@
<!-- Javascript enhancements are included on a per-post basis using
flags set in the markdown file -->
<!--htmlwidgets and sankey framework. flag: footnotes-->
{{ if and (isset .Params "footnotes") (eq .Params.footnotes true) }}
<script src="//code.jquery.com/jquery-1.8.3.min.js"></script>
<script type="text/javascript" src="javascripts/bigfoot.js"></script>
<script type="text/javascript">$.bigfoot();</script>
{{ end }}
<!--htmlwidgets and sankey framework. flag:htmlwidgets -->
{{ if and (isset .Params "htmlwidgets") (eq .Params.htmlwidgets true) }}
<script src="javascripts/htmlwidgets-0.5/htmlwidgets.js"></script>
<script src="javascripts/d3-3.5.2/d3.min.js"></script>
<script src="javascripts/sankey-1/sankey.js"></script>
<script src="javascripts/sankeyNetwork-binding-0.2.8/sankeyNetwork.js"></script>
{{ end }}
<!--mathjax. flag:mathjax-->
{{ if and (isset .Params "mathjax") (eq .Params.mathjax true) }}
<script type="text/x-mathjax-config">
MathJax.Hub.Config({
tex2jax: {inlineMath: [['$','$'], ['\\(','\\)']]}
});
</script>
<script type="text/javascript" async src="https://cdn.mathjax.org/mathjax/latest/MathJax.js?config=TeX-MML-AM_CHTML"></script>
{{ end }}

18
layouts/partials/menu.html Executable file
View file

@ -0,0 +1,18 @@
<section id="menu">
<ul>
{{ range $indexname, $index := .Site.Indexes }}
<li><a href="/{{ $indexname | urlize }}">{{ $indexname }}</a>
<ul>
{{ range $key, $value := $index }}
<li> {{ $key }} </li>
<ul>
{{ range $value.Pages }}
<li hugo-nav="{{ .RelPermalink}}"><a href="{{ .Permalink}}"> {{ .LinkTitle }} </a> </li>
{{ end }}
</ul>
{{ end }}
</ul>
</li>
{{ end }}
</ul>
</section>

22
layouts/partials/meta.html Executable file
View file

@ -0,0 +1,22 @@
<meta http-equiv="X-UA-Compatible" content="IE=edge,partials=1">
<meta name="description" content="">
<meta name="HandheldFriendly" content="True">
<meta name="MobileOptimized" content="320">
<meta name="viewport" content="width=device-width, initial-scale=1 minimal-ui">
<meta name="description" content="{{ .Description }}">
<meta name="keywords" content="{{ range .Keywords }}{{ . }}, {{ end }}">
{{ range .Keywords }}<meta property="article:tag" content="{{ . }}">
{{ end }}
<!--Twitter Cards-->
<meta name="twitter:card" content="summary">
<!--<meta name="twitter:card" content="summary_large_image">-->
<meta name="twitter:site" content="@kidwellj">
<meta name="twitter:title" content="{{ .Title }} : jeremykidwell.info">
<meta name="twitter:creator" content="@kidwellj">
<meta name="twitter:description" content="{{ .Description }}">
<meta name="twitter:image:src" content="">
<meta name="twitter:domain" content="jeremykidwell.info">

View file

@ -0,0 +1,13 @@
{{ $baseurl := .Site.BaseURL }}
<ul class="pagination">
{{if .PrevInSection}}
<li><a href="{{.PrevInSection.Permalink}}">&laquo; <em>Previous</em> {{.PrevInSection.Title}}</a></li> {{end}}
{{if .NextInSection}}
<li><a href="{{.NextInSection.Permalink}}">&raquo; <em>Next</em> {{.NextInSection.Title}}</a></li>{{end}}
</ul>
<meta itemprop="wordCount" content="{{ .WordCount }}">
<meta itemprop="datePublished" content="{{ .Date.Format "2006-01-02" }}">
<meta itemprop="url" content="{{ .Permalink }}">

1
layouts/partials/nowon.html Executable file
View file

@ -0,0 +1 @@
{{ if (le .Date.Unix now.Unix) }}{{ if (le now.Unix (add .Date.Unix .Params.duration)) }}<span class="badge badge-small badge-green">now on</span>{{ end }}{{ end }}

26
layouts/partials/paging.html Executable file
View file

@ -0,0 +1,26 @@
<div class="wrapper">
<div class="units-row">
<div class="unit-centered unit-40">
<ul class="pagination">
{{ if .Paginator.HasNext }}
<li><a href="{{.Paginator.Next.URL}}">
« Older&nbsp;
</a>
</li>
{{ end }}
<li><span>Page {{.Paginator.PageNumber}} of {{.Paginator.TotalPages}}</span></li>
{{ if .Paginator.HasPrev }}
<li>
<a href="{{.Paginator.Prev.URL}}">
&nbsp;Newer »
</a>
</li>
{{ end }}
</ul>
{{ partial "allcats.html" . }}
</div>
</div>
</div>

9
layouts/partials/sidebar.html Executable file
View file

@ -0,0 +1,9 @@
<nav class="navbar">
<ul>
<li><a href="/">Jeremy Kidwell</a></li>
{{ $currentNode := . }}
{{ range .Site.Menus.main }}
<li><span> <a class="{{if or ($currentNode.IsMenuCurrent "main" .) ($currentNode.HasMenuCurrent "main" .) }} active{{end}}" href="{{.URL}}">{{ .Name }} </a></span>
{{ end }}
</ul>
</nav>

20
layouts/partials/social.html Executable file
View file

@ -0,0 +1,20 @@
<div id="fb-root"></div>
<script type="text/javascript">
(function(){
var twitterWidgets = document.createElement('script');
twitterWidgets.type = 'text/javascript';
twitterWidgets.async = true;
twitterWidgets.src = 'http://platform.twitter.com/widgets.js';
document.getElementsByTagName('head')[0].appendChild(twitterWidgets);
})();
</script>
<div class="social">
<span class="twitter">
<a href="https://twitter.com/share" class="twitter-share-button" data-lang="en"></a>
</span>
</div>

View file

3
layouts/partials/typekit.html Executable file
View file

@ -0,0 +1,3 @@
<!--Typekit ID-->
<script type="text/javascript" src="https://use.typekit.com/kpn7wwu.js"></script>
<script type="text/javascript">try{Typekit.load();}catch(e){}</script>

View file

@ -0,0 +1,39 @@
<div class="wrapper" style="font-size: 0.9em; line-height: 1.05em;">
<div class="units-row units-padding">
<div class="unit-40"><!--about-->
<h3>about</h3>
<figure class="image-left">
<img class="avatar" src="files/misc/jkpic.jpg" height="120" width="120">
</figure>
<p>I am Lecturer in <a href="http://www.birmingham.ac.uk/schools/ptr/index.aspx">Theological Ethics</a> at <a href="http://www.birmingham.ac.uk">the University of Birmingham</a>.</p>
</div><!--end about-->
<div class="unit-30"><!--contact-->
<h3>Where</h3>
<ul class="compact fa-ul">
<li><i class="fa-li fa fa-university fa-fw" style="color:#03396c;font-size:80%;padding-top:6px;"></i>Department of Theology and Religous Studies, University of Birmingham, Edgbaston, Birmingham, B15 2TT, UK.</li>
<li><i class="fa-li fa fa-envelope fa-fw" style="color:#03396c;font-size:80%;padding-top:6px;"></i><a href="mailto:j.kidwell@bham.ac.uk">j.kidwell@bham.ac.uk</a></li>
<li><i class="fa-li fa fa-twitter-square fa-fw" style="color:#03396c;font-size:80%;padding-top:6px;"></i><a href="http://twitter.com/kidwellj">@kidwellj</a> on Twitter.</li>
<li><i class="fa-li fa fa-github fa-fw" style="color:#03396c;font-size:80%;padding-top:6px;"></i><a href="http://github.com/kidwellj">On GitHub</a>.</li>
<li><i class=""></li>
</ul>
</div><!--end contact-->
<div class="unit-30"><!--Subscribe-->
<h3>subscribe</h3>
<p>To receive updates from this site, you can
subscribe to the <a href="/index.xml"><i class="fa fa-rss-square" style="color:#03396c;"></i>&nbsp;RSS feed</a> of all updates to the site in an RSS feed reader</p>
<h3>search</h3>
<a id="searchsite">
<form method="get" action="https://duckduckgo.com/">
<input type="search" name="q" maxlength="255" placeholder="Search the site">
<input type="hidden" name="sites" value="jeremykidwell.info"/>
<input type="hidden" name="k7" value="#faf8f8"/>
<input type="hidden" name="kj" value="#b33"/>
<input type="hidden" name="ky" value="#fafafa"/>
<input type="hidden" name="kx" value="b"/>
<input type="hidden" name="ko" value="-1"/>
<input type="hidden" name="k1" value="-1"/>
<input type="submit" value="DuckDuckGo Search" style="visibility: hidden;" /></form></a>
</div>
</div>
</div>
</div>

View file

@ -0,0 +1,42 @@
{{ template "partials/header.html" . }}
<body lang="en" itemscope itemtype="http://schema.org/Article">
<div id="topbar">
<div class="wrapper">
<header>
{{ template "partials/sidebar.html" . }}
{{ $baseurl := .Site.BaseURL }}
</header>
</div>
</div>
<div class="wrapper">
<div class="units-row">
<div class="unit-20">&nbsp;</div>
<div class="unit-60"><h2><a href="">{{ .Title }}</a></h2></div>
</div>
<div class="units-row">
<div class="unit-20 dateblock"><h4>{{ .Date.Format "January 2, 2006" }}</h4></div>
<div class="unit-60">
{{ .Content }}
<hr>
{{ if .PrevInSection }}
<a href="{{.PrevInSection.Permalink}}"> &laquo; &nbsp;{{.PrevInSection.Title}}</a>
{{ if .NextInSection }} | {{ end }}
{{ end }}
{{ if .NextInSection }}
<a href="{{.NextInSection.Permalink}}">{{.NextInSection.Title}}&nbsp;&raquo;</a>
{{ end }}
</div>
</div>
</div>
<hr class="separator">
{{ partial "whatisthis.html" . }}
{{ partial "footer.html" . }}

41
layouts/published/single.html Executable file
View file

@ -0,0 +1,41 @@
{{ template "partials/header.html" . }}
<body lang="en" itemscope itemtype="http://schema.org/Article">
<div id="topbar">
<div class="wrapper">
<header>
{{ template "partials/sidebar.html" . }}
{{ $baseurl := .Site.BaseURL }}
</header>
</div>
</div>
<div class="wrapper">
<div class="units-row">
<div class="unit-20">&nbsp;</div>
<div class="unit-60"><h2><a href="">{{ .Title | safeHTML }}</a></h2></div>
</div>
<div class="units-row">
<div class="unit-20 dateblock"><p>{{.Params.author}}, {{ .Params.citation | safeHTML }}</p>
{{ if .Params.doi }}<p class="small"><a href="http://dx.doi.org/{{.Params.doi}}">doi:{{.Params.doi}}</a></p>{{ end }}
{{ if .Params.file }}<p><a href="{{.Site.BaseURL}}files/papers/{{.Params.file}}" class="badge badge-red"><i class="fa fa-file-pdf-o"></i>&nbsp;download pdf</a></p>{{ end }}
</div>
<div class="unit-60">
{{ .Content }}
<hr>
{{ if .PrevInSection }}
<a href="{{.PrevInSection.Permalink}}"> &laquo;&nbsp;{{.PrevInSection.Title}}</a> | {{ end }}<a href="{{ $baseurl }}/publications"><em>Publications List</em></a>{{ if .NextInSection }} | <a href="{{.NextInSection.Permalink}}">{{.NextInSection.Title}}&nbsp;&raquo; </a>
{{ end }}
</div>
</div>
</div>
<hr class="separator">
{{ partial "whatisthis.html" . }}
{{ partial "footer.html" . }}

29
layouts/resources/list.html Executable file
View file

@ -0,0 +1,29 @@
{{ partial "header.html" . }}
<body lang="en" itemscope itemtype="http://schema.org/Article">
<div id="topbar">
<div class="wrapper">
<header>
{{ template "partials/sidebar.html" . }}
{{ $baseurl := .Site.BaseURL }}
</header>
</div>
</div>
<div class="wrapper">
<div class="units-row">
<div class="unit-centered unit-80">
<article class="post" id="content">
{{ .Content }}
</article>
</div>
</div>
</div>
<hr class="separator">
{{ partial "whatisthis.html" . }}
{{ partial "foot.html" . }}

43
layouts/retired/single.html Executable file
View file

@ -0,0 +1,43 @@
{{ template "partials/header.html" . }}
<body lang="en" itemscope itemtype="http://schema.org/Article">
<div id="topbar">
<div class="wrapper">
<header>
{{ template "partials/sidebar.html" . }}
{{ $baseurl := .Site.BaseURL }}
</header>
</div>
</div>
<div class="wrapper">
<div class="units-row">
<div class="unit-20">&nbsp;</div>
<div class="unit-60"><h2><a href="">{{ .Title | safeHTML }}</a></h2></div>
</div>
<div class="units-row">
<div class="unit-20 dateblock"><p>{{.Params.author}}, {{ .Params.citation | safeHTML }}</p>
{{ if .Params.doi }}<p class="small"><a href="http://dx.doi.org/{{.Params.doi}}">doi:{{.Params.doi}}</a></p>{{ end }}
{{ if .Params.file }}<p><a href="{{.Site.BaseURL}}files/papers/{{.Params.file}}" class="badge badge-red"><i class="fa fa-file-pdf-o"></i>&nbsp;download pdf</a></p>{{ end }}
</div>
<div class="unit-60">
{{ .Content }}
<hr>
{{ if .PrevInSection }}
<a href="{{.PrevInSection.Permalink}}"> &laquo;&nbsp;{{.PrevInSection.Title}}</a> | {{ end }}<a href="{{ $baseurl }}/publications"><em>Publications List</em></a>{{ if .NextInSection }} | <a href="{{.NextInSection.Permalink}}">{{.NextInSection.Title}}&nbsp;&raquo; </a>
{{ end }}
</div>
</div>
</div>
<hr class="separator">
{{ partial "whatisthis.html" . }}
{{ partial "footer.html" . }}

20
layouts/rss.xml Executable file
View file

@ -0,0 +1,20 @@
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
<channel>
<title>{{ .Title }} on jeremykidwell.info </title>
<link>{{ .Permalink }}</link>
<language>en-us</language>
<author>Jeremy Kidwell</author>
<rights>Copyright (c) Jeremy Kidwell.</rights>
<updated>{{ .Date.Format "Mon, 02 Jan 2006 15:04:05 MST" }}</updated>
{{ range first 10 .Data.Pages }}
<item>
<title>{{ .Title }}</title>
<link>{{ .Permalink }}</link>
<pubDate>{{ .Date.Format "Mon, 02 Jan 2006 15:04:05 MST" }}</pubDate>
<author>Jeremy Kidwell</author>
<guid>{{ .Permalink }}</guid>
<description>{{ .Content | html }}</description>
</item>
{{ end }}
</channel>
</rss>

120
layouts/section/publications.html Executable file
View file

@ -0,0 +1,120 @@
{{ partial "header.html" . }}
<body lang="en" itemscope itemtype="http://schema.org/Article">
<div id="topbar">
<div class="wrapper">
<header>
{{ template "partials/sidebar.html" . }}
{{ $baseurl := .Site.BaseURL }}
</header>
</div>
</div>
<div class="wrapper">
<div class="units-row">
<div lass="unit-100">
<p><a href="/vita.pdf"><em>Curriculum Vitae</em></a><a href="/vita.pdf" class="badge badge-small"><i class="fa fa-file-pdf-o"></i>&nbsp;&nbsp;pdf</a></p>
<p>Much of my research has been about exchange in human blood and organs, cultural goods, software, and ideas. My current work focuses on the moral order of market society, the effect of models and measurement on social classification, and the link between those two topics, especially in the consumer credit market. I'm also interested in techniques and methods for data visualization.</p>
</div>
</div>
</div>
<div class="wrapper">
<div class="units-row">
<div class="unit-50">
<h2>Working Papers</h2>
{{ range (where .Data.Pages "Type" "unpublished").GroupByDate "2006" "desc" }}
<div class="units-row">
<div class="unit-10">
<h3>{{ .Key }}</h3>
</div>
<div class="unit-90">
<ul class="compact fa-ul">
{{ range .Pages.ByDate.Reverse }}
<li><i class="fa-li fa fa-file-o 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>
</div>
</div>
{{ end }}
<h2>Articles and Book Chapters</h2>
{{ range (where .Data.Pages "Type" "published").GroupByDate "2006" "desc" }}
<div class="units-row">
<div class="unit-10">
<h3>{{ .Key }}</h3>
</div>
<div class="unit-90">
<ul class="compact fa-ul">
{{ range .Pages.ByDate.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>
</div>
</div>
{{ end }}
</div>
<div class="unit-50">
<h2>Retired Papers</h2>
<!-- Column of even-numbered items -->
{{ range (where .Data.Pages "Type" "retired").GroupByDate "2006" "desc" }}
<div class="units-row">
<div class="unit-10">
<h3>{{ .Key }}</h3>
</div>
<div class="unit-90">
<ul class="compact fa-ul">
{{ range .Pages.ByDate.Reverse }}
<li><i class="fa-li fa {{ if eq .Type "retired" }}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>
</div>
</div>
{{ end }}
<h2>Essays and Reviews</h2>
{{ range (where .Data.Pages "Type" "other").GroupByDate "2006" "desc" }}
<div class="units-row">
<div class="unit-10">
<h3>{{ .Key }}</h3>
</div>
<div class="unit-90">
<ul class="compact fa-ul">
{{ range .Pages.ByDate.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>
</div>
</div>
{{ end }}
</div>
</div>
</div>
<hr class="separator">
{{ partial "whatisthis.html" . }}
{{ partial "foot.html" . }}
</body>
</html>

51
layouts/section/teaching.html Executable file
View file

@ -0,0 +1,51 @@
{{ partial "header.html" . }}
<body lang="en" itemscope itemtype="http://schema.org/Article">
<div id="topbar">
<div class="wrapper">
<header>
{{ template "partials/sidebar.html" . }}
{{ $baseurl := .Site.BaseURL }}
</header>
</div>
</div>
<div class="wrapper">
<h2>Classes and Seminars</h2>
<div class="units-row">
<div class="unit-70">
{{ range .Data.Pages.GroupByDate "2006" }}
<div class="units-row">
<div class="unit-10">
<h3>{{ .Key }}</h3>
</div>
<div class="unit-90">
<ul class="fa-ul">
{{ range .Pages }}
<li><i class="fa-li fa fa-mortar-board fa-fw" style="color:#03396c;font-size:80%;padding-top:6px;"></i><a href="{{ .Permalink }}">
<a href="{{ .Permalink }}"><span class="caps">{{ .Title }}</span></a>
<p>{{ .Summary }}</p>
</li>
{{ end }}
</ul>
</div>
</div>
{{ end }}
</div>
<div class="unit-30">
<p><em>Some of the classes I have offered in recent years, including pointers to upcoming courses and other resources, when they are available. Classes are listed once but are typically taught more frequently than that.</em></p>
</div>
</div>
</div>
</div>
<hr class="separator">
{{ partial "whatisthis.html" . }}
{{ partial "foot.html" . }}
</body>
</html>

View file

@ -0,0 +1,11 @@
<ul class="compact fa-ul">
{{ $url := .Get "url" }}
{{ range getJSON $url }}
{{ $p := . }}
<li>
<p><strong><a href="{{ $p.html_url }}" target="_blank">{{ $p.name }}:</a></strong>
Stars: {{$p.stargazers_count}} &middot; Forks: {{$p.forks_count}} &middot; Size: {{$p.size}} &middot; Type: {{$p.language}} <br />
{{ $p.description }}</p>
</li>
{{ end }}
</ul>

View file

@ -0,0 +1,2 @@
{{ $lang := index .Params 0 }}
{{ highlight .Inner $lang "" }}

1
layouts/shortcodes/img.html Executable file
View file

@ -0,0 +1 @@
<img src="{{ index .Params "src" }}" />

1
layouts/shortcodes/scribd.html Executable file
View file

@ -0,0 +1 @@
<iframe class="scribd_iframe_embed" src="http://www.scribd.com/embeds/{{ index .Params 0 }}/content?start_page=1&view_mode=scroll&show_recommendations=false" data-auto-height="false" data-aspect-ratio="undefined" scrolling="no" id="doc_78753" width="100%" height="600" frameborder="0"></iframe>

View file

@ -0,0 +1,3 @@
<div class="embed slideshare">
<iframe src="http://www.slideshare.net/slideshow/embed_code/{{ index .Params 0 }}?rel=0" width="599" height="487" frameborder="0" marginwidth="0" marginheight="0" scrolling="no" style="border:1px solid #CCC;border-width:1px 1px 0;margin-bottom:5px" allowfullscreen webkitallowfullscreen mozallowfullscreen> </iframe>
</div>

View file

@ -0,0 +1 @@
<script async class="speakerdeck-embed" data-id="{{ index .Params 0 }}" data-ratio="1.33333333333333" src="//speakerdeck.com/assets/embed.js"></script>

3
layouts/shortcodes/vimeo.html Executable file
View file

@ -0,0 +1,3 @@
<div class="embed video-player">
<iframe src="http://player.vimeo.com/video/{{ index .Params 0 }}" width="640" height="385" frameborder="0" webkitAllowFullScreen mozallowfullscreen allowFullScreen></iframe>
</div>

View file

@ -0,0 +1,4 @@
<div class="embed video-player">
<iframe class="youtube-player" type="text/html" width="640" height="385" src="http://www.youtube.com/embed/{{ index .Params 0 }}" allowfullscreen frameborder="0">
</iframe>
</div>

4
layouts/teaching/li.html Executable file
View file

@ -0,0 +1,4 @@
<li>
<h3 id="teaching"><a href="{{ .RelPermalink }}">{{ .Title }}</a></h3>
<div class="meta">{{ .Date.Format "Jan 2, 2006" }}</div>
</li>

31
layouts/teaching/single.html Executable file
View file

@ -0,0 +1,31 @@
{{ template "partials/header.html" . }}
<body lang="en" itemscope itemtype="http://schema.org/Article">
<div id="topbar">
<div class="wrapper">
<header>
{{ template "partials/sidebar.html" . }}
{{ $baseurl := .Site.BaseURL }}
</header>
</div>
</div>
<div class="wrapper">
<div class="units-row">
<div class="unit-centered unit-80">
<article class="post" id="content">
<h3>{{ .Title }}</h3>
{{ .Content }}
</article>
</div>
</div>
</div>
<hr class="separator">
{{ partial "whatisthis.html" . }}
{{ partial "footer.html" . }}

11
layouts/teaching/summary.html Executable file
View file

@ -0,0 +1,11 @@
<article class="postlist">
<header>
<div class="meta"><h4>{{ .Date.Format "Mon, Jan 2, 2006" }}</h4></div>
<h2><a href='{{ .Permalink }}'> {{ .Title }}</a> </h2>
</header>
{{ .Summary }}
<footer>
<a href='{{ .Permalink }}'><nobr>Read more →</nobr></a>
</footer>
</article>

42
layouts/unpublished/single.html Executable file
View file

@ -0,0 +1,42 @@
{{ template "partials/header.html" . }}
<body lang="en" itemscope itemtype="http://schema.org/Article">
<div id="topbar">
<div class="wrapper">
<header>
{{ template "partials/sidebar.html" . }}
{{ $baseurl := .Site.BaseURL }}
</header>
</div>
</div>
<div class="wrapper">
<div class="units-row">
<div class="unit-20">&nbsp;</div>
<div class="unit-60"><h2><a href="">{{ .Title }}</a></h2></div>
</div>
<div class="units-row">
<div class="unit-20 dateblock"><p>{{.Params.author}}, {{ .Params.citation | safeHTML }}</p>
{{ if .Params.doi }}<p class="small"><a href="http://dx.doi.org/{{.Params.doi}}">doi:{{.Params.doi}}</a></p>{{ end }}
{{ if .Params.file }}<p><a href="files/papers/{{.Params.file}}" class="badge badge-red"><i class="fa fa-file-pdf-o"></i>&nbsp;download pdf</a></p><p class="small">If you want to cite the paper, please check with me first. Thanks.</p>{{ end }}
</div>
<div class="unit-60">
{{ .Content }}
<hr>
{{ if .PrevInSection }}
<a href="{{.PrevInSection.Permalink}}"> &laquo;&nbsp;{{.PrevInSection.Title}}</a> | {{ end }}<a href="{{ $baseurl }}/publications"><em>Publications List</em></a>{{ if .NextInSection }} | <a href="{{.NextInSection.Permalink}}">{{.NextInSection.Title}}&nbsp;&raquo; </a>
{{ end }}
</div>
</div>
</div>
<hr class="separator">
{{ partial "whatisthis.html" . }}
{{ partial "footer.html" . }}