Documentation ¶
Index ¶
Constants ¶
View Source
const ( // EmbeddedExtension is extension of the embedded // template files. EmbeddedExtension = ".cms" )
Variables ¶
This section is empty.
Functions ¶
func Init ¶
func Init(d *deps.Deps, t *internal.TemplateDeps) *internal.FuncsNamespace
Creates a new Namespace and returns a new internal.FuncsNamespace
Types ¶
type Namespace ¶
type Namespace struct {
// contains filtered or unexported fields
}
Namespace defines the methods for meta to be used as template functions.
func (*Namespace) Footer ¶
Footer
Obtains all of the site and post wide Code Injection Returns formatted HTML template for use after the closing `</body>`.
Example: {{ verbisFoot }}
type TemplateMeta ¶
type TemplateMeta struct { Site domain.Site Post *domain.PostDatum Options domain.Options Breadcrumbs verbis.Breadcrumbs FacebookImage string TwitterImage string // contains filtered or unexported fields }
TemplateMeta defines the helper for executing meta templates.
func (*TemplateMeta) GetImage ¶
func (tm *TemplateMeta) GetImage(id int) string
GetImage
Is a helper function for the embedded meta templates. Returns an media item url or an empty string if the media item did not exist.
func (*TemplateMeta) IsHomepage ¶
func (tm *TemplateMeta) IsHomepage() bool
IsHomepage
Determines if the current post is the homepage.
Click to show internal directories.
Click to hide internal directories.