render

package
v0.0.0-...-5a527e5 Latest Latest
Warning

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

Go to latest
Published: Apr 16, 2021 License: BSD-3-Clause Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Archive

func Archive(writer io.Writer, config site.Config, posts []blog.Post) error

Archive renders the passed blog posts to the passed io.Writer, using the site.Config to get the site's global variables as well as the "archive.html" template.

func Content

func Content(page site.Page) (string, error)

Content renders the passed page's content, using the passed Site for site wide template variables.

func Feed

func Feed(writer io.Writer, config site.Config, posts []blog.Post) error

Feed renders the passed blog posts to the passed io.Writer, using the site.Config to get feed specific metadata.

func Page

func Page(writer io.Writer, config site.Config, page site.Page) error

Page renders the passed page to the past io.Writer, using a template loaded from the passed site.Config.

func Post

func Post(writer io.Writer, config site.Config, post blog.Post) error

Post renders the passed blog post to the passed io.Writer, using the site.Config to get the required template.

func Recents

func Recents(writer io.Writer, config site.Config, posts []blog.Post) error

Recents renders the passed blog posts to the passed io.Writer, using the site.Config to get the site's global variables as well as the "recents.html" template.

Types

This section is empty.

Jump to

Keyboard shortcuts

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