services

package
v0.42.2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 28, 2018 License: Apache-2.0 Imports: 2 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

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

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

func DecodeConfig

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

type Disqus

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

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

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

type Instagram

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 Twitter

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL