site

package
v0.1.5 Latest Latest
Warning

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

Go to latest
Published: Jan 7, 2025 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Author

type Author interface {
	Name() string
	Email() string
}

type Disqus

type Disqus interface {
	IsDisqusEnabled() bool
	DisqusShortname() string
}

type GoogleAnalytics

type GoogleAnalytics interface {
	IsGoogleAnalyticsEnabled() bool
	GoogleAnalyticsID() string
	IsGoogleAnalyticsRespectDoNotTrack() bool
}

type Meta

type Meta interface {
	Params() maps.Params
}

type Namespace

type Namespace struct {
	Service
}

Namespace provides template functions for the "resources" namespace.

func New

func New(svc Service) *Namespace

New returns a new instance of the resources-namespaced template functions.

type Service

type Service interface {
	Author
	Meta
	GoogleAnalytics
	Disqus
}

Jump to

Keyboard shortcuts

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