add support upcoming talks
This commit is contained in:
parent
b24c684c57
commit
b96c310008
|
@ -116,6 +116,7 @@ defaultContentLanguageInSubdir = true # baseURL/en/, baseURL/kr/ ...
|
||||||
hasCJKLanguage = true # Set `true` for Chinese/Japanese/Korean languages.
|
hasCJKLanguage = true # Set `true` for Chinese/Japanese/Korean languages.
|
||||||
|
|
||||||
summaryLength = 70 # The length of a post description on a list page.
|
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}
|
copyright = "©{year}, All Rights Reserved" # copyright symbol: $copy; current year: {year}
|
||||||
timeout = 10000
|
timeout = 10000
|
||||||
|
@ -514,6 +515,7 @@ root/content/talks/myLinks.md
|
||||||
---
|
---
|
||||||
title: "My Awesome links"
|
title: "My Awesome links"
|
||||||
date: 2019-12-31T00:04:50+09:00
|
date: 2019-12-31T00:04:50+09:00
|
||||||
|
publishDate: 2222-12-31
|
||||||
description:
|
description:
|
||||||
tags:
|
tags:
|
||||||
-
|
-
|
||||||
|
|
|
@ -110,6 +110,7 @@ defaultContentLanguageInSubdir = true # baseURL/en/, baseURL/kr/ ...
|
||||||
hasCJKLanguage = true # Set `true` for Chinese/Japanese/Korean languages.
|
hasCJKLanguage = true # Set `true` for Chinese/Japanese/Korean languages.
|
||||||
|
|
||||||
summaryLength = 70 # The length of a post description on a list page.
|
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}
|
copyright = "©{year}, All Rights Reserved" # copyright symbol: $copy; current year: {year}
|
||||||
timeout = 10000
|
timeout = 10000
|
||||||
|
@ -508,6 +509,7 @@ root/content/talks/myLinks.md
|
||||||
---
|
---
|
||||||
title: "My Awesome links"
|
title: "My Awesome links"
|
||||||
date: 2019-12-31T00:04:50+09:00
|
date: 2019-12-31T00:04:50+09:00
|
||||||
|
publishDate: 2222-12-31
|
||||||
description:
|
description:
|
||||||
tags:
|
tags:
|
||||||
-
|
-
|
||||||
|
|
|
@ -7,6 +7,7 @@ defaultContentLanguageInSubdir = true
|
||||||
hasCJKLanguage = true
|
hasCJKLanguage = true
|
||||||
|
|
||||||
summaryLength = 70
|
summaryLength = 70
|
||||||
|
buildFuture = false
|
||||||
|
|
||||||
copyright = "©{year}, All Rights Reserved"
|
copyright = "©{year}, All Rights Reserved"
|
||||||
timeout = 10000
|
timeout = 10000
|
||||||
|
|
|
@ -16,6 +16,7 @@ summaryShape = "classic" # card, classic, compact
|
||||||
archiveGroupByDate = "2006" # "2006-01": group by month, "2006": group by year
|
archiveGroupByDate = "2006" # "2006-01": group by month, "2006": group by year
|
||||||
archivePaginate = 13
|
archivePaginate = 13
|
||||||
paginateWindow = 1
|
paginateWindow = 1
|
||||||
|
talksGroupByDate = "2006"
|
||||||
|
|
||||||
# whoami
|
# whoami
|
||||||
myname = "zzossig"
|
myname = "zzossig"
|
||||||
|
@ -33,6 +34,7 @@ enableSidebarTags = true
|
||||||
enableSidebarSeries = true
|
enableSidebarSeries = true
|
||||||
enableSidebarCategories = true
|
enableSidebarCategories = true
|
||||||
enableToc = true
|
enableToc = true
|
||||||
|
hideToc = false
|
||||||
enableTocSwitch = true
|
enableTocSwitch = true
|
||||||
itemsPerCategory = 5
|
itemsPerCategory = 5
|
||||||
|
|
||||||
|
|
|
@ -11,7 +11,7 @@
|
||||||
<main class="main archive">
|
<main class="main archive">
|
||||||
<div class="archive__container">
|
<div class="archive__container">
|
||||||
{{ $pages := (where .Site.RegularPages "Section" "!=" "talks") }}
|
{{ $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 }}
|
{{ range ($paginator).PageGroups }}
|
||||||
<span class="archive__key">{{ .Key }}</span>
|
<span class="archive__key">{{ .Key }}</span>
|
||||||
|
|
|
@ -11,7 +11,7 @@
|
||||||
<main class="main archive">
|
<main class="main archive">
|
||||||
<div class="archive__container">
|
<div class="archive__container">
|
||||||
{{ $pages := (where .Site.RegularPages "Section" "talks") }}
|
{{ $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 }}
|
{{ range ($paginator).PageGroups }}
|
||||||
<span class="archive__key">{{ .Key }}</span>
|
<span class="archive__key">{{ .Key }}</span>
|
||||||
|
@ -19,7 +19,7 @@
|
||||||
{{ range .Pages }}
|
{{ range .Pages }}
|
||||||
<li class="talk__li">
|
<li class="talk__li">
|
||||||
<span class="talk__date">
|
<span class="talk__date">
|
||||||
{{ .Date.Format (i18n "talks-dateformat") }}
|
{{ .PublishDate.Format (i18n "talks-dateformat") }}
|
||||||
</span>
|
</span>
|
||||||
<ul>
|
<ul>
|
||||||
<li>
|
<li>
|
||||||
|
|
Loading…
Reference in New Issue