Skip to content

Commit

Permalink
modules: update - add support for any event type
Browse files Browse the repository at this point in the history
  • Loading branch information
gcushen committed Dec 28, 2020
1 parent 790241a commit 43b3606
Show file tree
Hide file tree
Showing 19 changed files with 20 additions and 16 deletions.
4 changes: 3 additions & 1 deletion config/_default/config.toml
Original file line number Diff line number Diff line change
Expand Up @@ -36,8 +36,10 @@ enableRobotsTXT = true
footnotereturnlinkcontents = "<sup>^</sup>"
ignoreFiles = ["\\.ipynb$", ".ipynb_checkpoints$", "\\.Rmd$", "\\.Rmarkdown$", "_cache$"]

# Workaround Hugo publishing taxonomy URLs as plurals - consistently use singular across Academic.
[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/"
categories = "/category/:slug/"
publication_types = "/publication-type/:slug/"
Expand Down
File renamed without changes.
File renamed without changes
File renamed without changes.
4 changes: 2 additions & 2 deletions content/home/talks.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,8 @@ title: 'Recent & Upcoming Talks'
subtitle:

content:
# Page type to display. E.g. post, talk, publication...
page_type: talk
# Page type to display. E.g. post, event, publication...
page_type: event
# Choose how many pages you would like to display (0 = all pages)
count: 5
# Filter on criteria
Expand Down
4 changes: 3 additions & 1 deletion exampleSite/config/_default/config.toml
Original file line number Diff line number Diff line change
Expand Up @@ -36,8 +36,10 @@ enableRobotsTXT = true
footnotereturnlinkcontents = "<sup>^</sup>"
ignoreFiles = ["\\.ipynb$", ".ipynb_checkpoints$", "\\.Rmd$", "\\.Rmarkdown$", "_cache$"]

# Workaround Hugo publishing taxonomy URLs as plurals - consistently use singular across Academic.
[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/"
tags = "/tag/:slug/"
categories = "/category/:slug/"
Expand Down
File renamed without changes.
File renamed without changes.
4 changes: 2 additions & 2 deletions exampleSite/content/home/talks.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,8 @@ title: 'Recent & Upcoming Talks'
subtitle:

content:
# Page type to display. E.g. post, talk, publication...
page_type: talk
# Page type to display. E.g. post, event, publication...
page_type: event
# Choose how many pages you would like to display (0 = all pages)
count: 5
# Filter on criteria
Expand Down
2 changes: 1 addition & 1 deletion exampleSite/go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,4 @@ module github.com/wowchemy/starter-academic/exampleSite

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
4 changes: 2 additions & 2 deletions exampleSite/go.sum
Original file line number Diff line number Diff line change
@@ -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-20201224144527-9cce661db8d7/go.mod h1:H22qfH9qj3FWwsk7+bAZpmT24yRGNQURah2/IRwjbn8=
github.com/wowchemy/wowchemy-hugo-modules/wowchemy v0.0.0-20201228231801-219b05cbd2c4 h1:EIk8PqNiLg1YcddZWwh2Khgvfkxh5KSX5hNsI7UBJVM=
github.com/wowchemy/wowchemy-hugo-modules/wowchemy v0.0.0-20201228231801-219b05cbd2c4/go.mod h1:H22qfH9qj3FWwsk7+bAZpmT24yRGNQURah2/IRwjbn8=

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,6 @@ module github.com/wowchemy/starter-academic
go 1.15

require (
github.com/wowchemy/wowchemy-hugo-modules/netlify-cms-academic v0.0.0-20201224144527-9cce661db8d7 // indirect
github.com/wowchemy/wowchemy-hugo-modules/wowchemy v0.0.0-20201224144527-9cce661db8d7
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-20201228231801-219b05cbd2c4
)
8 changes: 4 additions & 4 deletions go.sum
Original file line number Diff line number Diff line change
@@ -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-20201224144527-9cce661db8d7/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-20201224144527-9cce661db8d7/go.mod h1:H22qfH9qj3FWwsk7+bAZpmT24yRGNQURah2/IRwjbn8=
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-20201228231801-219b05cbd2c4/go.mod h1:TU3QDPUdBSQnvDP5QVCwjAkBIdVMS/bKFA8jr3eI5AY=
github.com/wowchemy/wowchemy-hugo-modules/wowchemy v0.0.0-20201228231801-219b05cbd2c4 h1:EIk8PqNiLg1YcddZWwh2Khgvfkxh5KSX5hNsI7UBJVM=
github.com/wowchemy/wowchemy-hugo-modules/wowchemy v0.0.0-20201228231801-219b05cbd2c4/go.mod h1:H22qfH9qj3FWwsk7+bAZpmT24yRGNQURah2/IRwjbn8=

0 comments on commit 43b3606

Please sign in to comment.