hugo-academic-mirror/starters/documentation/config/_default/hugo.yaml

103 lines
2.2 KiB
YAML
Raw Normal View History

2022-02-13 13:10:22 +00:00
# Configuration of Hugo
2023-11-09 14:58:28 +00:00
# Guide: https://docs.hugoblox.com/tutorial/
2022-02-13 13:10:22 +00:00
# Hugo Documentation: https://gohugo.io/getting-started/configuration/#all-configuration-settings
# This file is formatted using YAML syntax - learn more at https://learnxinyminutes.com/docs/yaml/
title: "Hugo Docs" # Website name
baseURL: 'https://example.com/' # Website URL
############################
## PAGE OPTIONS
############################
cascade:
# Docs folder options
- _target:
path: /docs/**
editable: true
show_breadcrumb: true
# Blog post options
- _target:
path: /post/**
kind: page
pager: true
editable: true
hide_date: false
show_date_updated: true
reading_time: true
commentable: true
show_related: true
share: true
# Just use Breadcrumb for navigation on blog post pages?
show_breadcrumb: false
header:
navbar:
enable: true
# Blog section options
- _target:
path: /post/*
kind: section
# Change url to /blog/
url: /blog/
# Set the listing view
view: date-title-summary
2022-02-13 13:10:22 +00:00
############################
## LANGUAGE
############################
defaultContentLanguage: en
hasCJKLanguage: false
defaultContentLanguageInSubdir: false
removePathAccents: true
############################
## ADVANCED
############################
build:
writeStats: true
2022-02-13 13:10:22 +00:00
enableGitInfo: false
summaryLength: 30
paginate: 10
enableEmoji: true
enableRobotsTXT: true
footnotereturnlinkcontents: <sup>^</sup>
ignoreFiles: [\.ipynb$, .ipynb_checkpoints$, \.Rmd$, \.Rmarkdown$, _cache$]
enableInlineShortcodes: true
2022-02-13 13:10:22 +00:00
permalinks:
authors: '/author/:slug/'
tags: '/tag/:slug/'
categories: '/category/:slug/'
disableAliases: true
outputs:
home: [HTML, RSS, WebAppManifest, headers, redirects]
page: [HTML]
2022-02-13 13:10:22 +00:00
section: [HTML, RSS]
imaging:
resampleFilter: lanczos
quality: 85
2022-02-13 13:10:22 +00:00
anchor: smart
timeout: 600000
taxonomies:
tag: tags
category: categories
author: authors
markup:
_merge: deep
2022-02-13 13:10:22 +00:00
related:
threshold: 80
includeNewer: true
toLower: true
indices:
- name: tags
weight: 100
- name: categories
weight: 70
security:
_merge: deep
sitemap:
_merge: deep
minify:
_merge: deep