page

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Apr 2, 2021 License: GPL-3.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func InsertPage

func InsertPage(p *Page)

Types

type Heading

type Heading struct {
	Value    int
	Text     string
	IDLink   string
	Parent   *Heading
	Children []*Heading
}

type Options

type Options struct {
	Abstract    string   `yaml:"abstract"`
	AuthorList  []string `yaml:"authorList"`
	Layout      string   `yaml:"layout"`
	PublishDate string   `yaml:"publishDate"`
	LastUpdated string   `yaml:"lastUpdated"`
	Tags        []string `yaml:"tags"`
	Title       string   `yaml:"title"`

	Authors []configuration.Author
}

type Page

type Page struct {
	Options  Options                      `handlebars:"document"`
	Content  string                       `handlebars:"content"`
	Headings []*Heading                   `handlebars:"headings"`
	Global   *configuration.Configuration `handlebars:"global"`
	Pages    []*Page                      `handlebars:"pages"`

	RelativePath string
	// contains filtered or unexported fields
}

func NewFromFile

func NewFromFile(pagePath string, configurationOptions *configuration.Configuration) (page *Page, err error)

func (*Page) CreateFile

func (p *Page) CreateFile(configurationOptions *configuration.Configuration, l layout.Layout) error

Jump to

Keyboard shortcuts

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