- Added the new post frontend - Hooked up publishing of posts to the site publisher - Added an site exporter as a publishing target
27 lines
443 B
Go
27 lines
443 B
Go
package importexport
|
|
|
|
import (
|
|
"time"
|
|
|
|
"lmika.dev/lmika/weiro/models"
|
|
)
|
|
|
|
type ReadSiteModels struct {
|
|
Site models.Site
|
|
Posts []*models.Post
|
|
}
|
|
|
|
type Site struct {
|
|
Title string `yaml:"title"`
|
|
Tagline string `yaml:"tagline"`
|
|
BaseURL string `yaml:"base_url"`
|
|
}
|
|
|
|
type Post struct {
|
|
ID string `yaml:"id"`
|
|
Title string `yaml:"title"`
|
|
Date time.Time `yaml:"date"`
|
|
Tags []string `yaml:"tags"`
|
|
Slug string `yaml:"slug"`
|
|
}
|