feat: remove "_files$" from Hugo's default ignoreFiles

For blogdown projects, this means that any figures produced by knitting any .Rmd or .Rmarkdown files will be ignored by the Hugo build. To make them appear in a deployed site, blogdown users will need to remove this item from ignoreFiles in their configuration file.

See https://github.com/wowchemy/wowchemy-hugo-modules/discussions/2031#discussion-61686
This commit is contained in:
George Cushen 2020-12-13 21:53:11 +00:00
parent 352ab2c390
commit 9ed74b5ba7
2 changed files with 5 additions and 5 deletions

View file

@ -34,7 +34,7 @@ paginate = 10 # Number of items per page in paginated lists.
enableEmoji = true
enableRobotsTXT = true
footnotereturnlinkcontents = "<sup>^</sup>"
ignoreFiles = ["\\.ipynb$", ".ipynb_checkpoints$", "\\.Rmd$", "\\.Rmarkdown$", "_files$", "_cache$"]
ignoreFiles = ["\\.ipynb$", ".ipynb_checkpoints$", "\\.Rmd$", "\\.Rmarkdown$", "_cache$"]
# Workaround Hugo publishing taxonomy URLs as plurals - consistently use singular across Academic.
[permalinks]

View file

@ -1,5 +1,5 @@
# Configuration of Hugo
# Guide: https://sourcethemes.com/academic/docs/get-started/
# Guide: https://wowchemy.com/docs/get-started/
# Hugo Documentation: https://gohugo.io/getting-started/configuration/#all-configuration-settings
#
# This file is formatted using TOML syntax - learn more at https://learnxinyminutes.com/docs/toml/
@ -10,7 +10,7 @@ title = "Academic"
# The URL of your site.
# End your URL with a `/` trailing slash, e.g. `https://example.com/`.
baseurl = "/"
baseurl = ""
# Enter a copyright notice to display in the site footer.
# To display a copyright symbol, type `&copy;`. For current year, type `{year}`.
@ -34,7 +34,7 @@ paginate = 10 # Number of items per page in paginated lists.
enableEmoji = true
enableRobotsTXT = true
footnotereturnlinkcontents = "<sup>^</sup>"
ignoreFiles = ["\\.ipynb$", ".ipynb_checkpoints$", "\\.Rmd$", "\\.Rmarkdown$", "_files$", "_cache$"]
ignoreFiles = ["\\.ipynb$", ".ipynb_checkpoints$", "\\.Rmd$", "\\.Rmarkdown$", "_cache$"]
# Workaround Hugo publishing taxonomy URLs as plurals - consistently use singular across Academic.
[permalinks]
@ -68,7 +68,7 @@ ignoreFiles = ["\\.ipynb$", ".ipynb_checkpoints$", "\\.Rmd$", "\\.Rmarkdown$", "
[imaging]
resampleFilter = "lanczos"
quality = 90
quality = 75
anchor = "smart" # Anchor for cropping. Options include Smart and Center.
# Taxonomies.