template

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Apr 16, 2020 License: MIT Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func MilligramStyles

func MilligramStyles() string

func ModernNormalizeStyles

func ModernNormalizeStyles() string

func NonReadableArticleHTML

func NonReadableArticleHTML() string

func ReadableArticleHTML

func ReadableArticleHTML() string

func Render

func Render(content string, args RenderArgs) string

func Styles

func Styles() string

Types

type RenderArgs

type RenderArgs struct {
	Address     *url.URL
	Title       string
	Image       string
	Excerpt     string
	Byline      string
	SiteName    string
	ReadingTime int
	Content     template.HTML
	ArchivedAt  string
	Error       error
}

func CreateNonReadableArticleRenderArgs

func CreateNonReadableArticleRenderArgs(url *url.URL, archivedAt time.Time, err error) RenderArgs

func CreateReadableArticleRenderArgs

func CreateReadableArticleRenderArgs(url *url.URL, archivedAt time.Time, article readability.Article) RenderArgs

Jump to

Keyboard shortcuts

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