From 9ed74b5ba750499b086594a8de85856d44c2ee32 Mon Sep 17 00:00:00 2001 From: George Cushen Date: Sun, 13 Dec 2020 21:53:11 +0000 Subject: [PATCH] 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 --- config/_default/config.toml | 2 +- exampleSite/config/_default/config.toml | 8 ++++---- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/config/_default/config.toml b/config/_default/config.toml index dbf0a98..efdd9b5 100644 --- a/config/_default/config.toml +++ b/config/_default/config.toml @@ -34,7 +34,7 @@ paginate = 10 # Number of items per page in paginated lists. enableEmoji = true enableRobotsTXT = true footnotereturnlinkcontents = "^" -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] diff --git a/exampleSite/config/_default/config.toml b/exampleSite/config/_default/config.toml index 5d5089e..4ccecc1 100644 --- a/exampleSite/config/_default/config.toml +++ b/exampleSite/config/_default/config.toml @@ -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 `©`. For current year, type `{year}`. @@ -34,7 +34,7 @@ paginate = 10 # Number of items per page in paginated lists. enableEmoji = true enableRobotsTXT = true footnotereturnlinkcontents = "^" -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.