modules: update - add support for any event type

This commit is contained in:
George Cushen 2020-12-28 23:35:36 +00:00
parent 790241a282
commit 43b360627f
19 changed files with 20 additions and 16 deletions

View file

@ -36,8 +36,10 @@ enableRobotsTXT = true
footnotereturnlinkcontents = "<sup>^</sup>" footnotereturnlinkcontents = "<sup>^</sup>"
ignoreFiles = ["\\.ipynb$", ".ipynb_checkpoints$", "\\.Rmd$", "\\.Rmarkdown$", "_cache$"] ignoreFiles = ["\\.ipynb$", ".ipynb_checkpoints$", "\\.Rmd$", "\\.Rmarkdown$", "_cache$"]
# Workaround Hugo publishing taxonomy URLs as plurals - consistently use singular across Academic.
[permalinks] [permalinks]
# If only creating events which are talks, we can optimize event URLs for talks.
event = "/talk/:slug/"
# Workaround Hugo publishing taxonomy URLs as plurals - consistently use singular across Academic.
tags = "/tag/:slug/" tags = "/tag/:slug/"
categories = "/category/:slug/" categories = "/category/:slug/"
publication_types = "/publication-type/:slug/" publication_types = "/publication-type/:slug/"

View file

Before

Width:  |  Height:  |  Size: 606 KiB

After

Width:  |  Height:  |  Size: 606 KiB

View file

@ -13,8 +13,8 @@ title: 'Recent & Upcoming Talks'
subtitle: subtitle:
content: content:
# Page type to display. E.g. post, talk, publication... # Page type to display. E.g. post, event, publication...
page_type: talk page_type: event
# Choose how many pages you would like to display (0 = all pages) # Choose how many pages you would like to display (0 = all pages)
count: 5 count: 5
# Filter on criteria # Filter on criteria

View file

@ -36,8 +36,10 @@ enableRobotsTXT = true
footnotereturnlinkcontents = "<sup>^</sup>" footnotereturnlinkcontents = "<sup>^</sup>"
ignoreFiles = ["\\.ipynb$", ".ipynb_checkpoints$", "\\.Rmd$", "\\.Rmarkdown$", "_cache$"] ignoreFiles = ["\\.ipynb$", ".ipynb_checkpoints$", "\\.Rmd$", "\\.Rmarkdown$", "_cache$"]
# Workaround Hugo publishing taxonomy URLs as plurals - consistently use singular across Academic.
[permalinks] [permalinks]
# If only creating events which are talks, we can optimize event URLs for talks.
event = "/talk/:slug/"
# Workaround Hugo publishing taxonomy URLs as plurals - consistently use singular across Academic.
authors = "/author/:slug/" authors = "/author/:slug/"
tags = "/tag/:slug/" tags = "/tag/:slug/"
categories = "/category/:slug/" categories = "/category/:slug/"

View file

Before

Width:  |  Height:  |  Size: 606 KiB

After

Width:  |  Height:  |  Size: 606 KiB

View file

@ -13,8 +13,8 @@ title: 'Recent & Upcoming Talks'
subtitle: subtitle:
content: content:
# Page type to display. E.g. post, talk, publication... # Page type to display. E.g. post, event, publication...
page_type: talk page_type: event
# Choose how many pages you would like to display (0 = all pages) # Choose how many pages you would like to display (0 = all pages)
count: 5 count: 5
# Filter on criteria # Filter on criteria

View file

@ -2,4 +2,4 @@ module github.com/wowchemy/starter-academic/exampleSite
go 1.15 go 1.15
require github.com/wowchemy/wowchemy-hugo-modules/wowchemy v0.0.0-20201224144527-9cce661db8d7 // indirect require github.com/wowchemy/wowchemy-hugo-modules/wowchemy v0.0.0-20201228231801-219b05cbd2c4 // indirect

View file

@ -1,2 +1,2 @@
github.com/wowchemy/wowchemy-hugo-modules/wowchemy v0.0.0-20201224144527-9cce661db8d7 h1:pM9Tu7n9bipuVddgpfR7X3CCzvjKV6uhzCtZ7khg3pU= github.com/wowchemy/wowchemy-hugo-modules/wowchemy v0.0.0-20201228231801-219b05cbd2c4 h1:EIk8PqNiLg1YcddZWwh2Khgvfkxh5KSX5hNsI7UBJVM=
github.com/wowchemy/wowchemy-hugo-modules/wowchemy v0.0.0-20201224144527-9cce661db8d7/go.mod h1:H22qfH9qj3FWwsk7+bAZpmT24yRGNQURah2/IRwjbn8= github.com/wowchemy/wowchemy-hugo-modules/wowchemy v0.0.0-20201228231801-219b05cbd2c4/go.mod h1:H22qfH9qj3FWwsk7+bAZpmT24yRGNQURah2/IRwjbn8=

4
go.mod
View file

@ -3,6 +3,6 @@ module github.com/wowchemy/starter-academic
go 1.15 go 1.15
require ( require (
github.com/wowchemy/wowchemy-hugo-modules/netlify-cms-academic v0.0.0-20201224144527-9cce661db8d7 // indirect github.com/wowchemy/wowchemy-hugo-modules/netlify-cms-academic v0.0.0-20201228231801-219b05cbd2c4 // indirect
github.com/wowchemy/wowchemy-hugo-modules/wowchemy v0.0.0-20201224144527-9cce661db8d7 github.com/wowchemy/wowchemy-hugo-modules/wowchemy v0.0.0-20201228231801-219b05cbd2c4
) )

8
go.sum
View file

@ -1,4 +1,4 @@
github.com/wowchemy/wowchemy-hugo-modules/netlify-cms-academic v0.0.0-20201224144527-9cce661db8d7 h1:2rxGeJZzjRKJh22ag9XE2va7pnfOl1ZTXMcrNT6Fufo= github.com/wowchemy/wowchemy-hugo-modules/netlify-cms-academic v0.0.0-20201228231801-219b05cbd2c4 h1:taX+pKqywm2nxmGsVZNj2OCoW39yzLJHwfC4e3j2PO0=
github.com/wowchemy/wowchemy-hugo-modules/netlify-cms-academic v0.0.0-20201224144527-9cce661db8d7/go.mod h1:TU3QDPUdBSQnvDP5QVCwjAkBIdVMS/bKFA8jr3eI5AY= github.com/wowchemy/wowchemy-hugo-modules/netlify-cms-academic v0.0.0-20201228231801-219b05cbd2c4/go.mod h1:TU3QDPUdBSQnvDP5QVCwjAkBIdVMS/bKFA8jr3eI5AY=
github.com/wowchemy/wowchemy-hugo-modules/wowchemy v0.0.0-20201224144527-9cce661db8d7 h1:pM9Tu7n9bipuVddgpfR7X3CCzvjKV6uhzCtZ7khg3pU= github.com/wowchemy/wowchemy-hugo-modules/wowchemy v0.0.0-20201228231801-219b05cbd2c4 h1:EIk8PqNiLg1YcddZWwh2Khgvfkxh5KSX5hNsI7UBJVM=
github.com/wowchemy/wowchemy-hugo-modules/wowchemy v0.0.0-20201224144527-9cce661db8d7/go.mod h1:H22qfH9qj3FWwsk7+bAZpmT24yRGNQURah2/IRwjbn8= github.com/wowchemy/wowchemy-hugo-modules/wowchemy v0.0.0-20201228231801-219b05cbd2c4/go.mod h1:H22qfH9qj3FWwsk7+bAZpmT24yRGNQURah2/IRwjbn8=