Require Hugo v0.18 and support section nodes as pages

* Post, Publication, and Talk nodes can now have a `_index.md` file with title and content.
* Example `_index.md` content files added to Example Site.
* Hugo v0.18+ required.
This commit is contained in:
George Cushen committed 2017-01-20 00:57:16 +00:00
1 parent b3c73acdc8
commit 2220cd5d95
8 files changed
+26 -16

No files matched your search

+3
View File
@@ -0,0 +1,3 @@
+++
title = "Posts"
+++
@@ -0,0 +1,3 @@
+++
title = "Publications"
+++
+3
View File
@@ -0,0 +1,3 @@
+++
title = "Recent & Upcoming Talks"
+++
-11
View File
@@ -87,14 +87,3 @@
- id: open_project_site
translation: Go to Project Site
# Section titles
- id: posts
translation: Posts
- id: publications
translation: Publications
- id: talks
translation: Talks
+5 -1
View File
@@ -2,7 +2,11 @@
{{ partial "navbar.html" . }}
<div class="container">
<h1>{{ i18n "posts" }}</h1>
<h1>{{ .Title | default "Posts" }}</h1>
{{ with .Content }}
<div class="article-style" itemprop="articleBody">{{ . }}</div>
{{ end }}
{{ $paginator := .Paginate .Data.Pages }}
{{ range $paginator.Pages }}
+5 -1
View File
@@ -3,7 +3,11 @@
<div class="container">
<div class="row">
<div class="col-md-12">
<h1>{{ i18n "publications" }}</h1>
<h1>{{ .Title | default "Publications" }}</h1>
{{ with .Content }}
<div class="article-style" itemprop="articleBody">{{ . }}</div>
{{ end }}
<p>
{{ i18n "filter_by_type" }}:
+6 -2
View File
@@ -3,7 +3,11 @@
<div class="container">
<div class="row">
<div class="col-md-12">
<h1>{{ i18n "talks" }}</h1>
<h1>{{ .Title | default "Talks" }}</h1>
{{ with .Content }}
<div class="article-style" itemprop="articleBody">{{ . }}</div>
{{ end }}
{{ range .Data.Pages.GroupByDate "2006" }}
<div class="row" id="talk_list">
@@ -15,7 +19,7 @@
{{ range .Pages.ByDate.Reverse }}
<li>
<i class="fa-li fa fa-file-text-o" aria-hidden="true"
<i class="fa-li fa fa-comment-o" aria-hidden="true"
style="color:#03396c;font-size:80%;padding-top:6px;"></i>
{{ .Title }}
<p>{{ partial "talk_links" (dict "content" . "is_list" 1) }}</p>
+1 -1
View File
@@ -3,7 +3,7 @@ license = "MIT"
licenselink = "https://github.com/gcushen/hugo-academic/blob/master/LICENSE.md"
description = "Easily create beautifully simple academic or personal sites"
homepage = "https://github.com/gcushen/hugo-academic"
min_version = 0.17
min_version = 0.18
tags = ["academic",
"portfolio",
"responsive",