Documentation ¶
Index ¶
Constants ¶
View Source
const DIR_RWE_MODE = 0777
View Source
const FILE_RW_MODE = 0666
Variables ¶
View Source
var DEFAULT_FRONTMATTER string = `---
title: %s
date: %s
layout: post
lang: %s
tags: []
draft: true
---
`
View Source
var DEFAULT_ORG_DIRECTIVES string = `#+OPTIONS: toc:nil num:nil
#+LANGUAGE: %s
`
View Source
var INIT_CONFIG string = `name: "%s"
author: "%s"
url: "%s"
`
View Source
var INIT_README string = `
# %s
A jorge blog by %s.
`
Functions ¶
Types ¶
type Build ¶
type EventBroker ¶
type EventBroker struct {
// contains filtered or unexported fields
}
The event broker mediates between the file watcher that publishes site rebuild events and the clients listening for them to refresh the browser
type HTMLFileSystem ¶
type HTMLFileSystem struct {
// contains filtered or unexported fields
}
Tweaks the http file system to construct a server that hides the .html suffix from requests. Based on https://stackoverflow.com/a/57281956/993769
type Init ¶
type Init struct {
ProjectDir string `arg:"" name:"path" help:"Directory where to initialize the website project."`
}
type Serve ¶
type Serve struct { ProjectDir string `arg:"" name:"path" optional:"" default:"." help:"Path to the website project to serve."` Host string `short:"H" default:"localhost" help:"Host to run the server on."` Port int `short:"p" default:"4001" help:"Port to run the server on."` NoReload bool `help:"Disable live reloading."` }
type Subscription ¶
type Subscription struct {
// contains filtered or unexported fields
}
Click to show internal directories.
Click to hide internal directories.