Skip to content

Configuration

WingLim edited this page Oct 23, 2021 · 10 revisions

Configurations for hugo-tania

Edit your site config following exampleSite/config.yaml.

You can also see the toml example in exampleSite/config.example.toml.

Menu

Add header/footer menu items.

menu:
  header:
    - name: Articles
      url: "/articles/"
  footer:
    - name: RSS
      url: "/index.xml"

Site Configuration

There are a few configuration options that you can add to your config.yaml file.

Notice: If you enable lineNos in markup.hightlight.lineNos, you need to set enableLineNos to true, to make sure copy button work correctly.

params:
  # Emoji will show before the blog title on site navbar.
  titleEmoji: '😎'

  # Logo will show before the blog title on site navbar.
  titleLogo:
  
  # Enable float footnotes.
  # Default to true
  enableFootnotes: true

  # Enable line numbers, it need to set the same value with
  # markup.hightlight.lineNos
  # Default to false
  enableLineNos: false

  # Limit how many categories filter show above search input.
  # Default to 5
  maxCategoryToShow: 10

  # Show your socail information with icon on index bio with `_index.md` content.
  socialOptions:
    dev-to:
    email:
    facebook:
    github:
    instagram:
    linkedin:
    medium:
    stack-overflow:
    steam:
    telegram:
    twitter:
    twitch:
    whatsapp:

  # Addtional option for meta SEO
  siteName:
  siteDesc: 
  author: 

  # Comments settings
  comments:
    enabled: true
    provider: disqus

Comments

hugo-tania now support these comments system:

  • Cusdis
  • Disqus
  • Utterances
  • Giscus

Cusdis

comments:
    enabled: true
    provider: cusdis

    cusdis:
        id:
        # use for self-host curdis server, default as https://curdis.com
        host:  

Disqus

disqusShortname: 
comments:
    enabled: true
    provider: disqus

Utterances

comments:
    enabled: true
    provider: utterances
    
    utterances:
        repo:
        issueTerm:
        label: 

Giscus

comments:
    enabled: true
    provider: giscus
    
    giscus:
        repo:
        id:
        category:
            name:
            id:
        # default to pathname, do not support specific term or number now
        # options: url, title, og:title
        mapping:
        # 1 means true, 0 means false
        # default to 1
        reactionsEnabled:
        # default to 0
        emitMetadata:
Clone this wiki locally