Documentation
¶
Index ¶
Constants ¶
View Source
const ( CONFIG_ROOT = "config" CONFIG_THEME = "theme" CONFIG_TYPE = "toml" CONTENT_ROOT = "content" CONTENT_MEDIA = "content/media" CONTENT_MD = "content/%s.md" MESSAGE_CONTENT = "content" MESSAGE_PATH = "path" MESSAGE_TOC = "toc" META_CATALOG = "catalog" META_ARCHIVE = "archive" META_CATEGORY = "category" META_DATE = "date" META_TAG = "tag" META_LANG = "lang" META_SLUG = "slug" META_TITLE = "title" META_DESCRIPTION = "description" META_AUTHOR = "author" MODEL_ARTICLE = "article" MODEL_DOCUMENT = "document" MODEL_PAGE = "page" MODEL_I18N = "i18n" MODEL_CUSTOMIZE = "customize" MODEL_STATIC = "static" MODEL_SITE = "site" MODEL_THMEM = "theme" MODEL_EXTEND = "extend" FEEDS_ATOM = "atom.xml" FEEDS_RSS = "rss.xml" FEEDS_JSON = "feeds.json" PUBLIC_ROOT = "public" PUBLIC_FEEDS = "public/%s" PUBLIC_ASSETS = "public/assets" PUBLIC_MEIDA = "public/media" PUBLIC_SITEMAP = "public/sitemap.xml" PUBLIC_HTML = "public%sindex.html" PUBLIC_XML = "public/sitemap/%s.xml" ROOT_TOML = "config.toml" PREFIX_CONTENT = "content/" PREFIX_PAGE = "content/%s/" SITEMAP_XML = "%s/sitemap/%s.xml" SOURCE_YAML = "source/%s.yaml" SUFFIX_MD = ".md" THEME_ROOT = "theme" THEME_DEFAULT = "fungo" URL_SITE = "https://github.com/fundipper/site" URL_THEME = "https://github.com/fundipper/theme" ERROR_CONFIG = "config is nil" ERROR_CONTENT = "content is nil" ERROR_META = "meta is nil" ERROR_TOC = "toc is nil" ERROR_CATALOG = "catalog is nil" ERROR_EXIST = "file is exist" ERROR_MATCH = "name not match" )
Variables ¶
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Model ¶
type Site ¶
type Site struct {
Origin string
Port string
Name string
Slogan string
Theme string
Markdown struct {
Highlighting struct {
Theme string
LineNumber bool
}
Image struct {
Source string
Target string
Attribute map[string]string
}
Link struct {
Source map[string]bool
Attribute map[string]string
}
Video struct {
Source map[string]string
Attribute map[string]string
}
}
Sitemap struct {
Changefreq string
Priority string
}
Feeds struct {
Action string
Content bool
}
}
Site site
Click to show internal directories.
Click to hide internal directories.