Documentation
¶
Index ¶
- func ConfigYaml() error
- func CreateRoute(fs afero.Fs, routeType RouteType, slug string, result RenderResult) error
- func GenerateRSS(posts []Post, UrlUser string, baseUrl string, descrp string, author string, ...)
- func GenerateSitemap(posts []Post, UrlUser string, BaseUrl string)
- func MinifyCSS(fs afero.Fs)
- func RunBuild(fs afero.Fs, isDev bool)
- type Builder
- type Config
- type Post
- type RenderResult
- type RouteType
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ConfigYaml ¶
func ConfigYaml() error
func CreateRoute ¶
func GenerateRSS ¶
func GenerateSitemap ¶
Types ¶
type Builder ¶
type Builder struct {
// contains filtered or unexported fields
}
func (*Builder) BuildPage ¶
func (b *Builder) BuildPage(contentTemplate string, data any) (RenderResult, error)
func (*Builder) BuildPosts ¶
func (*Builder) InitTemplates ¶
Init de templates
type Config ¶
type Config struct {
UserUrl string `yaml:"userUrl"`
BaseURL string `yaml:"baseUrl"`
SiteTitle string `yaml:"siteTitle"`
Email string `yaml:"email"`
UseSectionPost struct {
Active bool `yaml:"active"`
LimitOfPost int `yaml:"limitOfPost"`
} `yaml:"useSectionPost"`
UsePinned struct {
Active bool `yaml:"active"`
} `yaml:"usePinned"`
}
func LoadConfig ¶
type Post ¶
type Post struct {
Title string `yaml:"title"`
Date string `yaml:"date"`
Author string `yaml:"author"`
Email string `yaml:"email"`
Body string `yaml:"body"`
Description string `yaml:"description"`
Fijado bool `yaml:"fijado"`
Link string
FullLink string
UrlUser string
}
func (Post) ContentBody ¶
type RenderResult ¶
Click to show internal directories.
Click to hide internal directories.