internal

package
v1.0.20 Latest Latest
Warning

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

Go to latest
Published: Feb 23, 2025 License: MIT Imports: 19 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Generate

func Generate(srcFolder, destination string, s *site, conf siteConfig) error

Generates the static html files for the site and writes them to the destination folder.

func NewDocument

func NewDocument(path string, content []byte) (document, error)

NewDocument takes the path of a document and its content and returns a parsed document with the metadata applied.

func NewSite

func NewSite(folder string, conf siteConfig) (*site, error)

Reads the folder and returns the parsed site with all the documents this site will be used to generate the static html files.

func ReadConfig added in v1.0.20

func ReadConfig(folder string) (c siteConfig, err error)

Read parses the _meta.md file and returns the config for the site.

Types

type Link struct {
	Text     string
	Link     string
	Icon     string
	ImageSrc string
}

Jump to

Keyboard shortcuts

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