Finished
This commit is contained in:
37
lib/types.go
Normal file
37
lib/types.go
Normal file
@ -0,0 +1,37 @@
|
||||
package lib
|
||||
|
||||
import (
|
||||
"html/template"
|
||||
)
|
||||
|
||||
type IconLink struct {
|
||||
Name string
|
||||
Href string
|
||||
Icon template.HTML
|
||||
}
|
||||
|
||||
type CardLink struct {
|
||||
Name string
|
||||
Href string
|
||||
Description string
|
||||
Date string
|
||||
Tags []string
|
||||
Internal bool
|
||||
}
|
||||
|
||||
type Post struct {
|
||||
Content template.HTML
|
||||
Name string
|
||||
Date string
|
||||
Tags []string
|
||||
}
|
||||
type FrontMatter struct {
|
||||
Name string
|
||||
Date string
|
||||
Tags []string
|
||||
}
|
||||
|
||||
type PubSubMessage struct {
|
||||
Channel string `json:"channel"`
|
||||
Data string `json:"data"`
|
||||
}
|
Reference in New Issue
Block a user