aboutsummaryrefslogtreecommitdiff
path: root/hugo.toml
diff options
context:
space:
mode:
Diffstat (limited to 'hugo.toml')
-rw-r--r--hugo.toml81
1 files changed, 72 insertions, 9 deletions
diff --git a/hugo.toml b/hugo.toml
index c8f69d7..bc8499b 100644
--- a/hugo.toml
+++ b/hugo.toml
@@ -89,12 +89,65 @@ page = "/pages/:slug/"
# block = [["\\[", "\\]"], ["$$", "$$"]]
# inline = [["\\(", "\\)"]]
-[markup.goldmark.renderer]
-unsafe = true
+[markup]
+[markup.goldmark]
+duplicateResourceFiles = false
+[markup.goldmark.extensions]
+definitionList = true
+footnote = true
+linkify = true
+linkifyProtocol = 'https'
+strikethrough = true
+table = true
+taskList = true
+[markup.goldmark.extensions.extras]
+[markup.goldmark.extensions.extras.delete]
+enable = false
+[markup.goldmark.extensions.extras.insert]
+enable = false
+[markup.goldmark.extensions.extras.mark]
+enable = false
+[markup.goldmark.extensions.extras.subscript]
+enable = false
+[markup.goldmark.extensions.extras.superscript]
+enable = false
+[markup.goldmark.extensions.passthrough]
+enable = false
+[markup.goldmark.extensions.passthrough.delimiters]
+block = []
+inline = []
+[markup.goldmark.extensions.typographer]
+apostrophe = '’'
+disable = false
+ellipsis = '…'
+emDash = '—'
+enDash = '–'
+leftAngleQuote = '«'
+leftDoubleQuote = '“'
+leftSingleQuote = '‘'
+rightAngleQuote = '»'
+rightDoubleQuote = '”'
+rightSingleQuote = '’'
+[markup.goldmark.parser]
+autoHeadingID = true
+autoHeadingIDType = 'github'
+wrapStandAloneImageWithinParagraph = true
+[markup.goldmark.parser.attribute]
+block = false
+title = true
+[markup.goldmark.renderHooks]
+[markup.goldmark.renderHooks.image]
+enableDefault = false
+[markup.goldmark.renderHooks.link]
+enableDefault = false
+[markup.goldmark.renderer]
+hardWraps = false
+unsafe = false
+xhtml = false
[markup.tableOfContents]
endLevel = 4
-ordered = true
+ordered = false
startLevel = 1
[markup.highlight]
@@ -113,11 +166,11 @@ suffixes = ["gmi"]
suffixes = ["txt"]
[outputs]
-page = ["html", "gemini"]
-home = ["html", "json", "gemini"]
-section = ["html", "rss", "json", "gemini"]
-taxonomy = ["html", "gemini"]
-term = ["html", "gemini"]
+page = ["html", "gemini", "text"]
+home = ["html", "json", "gemini", "text"]
+section = ["html", "rss", "json", "gemini", "text"]
+taxonomy = ["html", "gemini", "text"]
+term = ["html", "gemini", "text"]
[outputFormats.Gemini]
name = "gemini"
@@ -129,6 +182,16 @@ isHTML = false
protocol = "gemini://"
noUgly = true
+[outputFormats.Text]
+name = "text"
+mediaType = "text/plain"
+baseName = "index"
+isPlainText = true
+permalinkable = true
+isHTML = false
+protocol = "gopher://"
+noUgly = true
+
[pagination]
disableAliases = false
pagerSize = 10
@@ -136,4 +199,4 @@ path = "page"
# [taxonomies]
# tag = 'Тег'
-# category = "categories" \ No newline at end of file
+# category = "categories"