feat: unpublish author pages in the default tpl

Based on feedback from users creating personal sites and not wanting to publish dedicated page for each author.

But keep publishing author pages in the demo for now.
This commit is contained in:
George Cushen 2020-12-13 21:43:23 +00:00
parent 65635bbff9
commit 352ab2c390
22 changed files with 18 additions and 16 deletions

View file

@ -38,7 +38,6 @@ ignoreFiles = ["\\.ipynb$", ".ipynb_checkpoints$", "\\.Rmd$", "\\.Rmarkdown$", "
# Workaround Hugo publishing taxonomy URLs as plurals - consistently use singular across Academic. # Workaround Hugo publishing taxonomy URLs as plurals - consistently use singular across Academic.
[permalinks] [permalinks]
authors = "/author/:slug/"
tags = "/tag/:slug/" tags = "/tag/:slug/"
categories = "/category/:slug/" categories = "/category/:slug/"
publication_types = "/publication-type/:slug/" publication_types = "/publication-type/:slug/"

View file

@ -163,9 +163,6 @@ sharing = true
# Page specific copyright licenses are also possible by adding this option to a page's front matter. # Page specific copyright licenses are also possible by adding this option to a page's front matter.
copyright_license = {enable = false, allow_derivatives = false, share_alike = true, allow_commercial = false, notice = "This work is licensed under {license}"} copyright_license = {enable = false, allow_derivatives = false, share_alike = true, allow_commercial = false, notice = "This work is licensed under {license}"}
# Link authors to their profile page? (true/false)
link_authors = true
# Abstract length (characters) in the Compact and Portfolio Card list views. Also, see `summaryLength` in `config.toml`. # Abstract length (characters) in the Compact and Portfolio Card list views. Also, see `summaryLength` in `config.toml`.
abstract_length = 135 abstract_length = 135

View file

@ -0,0 +1,9 @@
---
# To publish author profile pages, remove all of the `_build` and `cascade` settings below.
_build:
render: never
cascade:
_build:
render: never
list: always
---

View file

@ -163,9 +163,6 @@ sharing = true
# Page specific copyright licenses are also possible by adding this option to a page's front matter. # Page specific copyright licenses are also possible by adding this option to a page's front matter.
copyright_license = {enable = false, allow_derivatives = false, share_alike = true, allow_commercial = false, notice = "This work is licensed under {license}"} copyright_license = {enable = false, allow_derivatives = false, share_alike = true, allow_commercial = false, notice = "This work is licensed under {license}"}
# Link authors to their profile page? (true/false)
link_authors = true
# Abstract length (characters) in the Compact and Portfolio Card list views. Also, see `summaryLength` in `config.toml`. # Abstract length (characters) in the Compact and Portfolio Card list views. Also, see `summaryLength` in `config.toml`.
abstract_length = 135 abstract_length = 135

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-20201211023654-f6090cd7e55d // indirect require github.com/wowchemy/wowchemy-hugo-modules/wowchemy v0.0.0-20201213184117-a0b9887f37fb // indirect

View file

@ -1,2 +1,2 @@
github.com/wowchemy/wowchemy-hugo-modules/wowchemy v0.0.0-20201211023654-f6090cd7e55d h1:s1Eo9hqvzzN6I+jpx4/GG4yTwCh/26MnZaPvdqrqbis= github.com/wowchemy/wowchemy-hugo-modules/wowchemy v0.0.0-20201213184117-a0b9887f37fb h1:deUZQs7pFGfVwFhQnKelKq5tpdD32ccXH8gDwxZTQtE=
github.com/wowchemy/wowchemy-hugo-modules/wowchemy v0.0.0-20201211023654-f6090cd7e55d/go.mod h1:H22qfH9qj3FWwsk7+bAZpmT24yRGNQURah2/IRwjbn8= github.com/wowchemy/wowchemy-hugo-modules/wowchemy v0.0.0-20201213184117-a0b9887f37fb/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-20201211023654-f6090cd7e55d // indirect github.com/wowchemy/wowchemy-hugo-modules/netlify-cms-academic v0.0.0-20201213184117-a0b9887f37fb // indirect
github.com/wowchemy/wowchemy-hugo-modules/wowchemy v0.0.0-20201211023654-f6090cd7e55d github.com/wowchemy/wowchemy-hugo-modules/wowchemy v0.0.0-20201213184117-a0b9887f37fb
) )

8
go.sum
View file

@ -1,4 +1,4 @@
github.com/wowchemy/wowchemy-hugo-modules/netlify-cms-academic v0.0.0-20201211023654-f6090cd7e55d h1:o3oXxH4+9fTBcBVJ5hAiFCJjJ5ZyQZV7glQJZLJeHc8= github.com/wowchemy/wowchemy-hugo-modules/netlify-cms-academic v0.0.0-20201213184117-a0b9887f37fb h1:EkBd7ZWpXknKgJ3pLJMUbnL5wtVmze/7qhlKIYfIv5k=
github.com/wowchemy/wowchemy-hugo-modules/netlify-cms-academic v0.0.0-20201211023654-f6090cd7e55d/go.mod h1:TU3QDPUdBSQnvDP5QVCwjAkBIdVMS/bKFA8jr3eI5AY= github.com/wowchemy/wowchemy-hugo-modules/netlify-cms-academic v0.0.0-20201213184117-a0b9887f37fb/go.mod h1:TU3QDPUdBSQnvDP5QVCwjAkBIdVMS/bKFA8jr3eI5AY=
github.com/wowchemy/wowchemy-hugo-modules/wowchemy v0.0.0-20201211023654-f6090cd7e55d h1:s1Eo9hqvzzN6I+jpx4/GG4yTwCh/26MnZaPvdqrqbis= github.com/wowchemy/wowchemy-hugo-modules/wowchemy v0.0.0-20201213184117-a0b9887f37fb h1:deUZQs7pFGfVwFhQnKelKq5tpdD32ccXH8gDwxZTQtE=
github.com/wowchemy/wowchemy-hugo-modules/wowchemy v0.0.0-20201211023654-f6090cd7e55d/go.mod h1:H22qfH9qj3FWwsk7+bAZpmT24yRGNQURah2/IRwjbn8= github.com/wowchemy/wowchemy-hugo-modules/wowchemy v0.0.0-20201213184117-a0b9887f37fb/go.mod h1:H22qfH9qj3FWwsk7+bAZpmT24yRGNQURah2/IRwjbn8=