config

package
v1.1.0 Latest Latest
Warning

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

Go to latest
Published: Nov 2, 2023 License: GPL-3.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

View Source
const (
	CONFIG_FILE = "blog.json"
)

Variables

This section is empty.

Functions

func ConfigPath

func ConfigPath(postPath string) string

Types

type Config

type Config struct {
	Version     int      `json:"version"`
	Domain      string   `json:"domain"`
	Author      string   `json:"author"`
	Title       string   `json:"title"`
	Description string   `json:"description"`
	ChillFiles  []string `json:"chill-files"`
	Footer      string   `json:"footer"`
}

func Load

func Load(postPath string) (*Config, error)

Jump to

Keyboard shortcuts

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