variables

package
v0.0.4 Latest Latest
Warning

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

Go to latest
Published: Jun 23, 2021 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Data

func Data(d *deps.Deps, ctx *gin.Context, post *domain.PostDatum) interface{}

Data returns the TemplateData for the front end which are bound to posts and the context.

Types

type Contact

type Contact struct {
	Email     string
	Telephone string
	Address   string
}

Contact represents contact details of the site to be returned in templates.

type Options

type Options struct {
	Social  Social
	Contact Contact
}

Options represents Verbis options to be returned in templates.

type Social

type Social struct {
	Facebook  string
	Twitter   string
	Youtube   string
	LinkedIn  string
	Instagram string
	Pintrest  string
}

Social represents social details to be returned in templates.

type TemplateData

type TemplateData struct {
	Site    domain.Site
	Theme   domain.ThemeConfig
	Post    domain.PostDatum
	Options Options
}

TemplateData represents the main datta to be returned in templates.

Jump to

Keyboard shortcuts

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