parse

package
v0.3.3 Latest Latest
Warning

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

Go to latest
Published: May 3, 2022 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Key

type Key struct{}

func NewKey

func NewKey() *Key

func (*Key) Content

func (k *Key) Content(route string) string

func (*Key) Date

func (k *Key) Date(route string) string

func (*Key) Lang

func (k *Key) Lang(route string) string

func (*Key) Page added in v0.3.2

func (k *Key) Page(route string) string

func (*Key) Path added in v0.2.1

func (k *Key) Path(route string) string

func (*Key) TOC

func (k *Key) TOC(route string) string

type Markdown

type Markdown struct {
	Model *conf.Model
}

func NewMarkdown

func NewMarkdown(model *conf.Model) *Markdown

func (*Markdown) Parse

func (m *Markdown) Parse(path string) error

type Option added in v0.3.2

type Option struct {
	Template string
	Catalog  string
	Lang     string
	Page     int
}

type Path

type Path struct{}

func NewPath

func NewPath() *Path

func (*Path) Archive

func (p *Path) Archive(lang, archive string) string

func (*Path) Catalog

func (p *Path) Catalog(lang, catalog string) string

func (*Path) Category

func (p *Path) Category(lang, category string) string

func (*Path) Page added in v0.3.2

func (p *Path) Page(path string, page int) string

func (*Path) Route

func (p *Path) Route(lang, path, slug string) string

func (*Path) Tag

func (p *Path) Tag(lang, tag string) string

Jump to

Keyboard shortcuts

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