add support upcoming talks

This commit is contained in:
zzossig 2020-01-01 14:23:11 +09:00
parent b24c684c57
commit b96c310008
6 changed files with 10 additions and 3 deletions

View File

@ -116,6 +116,7 @@ defaultContentLanguageInSubdir = true # baseURL/en/, baseURL/kr/ ...
hasCJKLanguage = true # Set `true` for Chinese/Japanese/Korean languages.
summaryLength = 70 # The length of a post description on a list page.
buildFuture = true # if true, we can use future date for talks page
copyright = "©{year}, All Rights Reserved" # copyright symbol: $copy; current year: {year}
timeout = 10000
@ -514,6 +515,7 @@ root/content/talks/myLinks.md
---
title: "My Awesome links"
date: 2019-12-31T00:04:50+09:00
publishDate: 2222-12-31
description:
tags:
-

View File

@ -110,6 +110,7 @@ defaultContentLanguageInSubdir = true # baseURL/en/, baseURL/kr/ ...
hasCJKLanguage = true # Set `true` for Chinese/Japanese/Korean languages.
summaryLength = 70 # The length of a post description on a list page.
buildFuture = true # if true, we can use future date for talks page
copyright = "©{year}, All Rights Reserved" # copyright symbol: $copy; current year: {year}
timeout = 10000
@ -508,6 +509,7 @@ root/content/talks/myLinks.md
---
title: "My Awesome links"
date: 2019-12-31T00:04:50+09:00
publishDate: 2222-12-31
description:
tags:
-

View File

@ -7,6 +7,7 @@ defaultContentLanguageInSubdir = true
hasCJKLanguage = true
summaryLength = 70
buildFuture = false
copyright = "©{year}, All Rights Reserved"
timeout = 10000

View File

@ -16,6 +16,7 @@ summaryShape = "classic" # card, classic, compact
archiveGroupByDate = "2006" # "2006-01": group by month, "2006": group by year
archivePaginate = 13
paginateWindow = 1
talksGroupByDate = "2006"
# whoami
myname = "zzossig"
@ -33,6 +34,7 @@ enableSidebarTags = true
enableSidebarSeries = true
enableSidebarCategories = true
enableToc = true
hideToc = false
enableTocSwitch = true
itemsPerCategory = 5

View File

@ -11,7 +11,7 @@
<main class="main archive">
<div class="archive__container">
{{ $pages := (where .Site.RegularPages "Section" "!=" "talks") }}
{{ $paginator := .Paginate ($pages.GroupByDate (.Site.Params.talksGroupByDate | default "2006")) .Site.Params.archivePaginate }}
{{ $paginator := .Paginate ($pages.GroupByDate (.Site.Params.archiveGroupByDate | default "2006")) .Site.Params.archivePaginate }}
{{ range ($paginator).PageGroups }}
<span class="archive__key">{{ .Key }}</span>

View File

@ -11,7 +11,7 @@
<main class="main archive">
<div class="archive__container">
{{ $pages := (where .Site.RegularPages "Section" "talks") }}
{{ $paginator := .Paginate ($pages.GroupByDate (.Site.Params.archiveGroupByDate | default "2006")) .Site.Params.archivePaginate }}
{{ $paginator := .Paginate ($pages.GroupByPublishDate (.Site.Params.talksGroupByDate | default "2006")) .Site.Params.archivePaginate }}
{{ range ($paginator).PageGroups }}
<span class="archive__key">{{ .Key }}</span>
@ -19,7 +19,7 @@
{{ range .Pages }}
<li class="talk__li">
<span class="talk__date">
{{ .Date.Format (i18n "talks-dateformat") }}
{{ .PublishDate.Format (i18n "talks-dateformat") }}
</span>
<ul>
<li>