package theme
type Default struct {
}
func (theme *Default) template() string {
return `
{{ .Page.Title }}
{{ if .Page.Head }}{{ .Page.Head }}
{{ end }}
{{ with .Page.Intros }}
{{ if gt (len .) 0 }}
{{ range $text := . }}
{{ $text }}
{{ end }}
{{ end }}
{{ end }}
{{ with .Page.Actions }}
{{ if gt (len .) 0 }}
{{ range $action := . }}
{{ $action }}
{{ end }}
{{ end }}
{{ end }}
{{ with .Page.Entries }}
{{ if gt (len .) 0 }}
{{ range $entry := . }}
{{ $entry }}
{{ end }}
{{ end }}
{{ end }}
{{ with .Page.Timelines }}
{{ if gt (len .) 0 }}
{{ range $timeline := . }}
{{ $timeline }}
{{ end }}
{{ end }}
{{ end }}
{{ with .Page.Tables }}
{{ if gt (len .) 0 }}
{{ range $table := . }}
{{ $table }}
{{ end }}
{{ end }}
{{ end }}
{{ with .Page.Outros }}
{{ if gt (len .) 0 }}
{{ range $text := . }}
{{ $text }}
{{ end }}
{{ end }}
{{ end }}
{{ if .Page.Copyright }}{{ .Page.Copyright }}
{{ end }}
`
}
func (theme *Default) Template() string {
return `
{{ .Page.Title }}
{{ if .Page.Head }}{{ .Page.Head }}
{{ end }}
{{ with .Page.Intros }}
{{ if gt (len .) 0 }}
{{ range $text := . }}
{{ $text }}
{{ end }}
{{ end }}
{{ end }}
{{ with .Page.Actions }}
{{ if gt (len .) 0 }}
{{ range $action := . }}
{{ $action }}
{{ end }}
{{ end }}
{{ end }}
{{ with .Page.Entries }}
{{ if gt (len .) 0 }}
{{ range $entry := . }}
{{ $entry }}
{{ end }}
{{ end }}
{{ end }}
{{ with .Page.Timelines }}
{{ if gt (len .) 0 }}
{{ range $timeline := . }}
{{ $timeline }}
{{ end }}
{{ end }}
{{ end }}
{{ with .Page.Tables }}
{{ if gt (len .) 0 }}
{{ range $table := . }}
{{ $table }}
{{ end }}
{{ end }}
{{ end }}
{{ with .Page.Outros }}
{{ if gt (len .) 0 }}
{{ range $text := . }}
{{ $text }}
{{ end }}
{{ end }}
{{ end }}
{{ if .Page.Copyright }}{{ .Page.Copyright }}
{{ end }}
`
}