rss

package
v0.8.0 Latest Latest
Warning

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

Go to latest
Published: Mar 24, 2026 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Overview

Package rss defines defaults and formatting constants for site feed generation.

Index

Constants

View Source
const (
	// DefaultFeedInputDir is the default blog source directory.
	DefaultFeedInputDir = "docs/blog"
	// DefaultFeedOutPath is the default output path for the Atom feed.
	DefaultFeedOutPath = "site/feed.xml"
	// DefaultFeedBaseURL is the default base URL for feed entry links.
	DefaultFeedBaseURL = "https://ctx.ist"
	// FeedAtomNS is the Atom XML namespace URI.
	FeedAtomNS = "http://www.w3.org/2005/Atom"
	// FeedTitle is the default feed title.
	FeedTitle = "ctx blog"
	// FeedDefaultAuthor is the default author for feed entries.
	FeedDefaultAuthor = "Jose Alekhinne"
	// FeedXMLHeader is the XML declaration prepended to feed output.
	FeedXMLHeader = `<?xml version="1.0" encoding="utf-8"?>` + token.NewlineLF
)

Site feed defaults.

View Source
const (
	FeedPath     = "/feed.xml"
	BlogPath     = "/blog/"
	LinkRelSelf  = "self"
	TimeSuffixZ  = "T00:00:00Z"
	SkipSentinel = " - "
	URLSlash     = "/"
)

Feed URL path constants.

Variables

This section is empty.

Functions

This section is empty.

Types

This section is empty.

Jump to

Keyboard shortcuts

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