Package footerbasic

import "gitlab.com/zoralab/bissetii/pkg/components/internal/footerbasic"

Package footerbasic is the full package for rendering basic footer content.

The HTML template codes are written in Go’s string format under the corresponding group. This allows one to embed the HTML codes instead of parsing it from file.

Constants

All Bissetii Compressed Compiled CSS

const (
	CSSAMP        = ``

	CSSCritical   = ``

	CSSTablet     = ``

	CSSDesktop    = ``

	CSSWidescreen = ``

	CSSPrint      = ``
)

Constants for managing the package as a whole.

const (
	// Name is the block name (`{{- define "this-name" -}}`).
	Name = "footer-basic"

	// AMPName is the AMP HTML block name.
	AMPName = root.AMPPrefix + Name

	// ParametersComment are the list of comment headers
	// describing inputs.
	ParametersComment = `
{{- /* .Copyright         - copyright statement                    */ -}}
{{- /* .Publishers        - copyright owners string                */ -}}

`
)

Full HTML codes for rendering templates without needing to parse file.

const (
	// HTML is the vanilla HTML output type.
	HTML = `
<footer>
        <hr class="border" />
        <p>
                <span>{{ .Copyright }}</span>
                {{- if .Publishers }}
                <span>โ€” {{ .Publishers -}}</span>
                {{- end }}
        </p>
</footer>
`

	// AMPHTML is the Accelerated Mobile Pages HTML output type.
	AMPHTML = HTML
)

Data

type Data struct {
	Copyright  string
	Publishers string
}

Data is the data structure for rendering the component.