-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtypes.go
More file actions
31 lines (28 loc) · 762 Bytes
/
types.go
File metadata and controls
31 lines (28 loc) · 762 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
package pubengine
// BlogPost is the core content type stored in SQLite and rendered by templates.
type BlogPost struct {
Title string
Date string
Tags []string
Summary string
Link string
Slug string
Content string
Published bool
}
// Image represents an uploaded image stored in the uploads directory.
type Image struct {
Filename string // e.g. "my-photo.jpg"
OriginalName string
Width int
Height int
Size int // bytes
UploadedAt string // RFC3339
}
// PageMeta carries per-page OpenGraph and SEO metadata into the <head> template.
type PageMeta struct {
Title string
Description string
URL string // canonical + og:url
OGType string // "website" or "article"
}