feat(social): supports rel-me links

This commit is contained in:
Anhgelus Morhtuuzh 2025-05-19 23:55:02 +02:00
parent cf36d7daa9
commit d7598a843e
No known key found for this signature in database
GPG key ID: CAD341EFA92DDDE5
5 changed files with 14 additions and 12 deletions

10
data.go
View file

@ -11,15 +11,6 @@ import (
"strings"
)
const (
TitleContentType = "title"
SubtitleContentType = "subtitle"
ParagraphContentType = "paragraph"
ListContentType = "list"
OrderedListContentType = "ordered_list"
ButtonsContentType = "links"
)
type ConfigData interface {
GetTextColor() template.CSS
GetBackground() template.CSS
@ -34,6 +25,7 @@ type Config struct {
Color *Color `json:"colors" toml:"colors"`
Links []*Link `json:"links" toml:"links"`
Legal string `json:"legal" toml:"legal"`
RelMeLinks []string `json:"rel_me_links" toml:"rel_me_links"`
CustomPages []string `json:"custom_pages" toml:"custom_pages"`
}