package blorg
import "github.com/niklasfasching/go-org/blorg"
blorg is a very minimal and broken static site generator. Don't use this. I initially wrote go-org to use Org mode in hugo and non crazy people should keep using hugo. I just like the idea of not having dependencies / following 80/20 rule. And blorg gives me what I need for a blog in a fraction of the LOC (hugo is a whooping 80k+ excluding dependencies - this will very likely stay <5k).
Index ¶
- Variables
- type Config
- func ReadConfig(configFile string) (*Config, error)
- func (c *Config) Render() error
- func (c *Config) RenderContent() ([]*Page, error)
- func (c *Config) RenderList(list, sublist string, m map[string]interface{}) error
- func (c *Config) RenderLists(pages []*Page) error
- func (c *Config) Serve() error
- type Page
Variables ¶
var DefaultConfig = "" /* 164 byte string literal not displayed */
var DefaultConfigFile = "blorg.org"
var TemplateFuncs = map[string]interface{}{ "Slugify": slugify, }
Types ¶
type Config ¶
type Config struct { ConfigFile string ContentDir string PublicDir string Address string BaseUrl string Template *template.Template OrgConfig *org.Configuration }
func ReadConfig ¶
func (*Config) Render ¶
func (*Config) RenderContent ¶
func (*Config) RenderList ¶
func (*Config) RenderLists ¶
func (*Config) Serve ¶
type Page ¶
type Page struct { *Config Document *org.Document Info os.FileInfo PermaLink string Date time.Time Content template.HTML BufferSettings map[string]string }
func NewPage ¶
func (*Page) Render ¶
func (*Page) Summary ¶
Source Files ¶
- Version
- v1.4.0
- Published
- Jan 2, 2021
- Platform
- windows/amd64
- Imports
- 18 packages
- Last checked
- 7 hours ago –
Tools for package owners.