staticgen

package
v1.7.0 Latest Latest
Warning

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

Go to latest
Published: Mar 10, 2018 License: Apache-2.0 Imports: 10 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Hugo

type Hugo struct {
	// Website root
	Root string `name:"Website Root"`
	// Public folder
	Public string `name:"Public Directory"`
	// Hugo executable path
	Exe string `name:"Hugo Executable"`
	// Hugo arguments
	Args []string `name:"Hugo Arguments"`
	// Indicates if we should clean public before a new publish.
	CleanPublic bool `name:"Clean Public"`
	// contains filtered or unexported fields
}

Hugo is the Hugo static website generator.

func (Hugo) Hook

func (h Hugo) Hook(c *fm.Context, w http.ResponseWriter, r *http.Request) (int, error)

Hook is the pre-api handler.

func (Hugo) Name

func (h Hugo) Name() string

Name is the plugin's name.

func (*Hugo) Preview

func (h *Hugo) Preview(c *fm.Context, w http.ResponseWriter, r *http.Request) (int, error)

Preview handles the preview path.

func (Hugo) Publish

func (h Hugo) Publish(c *fm.Context, w http.ResponseWriter, r *http.Request) (int, error)

Publish publishes a post.

func (Hugo) SettingsPath

func (h Hugo) SettingsPath() string

SettingsPath retrieves the correct settings path.

func (*Hugo) Setup

func (h *Hugo) Setup() error

Setup sets up the plugin.

type Jekyll

type Jekyll struct {
	// Website root
	Root string `name:"Website Root"`
	// Public folder
	Public string `name:"Public Directory"`
	// Jekyll executable path
	Exe string `name:"Executable"`
	// Jekyll arguments
	Args []string `name:"Arguments"`
	// Indicates if we should clean public before a new publish.
	CleanPublic bool `name:"Clean Public"`
	// contains filtered or unexported fields
}

Jekyll is the Jekyll static website generator.

func (Jekyll) Hook

func (j Jekyll) Hook(c *fm.Context, w http.ResponseWriter, r *http.Request) (int, error)

Hook is the pre-api handler.

func (Jekyll) Name

func (j Jekyll) Name() string

Name is the plugin's name.

func (*Jekyll) Preview

func (j *Jekyll) Preview(c *fm.Context, w http.ResponseWriter, r *http.Request) (int, error)

Preview handles the preview path.

func (Jekyll) Publish

func (j Jekyll) Publish(c *fm.Context, w http.ResponseWriter, r *http.Request) (int, error)

Publish publishes a post.

func (Jekyll) SettingsPath

func (j Jekyll) SettingsPath() string

SettingsPath retrieves the correct settings path.

func (*Jekyll) Setup

func (j *Jekyll) Setup() error

Setup sets up the plugin.

Jump to

Keyboard shortcuts

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