Documentation ¶
Overview ¶
Package blog implements a web server for articles written in present format.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct { ContentPath string // Relative or absolute location of article files and related content. TemplatePath string // Relative or absolute location of template files. BaseURL string // Absolute base URL (for permalinks; no trailing slash). BasePath string // Base URL path relative to server root (no trailing slash). GodocURL string // The base URL of godoc (for menu bar; no trailing slash). Hostname string // Server host name, used for rendering ATOM feeds. AnalyticsHTML template.HTML // Optional analytics HTML to insert at the beginning of <head>. HomeArticles int // Articles to display on the home page. FeedArticles int // Articles to include in Atom and JSON feeds. FeedTitle string // The title of the Atom XML feed PlayEnabled bool ServeLocalLinks bool // rewrite golang.org/{pkg,cmd} links to host-less, relative paths. }
Config specifies Server configuration values.
type Doc ¶
type Doc struct { *present.Doc Permalink string // Canonical URL for this document. Path string // Path relative to server root (including base). HTML template.HTML // rendered article Related []*Doc Newer, Older *Doc }
Doc represents an article adorned with presentation data.
Click to show internal directories.
Click to hide internal directories.