mirror of
https://github.com/gcushen/hugo-academic.git
synced 2025-07-26 19:15:16 +02:00
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:
parent
b3c73acdc8
commit
2220cd5d95
8 changed files with 26 additions and 16 deletions
3
exampleSite/content/post/_index.md
Normal file
3
exampleSite/content/post/_index.md
Normal file
|
@ -0,0 +1,3 @@
|
||||||
|
+++
|
||||||
|
title = "Posts"
|
||||||
|
+++
|
3
exampleSite/content/publication/_index.md
Normal file
3
exampleSite/content/publication/_index.md
Normal file
|
@ -0,0 +1,3 @@
|
||||||
|
+++
|
||||||
|
title = "Publications"
|
||||||
|
+++
|
3
exampleSite/content/talk/_index.md
Normal file
3
exampleSite/content/talk/_index.md
Normal file
|
@ -0,0 +1,3 @@
|
||||||
|
+++
|
||||||
|
title = "Recent & Upcoming Talks"
|
||||||
|
+++
|
11
i18n/en.yaml
11
i18n/en.yaml
|
@ -87,14 +87,3 @@
|
||||||
|
|
||||||
- id: open_project_site
|
- id: open_project_site
|
||||||
translation: Go to Project Site
|
translation: Go to Project Site
|
||||||
|
|
||||||
# Section titles
|
|
||||||
|
|
||||||
- id: posts
|
|
||||||
translation: Posts
|
|
||||||
|
|
||||||
- id: publications
|
|
||||||
translation: Publications
|
|
||||||
|
|
||||||
- id: talks
|
|
||||||
translation: Talks
|
|
||||||
|
|
|
@ -2,7 +2,11 @@
|
||||||
{{ partial "navbar.html" . }}
|
{{ partial "navbar.html" . }}
|
||||||
<div class="container">
|
<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 }}
|
{{ $paginator := .Paginate .Data.Pages }}
|
||||||
{{ range $paginator.Pages }}
|
{{ range $paginator.Pages }}
|
||||||
|
|
|
@ -3,7 +3,11 @@
|
||||||
<div class="container">
|
<div class="container">
|
||||||
<div class="row">
|
<div class="row">
|
||||||
<div class="col-md-12">
|
<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>
|
<p>
|
||||||
{{ i18n "filter_by_type" }}:
|
{{ i18n "filter_by_type" }}:
|
||||||
|
|
|
@ -3,7 +3,11 @@
|
||||||
<div class="container">
|
<div class="container">
|
||||||
<div class="row">
|
<div class="row">
|
||||||
<div class="col-md-12">
|
<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" }}
|
{{ range .Data.Pages.GroupByDate "2006" }}
|
||||||
<div class="row" id="talk_list">
|
<div class="row" id="talk_list">
|
||||||
|
@ -15,7 +19,7 @@
|
||||||
|
|
||||||
{{ range .Pages.ByDate.Reverse }}
|
{{ range .Pages.ByDate.Reverse }}
|
||||||
<li>
|
<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>
|
style="color:#03396c;font-size:80%;padding-top:6px;"></i>
|
||||||
{{ .Title }}
|
{{ .Title }}
|
||||||
<p>{{ partial "talk_links" (dict "content" . "is_list" 1) }}</p>
|
<p>{{ partial "talk_links" (dict "content" . "is_list" 1) }}</p>
|
||||||
|
|
|
@ -3,7 +3,7 @@ license = "MIT"
|
||||||
licenselink = "https://github.com/gcushen/hugo-academic/blob/master/LICENSE.md"
|
licenselink = "https://github.com/gcushen/hugo-academic/blob/master/LICENSE.md"
|
||||||
description = "Easily create beautifully simple academic or personal sites"
|
description = "Easily create beautifully simple academic or personal sites"
|
||||||
homepage = "https://github.com/gcushen/hugo-academic"
|
homepage = "https://github.com/gcushen/hugo-academic"
|
||||||
min_version = 0.17
|
min_version = 0.18
|
||||||
tags = ["academic",
|
tags = ["academic",
|
||||||
"portfolio",
|
"portfolio",
|
||||||
"responsive",
|
"responsive",
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue