Added a suite GUID

This commit is contained in:
Leon Mika 2026-02-28 09:49:43 +11:00
parent 30d99eeb9e
commit 329de2f953
11 changed files with 44 additions and 41 deletions

View file

@ -3,6 +3,6 @@ package models
import "github.com/matoous/go-nanoid/v2"
func NewNanoID() string {
id, _ := gonanoid.New(12)
id, _ := gonanoid.New(16)
return id
}

View file

@ -13,6 +13,7 @@ const (
type Site struct {
ID int64
OwnerID int64
GUID string
Created time.Time
Title string
@ -29,24 +30,3 @@ type SitePublishTarget struct {
TargetRef string
TargetKey string
}
/*
type SiteMeta struct {
Title string `yaml:"title"`
Tagline string `yaml:"tagline"`
BaseURL string `yaml:"base_url"`
}
type PostMeta struct {
ID string `yaml:"id"`
Title string `yaml:"title"`
Date time.Time `yaml:"date"`
Tags []string `yaml:"tags"`
Slug string `yaml:"slug"`
}
type Post struct {
Meta PostMeta
Content string
}
*/