Skip to content
Snippets Groups Projects
Select Git revision
  • da22a41f609c74b9720b6d7b5eda334882da0d28
  • master default protected
2 results

config.yaml

Blame
  • config.yaml 4.36 KiB
    # hugo server --minify --themesDir ../.. --baseURL=http://0.0.0.0:1313/theme/hugo-book/
    
    baseURL: https://example.com/
    title: Hugo Book
    theme: hugo-book
    
    # Book configuration
    disablePathToLower: true
    enableGitInfo: true
    
    # Needed for mermaid/katex shortcodes
    markup:
      goldmark:
        renderer:
          unsafe: true
      tableOfContents:
        startLevel: 1
    
    # Multi-lingual mode config
    # There are different options to translate files
    # See https://gohugo.io/content-management/multilingual/#translation-by-filename
    # And https://gohugo.io/content-management/multilingual/#translation-by-content-directory
    languages:
      en:
        languageName: English
        contentDir: content.en
        weight: 1
      ru:
        languageName: Russian
        contentDir: content.ru
        weight: 2
      zh:
        languageName: Chinese
        contentDir: content.zh
        weight: 3
    
    menu:
      # before: []
      after:
        - name: "Github"
          url: "https://github.com/alex-shpak/hugo-book"
          weight: 10
        - name: "Hugo Themes"
          url: "https://themes.gohugo.io/themes/hugo-book/"
          weight: 20
    
    params:
      # (Optional, default light) Sets color theme: light, dark or auto.
      # Theme 'auto' switches between dark and light modes based on browser/os preferences
      BookTheme: "light"
    
      # (Optional, default true) Controls table of contents visibility on right side of pages.
      # Start and end levels can be controlled with markup.tableOfContents setting.
      # You can also specify this parameter per page in front matter.
      BookToC: true
    
      # (Optional, default favicon.png) Set the path to a favicon file.
      # If the favicon is /static/favicon.png then the path would be favicon.png
      # BookFavicon: "favicon.png"
    
      # (Optional, default none) Set the path to a logo for the book.
      # If the logo is /static/logo.png then the path would be logo.png
      # BookLogo: /logo.png
    
      # (Optional, default none) Set leaf bundle to render as side menu
      # When not specified file structure and weights will be used
      # BookMenuBundle: /menu
    
      # (Optional, default docs) Specify root page to render child pages as menu.
      # Page is resoled by .GetPage function: https://gohugo.io/functions/getpage/