cmd

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Nov 22, 2024 License: MIT Imports: 23 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Execute

func Execute()

func SetVersionInfo

func SetVersionInfo(version string)

Types

type Computed

type Computed struct {
	Now time.Time `yaml:"Now"`
}

type TemplateData

type TemplateData struct {
	// The specific page that is being rendered in this template execution.
	Page *content.ContentFile `yaml:"Page"`
	// A slice of all content pages in this website.
	Pages []*content.ContentFile `yaml:"Pages"`
	// Any extra data that doesn't have anything to do with pages that we want
	// to make available in templates.
	Computed Computed          `yaml:"Computed"`
	Config   config.ConfigYaml `yaml:"Config"`
}

TemplateData is the data that gets passed when building a template.

Jump to

Keyboard shortcuts

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