7
1
mirror of https://gitlab.com/ansol/web-ansol.org.git synced 2024-12-26 22:00:21 +00:00
web-ansol.org/config/_default/config.toml

108 lines
3.1 KiB
TOML
Raw Normal View History

2020-06-11 11:50:54 +00:00
# Configuration of Hugo
# Guide: https://sourcethemes.com/academic/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/
# Each configuration section is defined by a name in square brackets (e.g. `[outputs]`).
# Title of your site
2021-11-01 12:48:14 +00:00
title = "ANSOL - Associação Nacional para o Software Livre"
2020-06-11 11:50:54 +00:00
# The URL of your site.
# End your URL with a `/` trailing slash, e.g. `https://example.com/`.
2021-11-17 22:36:03 +00:00
baseurl = "https://ansol.org/"
2020-06-11 11:50:54 +00:00
# Enter a copyright notice to display in the site footer.
# To display a copyright symbol, type `©`. For current year, type `{year}`.
2020-06-11 14:09:33 +00:00
copyright = "{year}"
2020-06-11 11:50:54 +00:00
############################
## Advanced options below ##
############################
# Name of Academic theme folder in `themes/`.
theme = "academic"
# Get last modified date for content from Git?
2021-10-28 14:52:49 +00:00
enableGitInfo = false
2020-06-11 11:50:54 +00:00
# Default language to use (if you setup multilingual support)
defaultContentLanguage = "pt"
2020-06-11 11:50:54 +00:00
hasCJKLanguage = false # Set `true` for Chinese/Japanese/Korean languages.
defaultContentLanguageInSubdir = false
removePathAccents = true # Workaround for https://github.com/gohugoio/hugo/issues/5687
summaryLength = 30 # Listing summary length in words. Also, see `abstract_length` in `params.toml`.
2023-11-15 11:19:27 +00:00
paginate = 10 # Number of items per page in paginated lists.
2020-06-11 14:09:33 +00:00
nableEmoji = true
2020-06-11 11:50:54 +00:00
footnotereturnlinkcontents = "<sup>^</sup>"
ignoreFiles = ["\\.ipynb$", ".ipynb_checkpoints$", "\\.Rmd$", "\\.Rmarkdown$", "_files$", "_cache$"]
# 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/"
[outputs]
home = [ "HTML", "RSS", "JSON", "WebAppManifest" ]
2021-11-01 18:42:17 +00:00
section = [ "HTML", "RSS", "Calendar" ]
2020-06-11 11:50:54 +00:00
[mediaTypes."application/manifest+json"]
suffixes = ["webmanifest"]
[outputFormats.WebAppManifest]
mediaType = "application/manifest+json"
rel = "manifest"
# Configure the Markdown renderer.
[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
[imaging]
resampleFilter = "lanczos"
quality = 90
anchor = "smart" # Anchor for cropping. Options include Smart and Center.
# Taxonomies.
[taxonomies]
tag = "tags"
category = "categories"
publication_type = "publication_types"
author = "authors"
# 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