vars

package
v2.5.1 Latest Latest
Warning

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

Go to latest
Published: Jan 15, 2024 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"
	DraftTitleAround = "**" // 草稿文章的标题围绕的字符

	HighlightClassPrefix = "hl-" // 语法高亮的统一类名前缀

	// FileHeader 自动生成文件的文件头信息
	FileHeader = "当前文件由 " + Name + " 自动生成,请勿手动修改!"
)

各个配置项

Variables

This section is empty.

Functions

func FullVersion

func FullVersion() string

func Version

func Version() string

Types

This section is empty.

Jump to

Keyboard shortcuts

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