mirror of
https://github.com/gohugoio/hugo.git
synced 2024-07-07 01:32:15 +00:00
![Bjørn Erik Pedersen](/assets/img/avatar_default.png)
d1cf9adc4 Fix typo 26e10a690 Fix the name and arg mismatch between partial defn and call 2db0e53cd Merge commit '9c36cff15224f6cbd19058ad61311229b7a23c83' 9c36cff15 Squashed 'themes/gohugoioTheme/' changes from 68ddff44..b8202f53 4b021eff8 Update lang.Merge.md b37af2916 Add title to yaml a9a281233 Fixed incorrect usage of the code-toggle shortcode 4560a0169 Update Warning for Theme Links (#676) 0305e3c6b Document .File.ContentBaseName 6d30c5aa1 Update configuration.md 158df174a Document .Sites and .Sites.First 0c0f583b8 Add stale config e2531afd8 Document path template functions 4dd779057 Clarify that partialCached is per site/language 19e5bbe0c Update index.md 44b000857 Add missing dot a41300cf9 Release 0.52 2d1d92b88 Merge branch 'temp52' c5925250d releaser: Prepare repository for 0.53-DEV d000b04a2 releaser: Add release notes to /docs for release of 0.52 4bb983a0a releaser: Bump versions for release of 0.52 36736ca28 tpl: Add "param" shortcode 378677aa6 Add Elasticsearch/bonsai.io to services doc. 4c3fd4fa4 docs: Document inline shortcodes 6c64c374c Whitelist CSS modules from purge 817a872b9 Improve search icon position cf86ff1c7 Add minification and resource cache clear to build command fd77e8df3 Update asset dependencies and adopt Hugo Pipes cdbe97e8c Update render.md b0e279220 git command to update submodule to latest a1cb98c12 cache/filecache: Add a :project placeholder 07c1b2b46 cache/filecache: Use time.Duration for maxAge ffa9b165e Add AND as a title 6e7733b40 Add OR as a sub title to make it easier to find in search 72b6791a1 docs: Document the new file cache 714d3ca91 Fix minification issues cd1e961da Revert "Add Elasticsearch/bonsai.io to services doc." 15a0cda6e Add Elasticsearch/bonsai.io to services doc. f931d86de Release 0.51 e2ffe867a Merge branch 'temp51' 423e7f5c8 releaser: Prepare repository for 0.52-DEV c6f2d6ae1 releaser: Add release notes to /docs for release of 0.51 5bbb556dc releaser: Bump versions for release of 0.51 3b2b172b9 docs: Document shortcode error handling b8672f3d4 docs: Document symdiff 4bc6071e6 docs: Document complement d1baab752 docs: Re-generate CLI docs 9ea667e24 Revert "tpl: Update Jsonify to return pretty-print output" ce5a1403d docs: Regenerate the docs helper 99a1f4a94 Fix note for reserved partial name(starting with -> including). eba3cbc42 fix accidentally modification on paragraph. 3eebd98c3 Add note for reserved partial name. 40b881cc2 Document templates.Exists b5c3bcd3b Update multilingual.md 61c59c67e Fix misspelling (#648) f21d8c4a4 Correct minor typo (#5372) e967001b9 Release 0.50 685fd6b08 releaser: Prepare repository for 0.51-DEV f245a9faa releaser: Add release notes to /docs for release of 0.50 4354da30d releaser: Bump versions for release of 0.50 feaa05469 docs: Regenerate CLI docs 5c724200c Merge commit 'd6a4af7018e8618944a6471ceeb7aae1d4df6afa' 2ddab36c2 Merge commit '74309fe5699a595080fdb3a14711e0869babce99' 8cf296a7c docs: Regenerate CLI docs 9097683dd tpl: Update Jsonify to return pretty-print output git-subtree-dir: docs git-subtree-split: d1cf9adc412245c96d9d32592a903370d3972aef
413 lines
8.4 KiB
TOML
413 lines
8.4 KiB
TOML
baseURL = "https://gohugo.io/"
|
||
paginate = 100
|
||
defaultContentLanguage = "en"
|
||
enableEmoji = true
|
||
# Set the unicode character used for the "return" link in page footnotes.
|
||
footnotereturnlinkcontents = "↩"
|
||
languageCode = "en-us"
|
||
metaDataFormat = "yaml"
|
||
title = "Hugo"
|
||
theme = "gohugoioTheme"
|
||
|
||
googleAnalytics = "UA-7131036-4"
|
||
|
||
pluralizeListTitles = false
|
||
|
||
# We do redirects via Netlify's _redirects file, generated by Hugo (see "outputs" below).
|
||
disableAliases = true
|
||
|
||
# Highlighting config (Pygments)
|
||
# It is (currently) not in use, but you can do ```go in a content file if you want to.
|
||
pygmentsCodeFences = true
|
||
|
||
pygmentsOptions = ""
|
||
# Use the Chroma stylesheet
|
||
pygmentsUseClasses = true
|
||
pygmentsUseClassic = false
|
||
|
||
# See https://help.farbox.com/pygments.html
|
||
pygmentsStyle = "trac"
|
||
|
||
[outputs]
|
||
home = [ "HTML", "RSS", "REDIR", "HEADERS" ]
|
||
section = [ "HTML", "RSS"]
|
||
|
||
[mediaTypes]
|
||
[mediaTypes."text/netlify"]
|
||
delimiter = ""
|
||
|
||
[outputFormats]
|
||
[outputFormats.REDIR]
|
||
mediatype = "text/netlify"
|
||
baseName = "_redirects"
|
||
isPlainText = true
|
||
notAlternative = true
|
||
[outputFormats.HEADERS]
|
||
mediatype = "text/netlify"
|
||
baseName = "_headers"
|
||
isPlainText = true
|
||
notAlternative = true
|
||
|
||
[related]
|
||
|
||
threshold = 80
|
||
includeNewer = true
|
||
toLower = false
|
||
|
||
[[related.indices]]
|
||
name = "keywords"
|
||
weight = 100
|
||
[[related.indices]]
|
||
name = "date"
|
||
weight = 10
|
||
pattern = "2006"
|
||
|
||
[social]
|
||
twitter = "GoHugoIO"
|
||
|
||
#CUSTOM PARAMS
|
||
[params]
|
||
description = "The world’s fastest framework for building websites"
|
||
## Used for views in rendered HTML (i.e., rather than using the .Hugo variable)
|
||
release = "0.52"
|
||
## Setting this to true will add a "noindex" to *EVERY* page on the site
|
||
removefromexternalsearch = false
|
||
## Gh repo for site footer (include trailing slash)
|
||
ghrepo = "https://github.com/gohugoio/hugoDocs/"
|
||
## GH Repo for filing a new issue
|
||
github_repo = "https://github.com/gohugoio/hugo/issues/new"
|
||
### Edit content repo (set to automatically enter "edit" mode; this is good for "improve this page" links)
|
||
ghdocsrepo = "https://github.com/gohugoio/hugoDocs/tree/master/docs"
|
||
## Gitter URL
|
||
gitter = "https://gitter.im/spf13/hugo"
|
||
## Discuss Forum URL
|
||
forum = "https://discourse.gohugo.io/"
|
||
## Google Tag Manager
|
||
gtmid = ""
|
||
|
||
# First one is picked as the Twitter card image if not set on page.
|
||
images = ["images/gohugoio-card.png"]
|
||
|
||
flex_box_interior_classes = "flex-auto w-100 w-40-l mr3 mb3 bg-white ba b--moon-gray nested-copy-line-height"
|
||
|
||
#sidebar_direction = "sidebar_left"
|
||
|
||
# MARKDOWN
|
||
## Configuration for BlackFriday markdown parser: https://github.com/russross/blackfriday
|
||
[blackfriday]
|
||
plainIDAnchors = true
|
||
# See https://github.com/gohugoio/hugo/issues/2424
|
||
hrefTargetBlank = false
|
||
angledQuotes = false
|
||
latexDashes = true
|
||
|
||
[imaging]
|
||
# See https://github.com/disintegration/imaging
|
||
# CatmullRom is a sharp bicubic filter which should fit the docs site well with its many screenshots.
|
||
# Note that you can also set this per image processing.
|
||
resampleFilter = "CatmullRom"
|
||
|
||
# Default JPEG quality setting. Default is 75.
|
||
quality = 75
|
||
|
||
anchor = "smart"
|
||
|
||
|
||
## As of v0.20, all content files include a default "categories" value that's the same as the section. This was a cheap future-proofing method and should/could be changed accordingly.
|
||
[taxonomies]
|
||
category = "categories"
|
||
|
||
# High level items
|
||
|
||
[[menu.docs]]
|
||
name = "About Hugo"
|
||
weight = 1
|
||
identifier = "about"
|
||
url = "/about/"
|
||
|
||
[[menu.docs]]
|
||
name = "Getting Started"
|
||
weight = 5
|
||
identifier = "getting-started"
|
||
url = "/getting-started/"
|
||
|
||
|
||
[[menu.docs]]
|
||
name = "Themes"
|
||
weight = 15
|
||
identifier = "themes"
|
||
post = "break"
|
||
url = "/themes/"
|
||
|
||
# Core Menus
|
||
|
||
[[menu.docs]]
|
||
name = "Content Management"
|
||
weight = 20
|
||
identifier = "content-management"
|
||
post = "expanded"
|
||
url = "/content-management/"
|
||
|
||
[[menu.docs]]
|
||
name = "Templates"
|
||
weight = 25
|
||
identifier = "templates"
|
||
|
||
url = "/templates/"
|
||
|
||
[[menu.docs]]
|
||
name = "Functions"
|
||
weight = 30
|
||
identifier = "functions"
|
||
url = "/functions/"
|
||
|
||
[[menu.docs]]
|
||
name = "Variables"
|
||
weight = 35
|
||
identifier = "variables"
|
||
url = "/variables/"
|
||
[[menu.docs]]
|
||
name = "Hugo Pipes"
|
||
weight = 36
|
||
identifier = "pipes"
|
||
url = "/hugo-pipes/"
|
||
[[menu.docs]]
|
||
name = "CLI"
|
||
weight = 40
|
||
post = "break"
|
||
identifier = "commands"
|
||
url = "/commands/"
|
||
|
||
|
||
|
||
# LOW LEVEL ITEMS
|
||
|
||
|
||
[[menu.docs]]
|
||
name = "Troubleshooting"
|
||
weight = 60
|
||
identifier = "troubleshooting"
|
||
url = "/troubleshooting/"
|
||
|
||
[[menu.docs]]
|
||
name = "Tools"
|
||
weight = 70
|
||
identifier = "tools"
|
||
url = "/tools/"
|
||
|
||
[[menu.docs]]
|
||
name = "Hosting & Deployment"
|
||
weight = 80
|
||
identifier = "hosting-and-deployment"
|
||
url = "/hosting-and-deployment/"
|
||
|
||
[[menu.docs]]
|
||
name = "Contribute"
|
||
weight = 100
|
||
post = "break"
|
||
identifier = "contribute"
|
||
url = "/contribute/"
|
||
|
||
#[[menu.docs]]
|
||
# name = "Tags"
|
||
# weight = 120
|
||
# identifier = "tags"
|
||
# url = "/tags/"
|
||
|
||
|
||
# [[menu.docs]]
|
||
# name = "Categories"
|
||
# weight = 140
|
||
# identifier = "categories"
|
||
# url = "/categories/"
|
||
|
||
######## QUICKLINKS
|
||
|
||
[[menu.quicklinks]]
|
||
name = "Fundamentals"
|
||
weight = 1
|
||
identifier = "fundamentals"
|
||
url = "/tags/fundamentals/"
|
||
|
||
|
||
|
||
|
||
######## GLOBAL ITEMS TO BE SHARED WITH THE HUGO SITES
|
||
|
||
[[menu.global]]
|
||
name = "News"
|
||
weight = 1
|
||
identifier = "news"
|
||
url = "/news/"
|
||
|
||
[[menu.global]]
|
||
name = "Docs"
|
||
weight = 5
|
||
identifier = "docs"
|
||
url = "/documentation/"
|
||
|
||
[[menu.global]]
|
||
name = "Themes"
|
||
weight = 10
|
||
identifier = "themes"
|
||
url = "https://themes.gohugo.io/"
|
||
|
||
[[menu.global]]
|
||
name = "Showcase"
|
||
weight = 20
|
||
identifier = "showcase"
|
||
url = "/showcase/"
|
||
|
||
# Anything with a weight > 100 gets an external icon
|
||
[[menu.global]]
|
||
name = "Community"
|
||
weight = 150
|
||
icon = true
|
||
identifier = "community"
|
||
post = "external"
|
||
url = "https://discourse.gohugo.io/"
|
||
|
||
|
||
[[menu.global]]
|
||
name = "GitHub"
|
||
weight = 200
|
||
identifier = "github"
|
||
post = "external"
|
||
url = "https://github.com/gohugoio/hugo"
|
||
|
||
### LANGUAGES ###
|
||
|
||
[languages]
|
||
[languages.en]
|
||
contentDir = "content/en"
|
||
languageName = "English"
|
||
weight = 1
|
||
[languages.zh]
|
||
contentDir = "content/zh"
|
||
languageName = "中文"
|
||
weight = 2
|
||
|
||
|
||
### LANGUAGE-SPECIFIC MENUS ###
|
||
|
||
# Chinese menus
|
||
|
||
[[languages.zh.menu.docs]]
|
||
name = "关于 Hugo"
|
||
weight = 1
|
||
identifier = "about"
|
||
url = "/zh/about/"
|
||
|
||
[[languages.zh.menu.docs]]
|
||
name = "入门"
|
||
weight = 5
|
||
identifier = "getting-started"
|
||
url = "/zh/getting-started/"
|
||
|
||
[[languages.zh.menu.docs]]
|
||
name = "主题"
|
||
weight = 15
|
||
identifier = "themes"
|
||
post = "break"
|
||
url = "/zh/themes/"
|
||
|
||
# Core languages.zh.menus
|
||
|
||
[[languages.zh.menu.docs]]
|
||
name = "内容管理"
|
||
weight = 20
|
||
identifier = "content-management"
|
||
post = "expanded"
|
||
url = "/zh/content-management/"
|
||
|
||
[[languages.zh.menu.docs]]
|
||
name = "模板"
|
||
weight = 25
|
||
identifier = "templates"
|
||
url = "/zh/templates/"
|
||
|
||
[[languages.zh.menu.docs]]
|
||
name = "函数"
|
||
weight = 30
|
||
identifier = "functions"
|
||
url = "/zh/functions/"
|
||
|
||
[[languages.zh.menu.docs]]
|
||
name = "变量"
|
||
weight = 35
|
||
identifier = "variables"
|
||
url = "/zh/variables/"
|
||
|
||
[[languages.zh.menu.docs]]
|
||
name = "CLI"
|
||
weight = 40
|
||
post = "break"
|
||
identifier = "commands"
|
||
url = "/commands/"
|
||
|
||
# LOW LEVEL ITEMS
|
||
[[languages.zh.menu.docs]]
|
||
name = "故障排除"
|
||
weight = 60
|
||
identifier = "troubleshooting"
|
||
url = "/zh/troubleshooting/"
|
||
|
||
[[languages.zh.menu.docs]]
|
||
name = "工具"
|
||
weight = 70
|
||
identifier = "tools"
|
||
url = "/zh/tools/"
|
||
|
||
[[languages.zh.menu.docs]]
|
||
name = "托管与部署"
|
||
weight = 80
|
||
identifier = "hosting-and-deployment"
|
||
url = "/zh/hosting-and-deployment/"
|
||
|
||
[[languages.zh.menu.docs]]
|
||
name = "贡献"
|
||
weight = 100
|
||
post = "break"
|
||
identifier = "contribute"
|
||
url = "/zh/contribute/"
|
||
|
||
[[languages.zh.menu.global]]
|
||
name = "新闻"
|
||
weight = 1
|
||
identifier = "news"
|
||
url = "/zh/news/"
|
||
|
||
[[languages.zh.menu.global]]
|
||
name = "文档"
|
||
weight = 5
|
||
identifier = "docs"
|
||
url = "/zh/documentation/"
|
||
|
||
[[languages.zh.menu.global]]
|
||
name = "主题"
|
||
weight = 10
|
||
identifier = "themes"
|
||
url = "https://themes.gohugo.io/"
|
||
|
||
[[languages.zh.menu.global]]
|
||
name = "作品展示"
|
||
weight = 20
|
||
identifier = "showcase"
|
||
url = "/zh/showcase/"
|
||
|
||
# Anything with a weight > 100 gets an external icon
|
||
[[languages.zh.menu.global]]
|
||
name = "社区"
|
||
weight = 150
|
||
icon = true
|
||
identifier = "community"
|
||
post = "external"
|
||
url = "https://discourse.gohugo.io/"
|
||
|
||
[[languages.zh.menu.global]]
|
||
name = "GitHub"
|
||
weight = 200
|
||
identifier = "github"
|
||
post = "external"
|
||
url = "https://github.com/gohugoio/hugo"
|