seo

package
v0.0.0-...-72e02f8 Latest Latest
Warning

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

Go to latest
Published: Nov 24, 2024 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type SEO

type SEO interface {
	Site(site *model.Site) SEO
	Page(page *model.Page) SEO
	Title() string
	ReverseTitle() string
	FirstTitle() string
	SetTitle(title string) SEO
	AddTitle(title string) SEO
	Separator() string
	SetSeparator(separator string) SEO
	Metas() map[string]map[string]string
	SetMetas(metas map[string]map[string]string) SEO
	AddMeta(typ, name, content string) SEO
	RemoveMeta(typ, name string) SEO
	HasMeta(typ, name string) bool
	HTMLAttributes() map[string]string
	SetHTMLAttributes(attrs map[string]string) SEO
	AddHTMLAttribute(name, content string) SEO
	RemoveHTMLAttribute(name string) SEO
	HasHTMLAttribute(name string) bool
	HeadAttributes() map[string]string
	SetHeadAttributes(attrs map[string]string) SEO
	AddHeadAttribute(name, content string) SEO
	RemoveHeadAttribute(name string) SEO
	HasHeadAttribute(name string) bool
	BodyAttributes() map[string]string
	SetBodyAttributes(attrs map[string]string) SEO
	AddBodyAttribute(name, content string) SEO
	RemoveBodyAttribute(name string) SEO
	HasBodyAttribute(name string) bool
	LinkCanonical() string
	SetLinkCanonical(link string) SEO
	RemoveLinkCanonical() SEO
	LangAlternates() map[string]string
	SetLangAlternates(langAlternates map[string]string) SEO
	AddLangAlternate(href, hreflang string) SEO
	RemoveLangAlternate(href string) SEO
	HasLangAlternate(href string) bool
	OEmbedLinks() map[string]string
	AddOEmbedLink(title, link string) SEO
}

func NewSEO

func NewSEO() SEO

Jump to

Keyboard shortcuts

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