Documentation
¶
Overview ¶
Package publicsite renders published content as the built-in public site.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Config ¶
type Config struct {
// Content reads the published content the site shows.
Content Reader
// Locale answers the language the site chose for itself. Nil leaves the site in en-US.
Locale SiteLocale
// Types answers which content type an address belongs to.
Types content.TypeReader
// Title names the site in its chrome.
Title string
// Version is the application version the pages report.
Version string
}
Config carries what the site renders with.
type Reader ¶
type Reader interface {
List(ctx context.Context, f content.Filter) ([]content.Content, int, error)
PublishedByPath(ctx context.Context, path string) (content.Content, error)
RelatedTo(ctx context.Context, target uuid.UUID, page, perPage int) ([]content.Content, int, error)
}
Reader reads the published content the site serves.
Click to show internal directories.
Click to hide internal directories.