config

package
v1.2.1 Latest Latest
Warning

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

Go to latest
Published: Oct 8, 2022 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Archive added in v1.2.1

type Archive struct {
	Title string
	Link  string
}

type Category added in v1.2.1

type Category struct {
	Title string
	Link  string
	Count int
}

type Newest added in v1.2.1

type Newest struct {
	Title string
	Link  string
}

type Site

type Site struct {
	Title         string
	Copyright     string
	FeatureSlugs  []string // 功能性文章
	Tags          []string // 标签云
	Archives      []Archive
	Categories    []Category
	Newests       []Newest
	CommentSwitch bool
}

type Toml

type Toml struct {
	HTTPPort int
	Theme    string // 主题
	Site     Site   `toml:"site"`
	YuQue    YuQue  `toml:"yuque"`
}

func NewTom

func NewTom() (*Toml, error)

type YuQue

type YuQue struct {
	BaseURL   string
	Token     string
	UserAgent string
	Namespace string
}

Jump to

Keyboard shortcuts

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