webstyle

package
v0.0.0-...-56f6100 Latest Latest
Warning

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

Go to latest
Published: Nov 16, 2024 License: MIT Imports: 23 Imported by: 0

Documentation

Index

Constants

View Source
const (
	DefaultGTAG = "G-9GLEE4YLNC"
)

Variables

This section is empty.

Functions

func Markdown

func Markdown(src []byte) (htmlOut, cssOut []byte, err error)

func Structured

func Structured(w io.Writer, o Options) error

Types

type Options

type Options struct {
	Gtag         string
	CanonicalURL string
	Manifest     string
	CompactStyle bool
	CustomCSS    string
	Minify       bool

	Title       string // title, h1
	Subtitle    string // link home, h2
	Description string // meta description

	Head    []gomponents.Node
	Content []gomponents.Node

	FooterLinks []OptionsFooter
}

func NewOptions

func NewOptions(subtitle, title string, content []gomponents.Node) Options

type OptionsFooter

type OptionsFooter struct {
	Name string
	URL  string
}

Directories

Path Synopsis
picture is a goldmark extension to render images as html picture blocks instead of img tags in a paragraph
picture is a goldmark extension to render images as html picture blocks instead of img tags in a paragraph
webstatic is an filesystem for common static files needed across html pages.
webstatic is an filesystem for common static files needed across html pages.

Jump to

Keyboard shortcuts

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