summaryrefslogtreecommitdiffstats
path: root/exampleSite/config/_default/config.yaml
blob: 5adea78703d688a352094a1065f60fb3b0c437bd (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
# You may need to change this line for your real project.
baseURL: /

# Keep title short to prevent overflow.
# There’s no official guidance on this, but 40 characters for
# mobile and 60 for desktop is roughly the sweet spot.
#
# NB: Final title of shareable pages will be this plus the
#     title of the page. Eg. "Contacts - Ed."
title: Ed.

enableRobotsTXT: true

# When using ref or relref to resolve page links and a link cannot
# resolve, it will be logged with this log level.
refLinksErrorLevel: WARNING

# We have just the default tags taxonomy, and remove the categories
# taxonomy for site as not used.
taxonomies:
  tag: tags

minify:
  # Do not minify XML files to avoid CDATA escape issues
  disableXML: true
  tdewolff:
    html:
      keepQuotes: true

outputs:
  home: [HTML, RSS, MANIFEST, Atom, JSONFEED, JSON, humanstxt]
  page: [HTML]
  rss: [RSS]
  section: [HTML, RSS, Atom, JSONFEED]
  taxonomy: [HTML, RSS]
  term: [HTML, RSS]

outputFormats:
  # For more see: https://validator.w3.org/feed/docs/atom.html#whatIsAtom
  Atom:
    name: Atom
    # The correct header Content-Type header for an Atom feed is
    # application/atom+xml. However, Chromium does not handle it
    # correctly (see https://code.google.com/p/chromium/issues/detail?id=104358).
    #
    # The most compatible header is 'text/xml; charset=utf-8', which
    # will cause the feed to be parsed correctly by most clients.
    # Note that you should be encoding your feed in UTF-8.
    mediaType: text/xml
    # generated file = <baseName>.<mediaType.'text/xml'.suffixes[0]> = atom.xml
    baseName: atom
    rel: alternate
    isPlainText: false
    isHTML: false
    noUgly: true
    permalinkable: false

  # For more see: https://www.jsonfeed.org/
  JSONFEED:
    name: JsonFeed
    mediaType: application/feed+json
    baseName: feed
    rel: alternate
    isPlainText: true
    isHTML: false
    noUgly: false

  MANIFEST:
    # The .webmanifest extension is specified in the Media type registration
    # section of the specification (the response of the manifest file should
    # return Content-Type: application/manifest+json).
    #
    # For more see: https://w3c.github.io/manifest/#media-type-registration=
    name: Manifest
    mediaType: application/manifest+json
    baseName: manifest
    rel: manifest
    isPlainText: true
    isHTML: false
    noUgly: false
    notAlternative: false

  # For more see: https://gohugo.io/templates/output-formats/
  humanstxt:
    mediaType: text/plain
    baseName: humans
    rel: author
    isPlainText: true
    isHTML: false
    noUgly: true
    permalinkable: false
    notAlternative: true

mediaTypes:
  text/xml:
    suffixes:
      - xml
  application/feed+json:
    suffixes:
      - json

# Sitemap config
sitemap:
  changefreq: monthly
  filename: sitemap.xml
  priority: 0.5

# For more see https://gohugo.io/getting-started/configuration-markup/
markup:
  defaultMarkdownHandler: goldmark
  highlight:
    # false due to generated Syntax Highlighter CSS
    noClasses: false
  goldmark:
    parser:
      attribute:
        # Enable custom attribute support for blocks
        block: true

# If enableGitInfo is true, it will override any lastmod dates in our
# front matter. We should at least allow ourselves to manually override
# this value in the front matter.
frontmatter:
  lastmod:
    - lastmod
    - ':git'
    - date
    - publishDate

module:
  hugoVersion:
    extended: true
    min: '0.121.0'
  imports:
    # Use full path to theme's repository. This is replaced in go.mod for
    # exampleSite to point to the directory above.
    - path: github.com/sergeyklay/gohugo-theme-ed