seoexample

package
v0.11.0 Latest Latest
Warning

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

Go to latest
Published: Jun 22, 2026 License: MPL-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Config = gowdk.Config{
	CSS: gowdk.CSSConfig{
		Include: []string{"examples/seo/*.css"},
	},
	Addons: []gowdk.Addon{
		seo.Addon(seo.Options{
			BaseURL:  "https://example.com",
			Disallow: []string{"/drafts"},
			ExtraURLs: []seo.URL{
				{Loc: "/rss.xml"},
			},
			DynamicSitemap: seo.DynamicSitemap{
				ImportPath:   "github.com/cssbruno/gowdk/examples/seo",
				Function:     "DynamicSitemapURLs",
				MaxURLs:      25,
				CacheSeconds: 300,
			},
		}),
	},
}

Functions

func DynamicSitemapURLs added in v0.10.0

func DynamicSitemapURLs(ctx context.Context) ([]seo.URL, error)

Types

This section is empty.

Jump to

Keyboard shortcuts

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