workarounds

package
v0.0.14 Latest Latest
Warning

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

Go to latest
Published: Apr 12, 2020 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AddFakeAsciidoctorBinForDiagramsToPath

func AddFakeAsciidoctorBinForDiagramsToPath(baseURL string) string

AddFakeAsciidoctorBinForDiagramsToPath adds a fake asciidoctor bin to the PATH to trick Hugo into taking this one. This makes it possible to manipulate the parameters for asciidoctor while being called from Hugo.

func AsciidocPostprocessing

func AsciidocPostprocessing(dirty []byte) []byte

AsciidocPostprocessing fixes common errors with Hugo processing vanilla Asciidoc 1. Add one level to relative picture img/ -> ../img/ since Hugo adds subfolders for pretty urls

func MarkdownPostprocessing

func MarkdownPostprocessing(dirty []byte) []byte

MarkdownPostprocessing fixes common errors with Hugo processing vanilla Markdown

  1. Add one level to relative picture img/ -> ../img/ since Hugo adds subfolders

for pretty urls

Types

This section is empty.

Jump to

Keyboard shortcuts

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