2020-05-27 02:28:11 +02:00
|
|
|
# Configuration of Hugo
|
2020-11-06 00:40:06 +01:00
|
|
|
# Guide: https://wowchemy.com/docs/get-started/
|
2020-05-27 02:28:11 +02:00
|
|
|
# Hugo Documentation: https://gohugo.io/getting-started/configuration/#all-configuration-settings
|
2019-01-20 14:08:23 +01:00
|
|
|
#
|
|
|
|
# This file is formatted using TOML syntax - learn more at https://learnxinyminutes.com/docs/toml/
|
|
|
|
# Each configuration section is defined by a name in square brackets (e.g. `[outputs]`).
|
|
|
|
|
|
|
|
# Title of your site
|
|
|
|
title = "Academic"
|
|
|
|
|
|
|
|
# The URL of your site.
|
|
|
|
# End your URL with a `/` trailing slash, e.g. `https://example.com/`.
|
2020-11-06 00:40:06 +01:00
|
|
|
baseurl = ""
|
2019-01-20 14:08:23 +01:00
|
|
|
|
|
|
|
# Enter a copyright notice to display in the site footer.
|
2019-03-24 20:38:11 +01:00
|
|
|
# To display a copyright symbol, type `©`. For current year, type `{year}`.
|
2019-01-20 14:08:23 +01:00
|
|
|
copyright = ""
|
|
|
|
|
|
|
|
############################
|
|
|
|
## Advanced options below ##
|
|
|
|
############################
|
|
|
|
|
|
|
|
# Get last modified date for content from Git?
|
|
|
|
enableGitInfo = false
|
|
|
|
|
|
|
|
# Default language to use (if you setup multilingual support)
|
|
|
|
defaultContentLanguage = "en"
|
|
|
|
hasCJKLanguage = false # Set `true` for Chinese/Japanese/Korean languages.
|
|
|
|
defaultContentLanguageInSubdir = false
|
2019-06-18 14:58:34 +02:00
|
|
|
removePathAccents = true # Workaround for https://github.com/gohugoio/hugo/issues/5687
|
2019-01-20 14:08:23 +01:00
|
|
|
|
2020-03-06 22:20:22 +01:00
|
|
|
summaryLength = 30 # Listing summary length in words. Also, see `abstract_length` in `params.toml`.
|
2019-01-20 14:08:23 +01:00
|
|
|
paginate = 10 # Number of items per page in paginated lists.
|
|
|
|
enableEmoji = true
|
2020-09-02 22:36:07 +02:00
|
|
|
enableRobotsTXT = true
|
2019-01-20 14:08:23 +01:00
|
|
|
footnotereturnlinkcontents = "<sup>^</sup>"
|
2019-02-19 19:09:28 +01:00
|
|
|
ignoreFiles = ["\\.ipynb$", ".ipynb_checkpoints$", "\\.Rmd$", "\\.Rmarkdown$", "_files$", "_cache$"]
|
2019-01-20 14:08:23 +01:00
|
|
|
|
2020-04-17 00:48:38 +02:00
|
|
|
# Workaround Hugo publishing taxonomy URLs as plurals - consistently use singular across Academic.
|
|
|
|
[permalinks]
|
|
|
|
authors = "/author/:slug/"
|
|
|
|
tags = "/tag/:slug/"
|
|
|
|
categories = "/category/:slug/"
|
|
|
|
publication_types = "/publication-type/:slug/"
|
|
|
|
|
2019-01-20 14:08:23 +01:00
|
|
|
[outputs]
|
2019-07-28 00:07:08 +02:00
|
|
|
home = [ "HTML", "RSS", "JSON", "WebAppManifest" ]
|
2019-01-20 14:08:23 +01:00
|
|
|
section = [ "HTML", "RSS" ]
|
|
|
|
|
2020-11-13 01:19:36 +01:00
|
|
|
[mediaTypes."application/manifest+json"]
|
|
|
|
suffixes = ["webmanifest"]
|
|
|
|
|
|
|
|
[outputFormats.WebAppManifest]
|
|
|
|
mediaType = "application/manifest+json"
|
|
|
|
rel = "manifest"
|
|
|
|
|
2020-05-27 02:28:11 +02:00
|
|
|
# Configure the Markdown renderer.
|
2019-12-07 21:07:41 +01:00
|
|
|
[markup]
|
|
|
|
defaultMarkdownHandler = "goldmark"
|
|
|
|
[markup.goldmark]
|
|
|
|
[markup.goldmark.renderer]
|
|
|
|
unsafe = true # Enable user to embed HTML snippets in Markdown content.
|
|
|
|
[markup.highlight]
|
|
|
|
codeFences = false # Disable Hugo's code highlighter as it conflicts with Academic's highligher.
|
|
|
|
[markup.tableOfContents]
|
|
|
|
startLevel = 2
|
|
|
|
endLevel = 3
|
2019-01-20 14:08:23 +01:00
|
|
|
|
2019-02-19 19:09:28 +01:00
|
|
|
[imaging]
|
|
|
|
resampleFilter = "lanczos"
|
2020-11-06 00:40:06 +01:00
|
|
|
quality = 75
|
2019-02-19 19:09:28 +01:00
|
|
|
anchor = "smart" # Anchor for cropping. Options include Smart and Center.
|
|
|
|
|
2019-01-20 14:08:23 +01:00
|
|
|
# Taxonomies.
|
|
|
|
[taxonomies]
|
|
|
|
tag = "tags"
|
|
|
|
category = "categories"
|
|
|
|
publication_type = "publication_types"
|
|
|
|
author = "authors"
|
2020-05-27 02:28:11 +02:00
|
|
|
|
|
|
|
# Related content.
|
|
|
|
[related]
|
|
|
|
threshold = 80.0
|
|
|
|
includeNewer = true
|
|
|
|
toLower = true
|
|
|
|
|
|
|
|
[[related.indices]]
|
|
|
|
name = "title"
|
|
|
|
weight = 60.0
|
|
|
|
|
|
|
|
[[related.indices]]
|
|
|
|
name = "summary"
|
|
|
|
weight = 50.0
|
|
|
|
|
|
|
|
[[related.indices]]
|
|
|
|
name = "tags"
|
|
|
|
weight = 80.0
|
|
|
|
|
|
|
|
[[related.indices]]
|
|
|
|
name = "categories"
|
|
|
|
weight = 70.0
|
|
|
|
|
|
|
|
[[related.indices]]
|
|
|
|
name = "authors"
|
|
|
|
weight = 20.0
|
2020-09-02 22:36:07 +02:00
|
|
|
|
|
|
|
# Install Wowchemy
|
|
|
|
[module]
|
|
|
|
[[module.imports]]
|
|
|
|
path = "github.com/wowchemy/wowchemy-hugo-modules/wowchemy"
|
2020-10-01 18:43:54 +02:00
|
|
|
[[module.imports]]
|
|
|
|
path = "github.com/wowchemy/wowchemy-hugo-modules/netlify-cms-academic"
|