{{ define "title" }}{{ end }} {{ define "scripts" }}{{ end }} {{ define "layout" }} {{ template "title" . }} - {{ .Title }}

{{ .Title }}

{{ .Description }}

{{ if .SetupNeeded }}
Your web blog needs to be set up! Please click here to configure your blog.
{{ end }} {{ range .Flashes }}
{{ . }}
{{ end }} {{ if or .Error .ValidationError }}
Error: {{ or .Error "Validation Error" }}. {{ if .ValidationError }}
    {{ range $key, $val := .ValidationError }} {{ range $bullet := $val }}
  • {{ $key }}: {{ $bullet }}
  • {{ end }} {{ end }}
{{ end }}
{{ end }} {{ template "content" . }}

About

Hello, world!

{{ if .LoggedIn }}

Control Center

Logged in as: {{ .CurrentUser.Name }}

Manage Blog
{{ end }}

Elsewhere

{{ template "scripts" or "" }} {{ end }}