github.com/jbramsden/hugo@v0.47.1/docs/config.toml (about)

     1  baseURL = "https://gohugo.io/"
     2  paginate =  100
     3  defaultContentLanguage = "en"
     4  enableEmoji = true
     5  # Set the unicode character used for the "return" link in page footnotes.
     6  footnotereturnlinkcontents = "↩"
     7  languageCode = "en-us"
     8  metaDataFormat = "yaml"
     9  title = "Hugo"
    10  theme = "gohugoioTheme"
    11  
    12  googleAnalytics = "UA-7131036-4"
    13  
    14  pluralizeListTitles = false
    15  
    16  # We do redirects via Netlify's _redirects file, generated by Hugo (see "outputs" below).
    17  disableAliases = true
    18  
    19  # Highlighting config (Pygments)
    20  # It is (currently) not in use, but you can do ```go in a content file if you want to.
    21  pygmentsCodeFences = true
    22  
    23  pygmentsOptions = ""
    24  # Use the Chroma stylesheet
    25  pygmentsUseClasses = true
    26  pygmentsUseClassic = false
    27  
    28  # See https://help.farbox.com/pygments.html
    29  pygmentsStyle = "trac"
    30  
    31  [outputs]
    32  home = [ "HTML", "RSS", "REDIR", "HEADERS" ]
    33  section = [ "HTML", "RSS"]
    34  
    35  [mediaTypes]
    36  [mediaTypes."text/netlify"]
    37  delimiter = ""
    38  
    39  [outputFormats]
    40  [outputFormats.REDIR]
    41  mediatype = "text/netlify"
    42  baseName = "_redirects"
    43  isPlainText = true
    44  notAlternative = true
    45  [outputFormats.HEADERS]
    46  mediatype = "text/netlify"
    47  baseName = "_headers"
    48  isPlainText = true
    49  notAlternative = true
    50  
    51  [related]
    52  
    53  threshold = 80
    54  includeNewer = true
    55  toLower = false
    56  
    57  [[related.indices]]
    58  name = "keywords"
    59  weight = 100
    60  [[related.indices]]
    61  name  = "date"
    62  weight = 10
    63  pattern = "2006"
    64  
    65  [social]
    66  twitter = "GoHugoIO"
    67  
    68  #CUSTOM PARAMS
    69  [params]
    70    description = "The world’s fastest framework for building websites"
    71    ## Used for views in rendered HTML (i.e., rather than using the .Hugo variable)
    72    release = "0.47.1"
    73    ## Setting this to true will add a "noindex" to *EVERY* page on the site
    74    removefromexternalsearch = false
    75    ## Gh repo for site footer (include trailing slash)
    76    ghrepo = "https://github.com/gohugoio/hugoDocs/"
    77    ## GH Repo for filing a new issue
    78    github_repo = "https://github.com/gohugoio/hugo/issues/new"
    79    ### Edit content repo (set to automatically enter "edit" mode; this is good for "improve this page" links)
    80    ghdocsrepo = "https://github.com/gohugoio/hugoDocs/tree/master/docs"
    81    ## Gitter URL
    82    gitter = "https://gitter.im/spf13/hugo"
    83    ## Discuss Forum URL
    84    forum = "https://discourse.gohugo.io/"
    85    ## Google Tag Manager
    86    gtmid = ""
    87  
    88    # First one is picked as the Twitter card image if not set on page.
    89    images = ["images/gohugoio-card.png"]
    90  
    91    flex_box_interior_classes = "flex-auto w-100 w-40-l mr3 mb3 bg-white ba b--moon-gray nested-copy-line-height"
    92  
    93    #sidebar_direction = "sidebar_left"
    94  
    95  # MARKDOWN
    96  ## Configuration for BlackFriday markdown parser: https://github.com/russross/blackfriday
    97  [blackfriday]
    98  	plainIDAnchors = true
    99    # See https://github.com/gohugoio/hugo/issues/2424
   100  	hrefTargetBlank = false
   101    angledQuotes = false
   102    latexDashes = true
   103  
   104  [imaging]
   105  # See https://github.com/disintegration/imaging
   106  # CatmullRom is a sharp bicubic filter which should fit the docs site well with its many screenshots.
   107  # Note that you can also set this per image processing.
   108  resampleFilter = "CatmullRom"
   109  
   110  # Defatult JPEG quality setting. Default is 75.
   111  quality = 75
   112  
   113  anchor = "smart"
   114  
   115  
   116  ## 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.
   117  [taxonomies]
   118    category = "categories"
   119  
   120  # High level items
   121  
   122  [[menu.docs]]
   123    name = "About Hugo"
   124    weight = 1
   125    identifier = "about"
   126    url = "/about/"
   127  
   128  [[menu.docs]]
   129    name = "Getting Started"
   130    weight = 5
   131    identifier = "getting-started"
   132    url = "/getting-started/"
   133  
   134  
   135  [[menu.docs]]
   136    name = "Themes"
   137    weight = 15
   138    identifier = "themes"
   139    post = "break"
   140    url = "/themes/"
   141  
   142  # Core Menus
   143  
   144  [[menu.docs]]
   145    name = "Content Management"
   146    weight = 20
   147    identifier = "content-management"
   148    post = "expanded"
   149    url = "/content-management/"
   150  
   151  [[menu.docs]]
   152    name = "Templates"
   153    weight = 25
   154    identifier = "templates"
   155  
   156    url = "/templates/"
   157  
   158  [[menu.docs]]
   159    name = "Functions"
   160    weight = 30
   161    identifier = "functions"
   162    url = "/functions/"
   163  
   164  [[menu.docs]]
   165    name = "Variables"
   166    weight = 35
   167    identifier = "variables"
   168    url = "/variables/"
   169  [[menu.docs]]
   170    name = "Hugo Pipes"
   171    weight = 36
   172    identifier = "pipes"
   173    url = "/hugo-pipes/"
   174  [[menu.docs]]
   175    name = "CLI"
   176    weight = 40
   177    post = "break"
   178    identifier = "commands"
   179    url = "/commands/"
   180  
   181  
   182  
   183  # LOW LEVEL ITEMS
   184  
   185  
   186  [[menu.docs]]
   187    name = "Troubleshooting"
   188    weight = 60
   189    identifier = "troubleshooting"
   190    url = "/troubleshooting/"
   191  
   192  [[menu.docs]]
   193    name = "Tools"
   194    weight = 70
   195    identifier = "tools"
   196    url = "/tools/"
   197  
   198  [[menu.docs]]
   199    name = "Hosting & Deployment"
   200    weight = 80
   201    identifier = "hosting-and-deployment"
   202    url = "/hosting-and-deployment/"
   203  
   204  [[menu.docs]]
   205    name = "Contribute"
   206    weight = 100
   207    post = "break"
   208    identifier = "contribute"
   209    url = "/contribute/"
   210  
   211  #[[menu.docs]]
   212  #  name = "Tags"
   213  #  weight = 120
   214  #  identifier = "tags"
   215  #  url = "/tags/"
   216  
   217  
   218  # [[menu.docs]]
   219  #   name = "Categories"
   220  #   weight = 140
   221  #   identifier = "categories"
   222  #   url = "/categories/"
   223  
   224  ######## QUICKLINKS
   225  
   226    [[menu.quicklinks]]
   227      name = "Fundamentals"
   228      weight = 1
   229      identifier = "fundamentals"
   230      url = "/tags/fundamentals/"
   231  
   232  
   233  
   234  
   235  ######## GLOBAL ITEMS TO BE SHARED WITH THE HUGO SITES
   236  
   237  [[menu.global]]
   238      name = "News"
   239      weight = 1
   240      identifier = "news"
   241      url = "/news/"
   242  
   243    [[menu.global]]
   244      name = "Docs"
   245      weight = 5
   246      identifier = "docs"
   247      url = "/documentation/"
   248  
   249    [[menu.global]]
   250      name = "Themes"
   251      weight = 10
   252      identifier = "themes"
   253      url = "https://themes.gohugo.io/"
   254  
   255      [[menu.global]]
   256        name = "Showcase"
   257        weight = 20
   258        identifier = "showcase"
   259        url = "/showcase/"
   260  
   261    # Anything with a weight > 100 gets an external icon
   262    [[menu.global]]
   263      name = "Community"
   264      weight = 150
   265      icon = true
   266      identifier = "community"
   267      post = "external"
   268      url = "https://discourse.gohugo.io/"
   269  
   270  
   271    [[menu.global]]
   272      name = "GitHub"
   273      weight = 200
   274      identifier = "github"
   275      post = "external"
   276      url = "https://github.com/gohugoio/hugo"
   277  
   278  ### LANGUAGES ###
   279  
   280  [languages]
   281    [languages.en]
   282      contentDir = "content/en"
   283      languageName = "English"
   284      weight = 1
   285    [languages.zh]
   286      contentDir = "content/zh"
   287      languageName = "中文"
   288      weight = 2
   289  
   290  
   291  ### LANGUAGE-SPECIFIC MENUS ###
   292  
   293  # Chinese menus
   294  
   295  [[languages.zh.menu.docs]]
   296    name = "关于 Hugo"
   297    weight = 1
   298    identifier = "about"
   299    url = "/zh/about/"
   300  
   301  [[languages.zh.menu.docs]]
   302    name = "入门"
   303    weight = 5
   304    identifier = "getting-started"
   305    url = "/zh/getting-started/"
   306  
   307  [[languages.zh.menu.docs]]
   308    name = "主题"
   309    weight = 15
   310    identifier = "themes"
   311    post = "break"
   312    url = "/zh/themes/"
   313  
   314  # Core languages.zh.menus
   315  
   316  [[languages.zh.menu.docs]]
   317    name = "内容管理"
   318    weight = 20
   319    identifier = "content-management"
   320    post = "expanded"
   321    url = "/zh/content-management/"
   322  
   323  [[languages.zh.menu.docs]]
   324    name = "模板"
   325    weight = 25
   326    identifier = "templates"
   327    url = "/zh/templates/"
   328  
   329  [[languages.zh.menu.docs]]
   330    name = "函数"
   331    weight = 30
   332    identifier = "functions"
   333    url = "/zh/functions/"
   334  
   335  [[languages.zh.menu.docs]]
   336    name = "变量"
   337    weight = 35
   338    identifier = "variables"
   339    url = "/zh/variables/"
   340  
   341  [[languages.zh.menu.docs]]
   342    name = "CLI"
   343    weight = 40
   344    post = "break"
   345    identifier = "commands"
   346    url = "/commands/"
   347  
   348  # LOW LEVEL ITEMS
   349  [[languages.zh.menu.docs]]
   350    name = "故障排除"
   351    weight = 60
   352    identifier = "troubleshooting"
   353    url = "/zh/troubleshooting/"
   354  
   355  [[languages.zh.menu.docs]]
   356    name = "工具"
   357    weight = 70
   358    identifier = "tools"
   359    url = "/zh/tools/"
   360  
   361  [[languages.zh.menu.docs]]
   362    name = "托管与部署"
   363    weight = 80
   364    identifier = "hosting-and-deployment"
   365    url = "/zh/hosting-and-deployment/"
   366  
   367  [[languages.zh.menu.docs]]
   368    name = "贡献"
   369    weight = 100
   370    post = "break"
   371    identifier = "contribute"
   372    url = "/zh/contribute/"
   373  
   374  [[languages.zh.menu.global]]
   375    name = "新闻"
   376    weight = 1
   377    identifier = "news"
   378    url = "/zh/news/"
   379  
   380  [[languages.zh.menu.global]]
   381    name = "文档"
   382    weight = 5
   383    identifier = "docs"
   384    url = "/zh/documentation/"
   385  
   386  [[languages.zh.menu.global]]
   387    name = "主题"
   388    weight = 10
   389    identifier = "themes"
   390    url = "https://themes.gohugo.io/"
   391  
   392  [[languages.zh.menu.global]]
   393    name = "作品展示"
   394    weight = 20
   395    identifier = "showcase"
   396    url = "/zh/showcase/"
   397  
   398  # Anything with a weight > 100 gets an external icon
   399  [[languages.zh.menu.global]]
   400    name = "社区"
   401    weight = 150
   402    icon = true
   403    identifier = "community"
   404    post = "external"
   405    url = "https://discourse.gohugo.io/"
   406  
   407  [[languages.zh.menu.global]]
   408    name = "GitHub"
   409    weight = 200
   410    identifier = "github"
   411    post = "external"
   412    url = "https://github.com/gohugoio/hugo"