listing

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: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func PageListing

func PageListing(config site.Config, path string) ([]site.Page, error)

PageListing creates a listing of all pages in the site root, finding them recursively.

func PostListing

func PostListing(config site.Config, path string) ([]blog.Post, error)

PostListing returns a reverse-chronologically ordered listing of blog posts, based off of the passed path.

Types

type ByUnix

type ByUnix []blog.Post

ByUnix is an interface for sorting Pages by unix timestamp.

func (ByUnix) Len

func (a ByUnix) Len() int

func (ByUnix) Less

func (a ByUnix) Less(i, j int) bool

func (ByUnix) Swap

func (a ByUnix) Swap(i, j int)

Jump to

Keyboard shortcuts

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