vars

package
v1.6.1 Latest Latest
Warning

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

Go to latest
Published: Aug 22, 2021 License: MIT Imports: 0 Imported by: 0

Documentation

Overview

Package vars 提供各种代码级别的配置项

Index

Constants

View Source
const (
	Name = "blogit"
	URL  = "https://github.com/caixw/blogit"

	ConfYAML  = "conf.yaml"
	TagsYAML  = "tags.yaml"
	ThemeYAML = "theme.yaml"

	ThemesDir = "themes"
	PostsDir  = "posts"
	TagsDir   = "tags"
	LayoutDir = "layout"

	TagsFilename        = "tags" + Ext
	IndexFilename       = "index" + Ext    // 首页
	IndexFilenameFormat = "index-%d" + Ext // 非首页的索引页
	ArchiveFilename     = "archive" + Ext
	RssXML              = "rss.xml"
	AtomXML             = "atom.xml"
	SitemapXML          = "sitemap.xml"

	DefaultTemplate = "post"
	IndexTemplate   = "index"
	TagTemplate     = "tag"
	TagsTemplate    = "tags"
	ArchiveTemplate = "archive"

	Ext         = ".html" // 生成后的文件后缀名
	MarkdownExt = ".md"

	// HighlightClassPrefix 默认的高亮主题色
	// 值可以从 github.com/alecthomas/chroma/styles 获取
	HighlightClassPrefix = "hl-" // 语法高亮的统一类名前缀
)

各个配置项

Variables

This section is empty.

Functions

func FullVersion added in v1.4.0

func FullVersion() string

FullVersion 获取完整的版本号

func Version

func Version() string

Version 返回版本信息

Types

This section is empty.

Jump to

Keyboard shortcuts

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