render

package
v15.1.0 Latest Latest
Warning

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

Go to latest
Published: May 25, 2021 License: MIT Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ProcessDir

func ProcessDir(src, dst, baseURL string, disableAnalytics, embedStyle bool) error

Types

type PageData

type PageData struct {
	// mandatory
	Title        string
	Description  string
	URLCanonical string
	Main         string

	// optional
	H1               string
	H2               string
	Style            string
	Date             string
	DisableAnalytics bool
	EmbedStyle       bool
	BlogPost         bool
}

type PageInfo

type PageInfo struct {
	URLCanonical string

	BlogPost bool
	Title    string
	Date     string
}

func ProcessFile

func ProcessFile(src, dst, u string, disableAnalytics, embedStyle bool) (PageInfo, error)

Jump to

Keyboard shortcuts

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