generator

package
v0.0.0-...-308a463 Latest Latest
Warning

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

Go to latest
Published: Sep 22, 2021 License: GPL-3.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GenerateIndexHTML

func GenerateIndexHTML(cfg *config.Config, posts *[]*Post) error

func GeneratePostsHTML

func GeneratePostsHTML(cfg *config.Config, posts []*Post) error

Types

type IndexPage

type IndexPage struct {
	BlogTitle string
	Author    string
	Posts     []*Post
	About     *Post
	Theme     string
	Descr     string
}

type Post

type Post struct {
	Number    int
	Title     string
	Date      string
	Tags      []string
	Filename  string
	Body      template.HTML
	Theme     string
	BlogTitle string
}

func GetAbout

func GetAbout(cfg *config.Config) *Post

The about file is like a post.

func GetPosts

func GetPosts(cfg *config.Config) []*Post

Jump to

Keyboard shortcuts

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