updates to conform to hugo 0.6 reqs

This commit is contained in:
Jeremy Kidwell 2020-01-05 20:57:35 +00:00
parent b185de3186
commit 6f35051554
9 changed files with 128 additions and 43 deletions

View file

@ -8,7 +8,7 @@
<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 }}" />
<link href="{{ with .OutputFormats.Get "RSS" }}{{ .RelPermalink }}{{ end }}" rel="alternate" type="application/rss+xml" title="{{ .Site.Title }}" />
{{ partial "head_includes.html" . }}
</head>
@ -34,7 +34,7 @@
<p></p>
</div>
</div>
{{ range first 4 ((where .Data.Pages.ByDate "Section" "blog").Reverse) }}
{{ range first 5 ((where .Site.RegularPages.ByDate "Section" "blog").Reverse) }}
<div class="units-row-end">
<div class="unit-33 dateblock">
<h3><a href="{{ .Permalink }}">{{ .Title }}</a></h3>
@ -64,7 +64,7 @@
<!-- First Pane -->
<h3>Recent Papers</h3>
<ul class="compact fa-ul">
{{ range first 5 (where .Data.Pages.ByDate "Section" "publications").Reverse }}
{{ range first 5 (where .Site.RegularPages.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>
{{ end }}
@ -78,7 +78,7 @@
<!-- Second Pane -->
<h3>Recent &amp; Upcoming Presentations</h3>
<ul class="compact fa-ul">
{{ range (where .Data.Pages.ByDate "Section" "presentations").Reverse }}
{{ range (where .Site.RegularPages.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" . }}
@ -99,7 +99,7 @@
<!-- Third Pane -->
<h3>Current Teaching</h3>
<ul class="compact fa-ul">
{{ range (where .Data.Pages.ByDate "Section" "teaching").Reverse }}
{{ range (where .Site.RegularPages.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" . }}
@ -107,7 +107,7 @@
{{ end }}
{{ end }}
{{ end }}
{{ range (where .Data.Pages.ByDate "Section" "teaching").Reverse }}
{{ range (where .Site.RegularPages.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" . }}
@ -115,7 +115,7 @@
{{ end }}
{{ end }}
{{ end }}
{{ range (where .Data.Pages.ByDate "Section" "teaching").Reverse }}
{{ range (where .Site.RegularPages.ByDate "Section" "teaching").Reverse }}
{{ $classend := (add .Date.Unix .Params.duration) }}
{{ if (ge now.Unix $classend ) }}
{{ if (le now.Unix (add $classend 10368000)) }}

View file

@ -13,7 +13,7 @@
<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 }}" />
<link href="{{ with .OutputFormats.Get "RSS" }}{{ .RelPermalink }}{{ end }}" rel="alternate" type="application/rss+xml" title="{{ .Site.Title }}" />
<link rel="authorization_endpoint" href="https://indieauth.com/auth">
</script>
</head>

View file

@ -8,7 +8,7 @@
<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 }}
{{ if .OutputFormats.Get "RSS" }}<link href="{{ with .OutputFormats.Get "RSS" }}{{ .RelPermalink }}{{ end }}" rel="alternate" type="application/rss+xml" title="{{ .Title }}" />{{ end }}
{{ partial "head_includes.html" . }}
<link rel="shortcut icon" href="/favicon.ico" type="image/x-icon" />

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" . }}