hugo: github.com/gohugoio/hugo/config/services Index | Files

package services

import "github.com/gohugoio/hugo/config/services"

Index

Package Files

servicesConfig.go

type Config Uses

type Config struct {
    Disqus          Disqus
    GoogleAnalytics GoogleAnalytics
    Instagram       Instagram
    Twitter         Twitter
    RSS             RSS
}

Config is a privacy configuration for all the relevant services in Hugo.

func DecodeConfig Uses

func DecodeConfig(cfg config.Provider) (c Config, err error)

DecodeConfig creates a services Config from a given Hugo configuration.

type Disqus Uses

type Disqus struct {
    // A Shortname is the unique identifier assigned to a Disqus site.
    Shortname string
}

Disqus holds the functional configuration settings related to the Disqus template.

type GoogleAnalytics Uses

type GoogleAnalytics struct {
    // The GA tracking ID.
    ID string
}

GoogleAnalytics holds the functional configuration settings related to the Google Analytics template.

type Instagram Uses

type Instagram struct {
    // The Simple variant of the Instagram is decorated with Bootstrap 4 card classes.
    // This means that if you use Bootstrap 4 or want to provide your own CSS, you want
    // to disable the inline CSS provided by Hugo.
    DisableInlineCSS bool
}

Instagram holds the functional configuration settings related to the Instagram shortcodes.

type RSS Uses

type RSS struct {
    // Limit the number of pages.
    Limit int
}

RSS holds the functional configuration settings related to the RSS feeds.

type Twitter Uses

type Twitter struct {
    // The Simple variant of Twitter is decorated with a basic set of inline styles.
    // This means that if you want to provide your own CSS, you want
    // to disable the inline CSS provided by Hugo.
    DisableInlineCSS bool
}

Twitter holds the functional configuration settings related to the Twitter shortcodes.

Package services imports 2 packages (graph) and is imported by 20 packages. Updated 2019-08-14. Refresh now. Tools for package owners.