forked from gohugoio/hugoDocs
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
9 changed files
with
413 additions
and
412 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,90 @@ | ||
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" | ||
|
||
|
||
# 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" | ||
|
||
[taxonomies] | ||
category = "categories" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
|
||
[en] | ||
contentDir = "content/en" | ||
languageName = "English" | ||
weight = 1 | ||
|
||
[zh] | ||
contentDir = "content/zh" | ||
languageName = "中文" | ||
weight = 2 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,154 @@ | ||
[[docs]] | ||
name = "About Hugo" | ||
weight = 1 | ||
identifier = "about" | ||
url = "/about/" | ||
|
||
[[docs]] | ||
name = "Getting Started" | ||
weight = 5 | ||
identifier = "getting-started" | ||
url = "/getting-started/" | ||
|
||
[[docs]] | ||
name = "Themes" | ||
weight = 15 | ||
identifier = "themes" | ||
post = "break" | ||
url = "/themes/" | ||
|
||
# Core Menus | ||
|
||
[[docs]] | ||
name = "Content Management" | ||
weight = 20 | ||
identifier = "content-management" | ||
post = "expanded" | ||
url = "/content-management/" | ||
|
||
[[docs]] | ||
name = "Templates" | ||
weight = 25 | ||
identifier = "templates" | ||
|
||
url = "/templates/" | ||
|
||
[[docs]] | ||
name = "Functions" | ||
weight = 30 | ||
identifier = "functions" | ||
url = "/functions/" | ||
|
||
[[docs]] | ||
name = "Variables" | ||
weight = 35 | ||
identifier = "variables" | ||
url = "/variables/" | ||
[[docs]] | ||
name = "Hugo Pipes" | ||
weight = 36 | ||
identifier = "pipes" | ||
url = "/hugo-pipes/" | ||
[[docs]] | ||
name = "CLI" | ||
weight = 40 | ||
post = "break" | ||
identifier = "commands" | ||
url = "/commands/" | ||
|
||
|
||
|
||
# LOW LEVEL ITEMS | ||
|
||
|
||
[[docs]] | ||
name = "Troubleshooting" | ||
weight = 60 | ||
identifier = "troubleshooting" | ||
url = "/troubleshooting/" | ||
|
||
[[docs]] | ||
name = "Tools" | ||
weight = 70 | ||
identifier = "tools" | ||
url = "/tools/" | ||
|
||
[[docs]] | ||
name = "Hosting & Deployment" | ||
weight = 80 | ||
identifier = "hosting-and-deployment" | ||
url = "/hosting-and-deployment/" | ||
|
||
[[docs]] | ||
name = "Contribute" | ||
weight = 100 | ||
post = "break" | ||
identifier = "contribute" | ||
url = "/contribute/" | ||
|
||
#[[docs]] | ||
# name = "Tags" | ||
# weight = 120 | ||
# identifier = "tags" | ||
# url = "/tags/" | ||
|
||
|
||
# [[docs]] | ||
# name = "Categories" | ||
# weight = 140 | ||
# identifier = "categories" | ||
# url = "/categories/" | ||
|
||
######## QUICKLINKS | ||
|
||
[[quicklinks]] | ||
name = "Fundamentals" | ||
weight = 1 | ||
identifier = "fundamentals" | ||
url = "/tags/fundamentals/" | ||
|
||
|
||
|
||
|
||
######## GLOBAL ITEMS TO BE SHARED WITH THE HUGO SITES | ||
|
||
[[global]] | ||
name = "News" | ||
weight = 1 | ||
identifier = "news" | ||
url = "/news/" | ||
|
||
[[global]] | ||
name = "Docs" | ||
weight = 5 | ||
identifier = "docs" | ||
url = "/documentation/" | ||
|
||
[[global]] | ||
name = "Themes" | ||
weight = 10 | ||
identifier = "themes" | ||
url = "https://themes.gohugo.io/" | ||
|
||
[[global]] | ||
name = "Showcase" | ||
weight = 20 | ||
identifier = "showcase" | ||
url = "/showcase/" | ||
|
||
# Anything with a weight > 100 gets an external icon | ||
[[global]] | ||
name = "Community" | ||
weight = 150 | ||
icon = true | ||
identifier = "community" | ||
post = "external" | ||
url = "https://discourse.gohugo.io/" | ||
|
||
|
||
[[global]] | ||
name = "GitHub" | ||
weight = 200 | ||
identifier = "github" | ||
post = "external" | ||
url = "https://github.com/gohugoio/hugo" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,121 @@ | ||
|
||
# Chinese menus | ||
|
||
[[docs]] | ||
name = "关于 Hugo" | ||
weight = 1 | ||
identifier = "about" | ||
url = "/zh/about/" | ||
|
||
[[docs]] | ||
name = "入门" | ||
weight = 5 | ||
identifier = "getting-started" | ||
url = "/zh/getting-started/" | ||
|
||
[[docs]] | ||
name = "主题" | ||
weight = 15 | ||
identifier = "themes" | ||
post = "break" | ||
url = "/zh/themes/" | ||
|
||
# Core languages.zh.menus | ||
|
||
[[docs]] | ||
name = "内容管理" | ||
weight = 20 | ||
identifier = "content-management" | ||
post = "expanded" | ||
url = "/zh/content-management/" | ||
|
||
[[docs]] | ||
name = "模板" | ||
weight = 25 | ||
identifier = "templates" | ||
url = "/zh/templates/" | ||
|
||
[[docs]] | ||
name = "函数" | ||
weight = 30 | ||
identifier = "functions" | ||
url = "/zh/functions/" | ||
|
||
[[docs]] | ||
name = "变量" | ||
weight = 35 | ||
identifier = "variables" | ||
url = "/zh/variables/" | ||
|
||
[[docs]] | ||
name = "CLI" | ||
weight = 40 | ||
post = "break" | ||
identifier = "commands" | ||
url = "/commands/" | ||
|
||
# LOW LEVEL ITEMS | ||
[[docs]] | ||
name = "故障排除" | ||
weight = 60 | ||
identifier = "troubleshooting" | ||
url = "/zh/troubleshooting/" | ||
|
||
[[docs]] | ||
name = "工具" | ||
weight = 70 | ||
identifier = "tools" | ||
url = "/zh/tools/" | ||
|
||
[[docs]] | ||
name = "托管与部署" | ||
weight = 80 | ||
identifier = "hosting-and-deployment" | ||
url = "/zh/hosting-and-deployment/" | ||
|
||
[[docs]] | ||
name = "贡献" | ||
weight = 100 | ||
post = "break" | ||
identifier = "contribute" | ||
url = "/zh/contribute/" | ||
|
||
[[global]] | ||
name = "新闻" | ||
weight = 1 | ||
identifier = "news" | ||
url = "/zh/news/" | ||
|
||
[[global]] | ||
name = "文档" | ||
weight = 5 | ||
identifier = "docs" | ||
url = "/zh/documentation/" | ||
|
||
[[global]] | ||
name = "主题" | ||
weight = 10 | ||
identifier = "themes" | ||
url = "https://themes.gohugo.io/" | ||
|
||
[[global]] | ||
name = "作品展示" | ||
weight = 20 | ||
identifier = "showcase" | ||
url = "/zh/showcase/" | ||
|
||
# Anything with a weight > 100 gets an external icon | ||
[[global]] | ||
name = "社区" | ||
weight = 150 | ||
icon = true | ||
identifier = "community" | ||
post = "external" | ||
url = "https://discourse.gohugo.io/" | ||
|
||
[[global]] | ||
name = "GitHub" | ||
weight = 200 | ||
identifier = "github" | ||
post = "external" | ||
url = "https://github.com/gohugoio/hugo" |
Oops, something went wrong.