config

package
v0.0.0-...-0d6fc48 Latest Latest
Warning

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

Go to latest
Published: Oct 8, 2024 License: BSD-3-Clause Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	BaseURL          string           `toml:"base_url"`
	Title            string           `toml:"title"`
	Description      string           `toml:"description"`
	DefaultLanguage  string           `toml:"default_language"`
	Author           string           `toml:"author"`
	CompileSass      bool             `toml:"compile_sass"`
	GenerateFeed     bool             `toml:"generate_feed"`
	FeedLimit        int              `toml:"feed_limit"`
	Taxonomies       []TaxonomyConfig `toml:"taxonomies"`
	Markdown         MarkdownConfig   `toml:"markdown"`
	ContentDirectory string           `toml:"content_directory"`
	OutputDirectory  string           `toml:"output_directory"`
	IncludeDrafts    bool             `toml:"include_drafts"`
	// contains filtered or unexported fields
}

func Load

func Load(filename string) (*Config, error)

func (*Config) ContentDirectoryAbsolute

func (c *Config) ContentDirectoryAbsolute() string

func (*Config) OutputDirectoryAbsolute

func (c *Config) OutputDirectoryAbsolute() string

func (*Config) RootDirectory

func (c *Config) RootDirectory() string

type MarkdownConfig

type MarkdownConfig struct {
	HighlightCode    bool `toml:"highlight_code"`
	SmartPunctuation bool `toml:"smart_punctuation"`
}

type TaxonomyConfig

type TaxonomyConfig struct {
	Name       string `toml:"name"`
	Feed       bool   `toml:"feed"`
	PaginateBy int    `toml:"paginate_by"` // Add this field for optional pagination
}

Jump to

Keyboard shortcuts

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