feat: public API, SEO and existing surfaces
This commit is contained in:
1 parent
45fbbc33b1
commit
c390fcfe8d
103 files changed
+4476
-231
No files matched your search
@@ -11,6 +11,7 @@ const (
|
||||
SEOSourceSocial = "social"
|
||||
SEOSourceCover = "cover"
|
||||
SEOSourceCanonicalURL = "canonical_url"
|
||||
SEOSourcePattern = "pattern"
|
||||
)
|
||||
|
||||
type SEOOpenGraph struct {
|
||||
@@ -22,6 +23,8 @@ type SEOOpenGraph struct {
|
||||
URL string `json:"url"`
|
||||
SiteName string `json:"site_name"`
|
||||
Locale string `json:"locale"`
|
||||
|
||||
LocaleAlternates []string `json:"locale_alternates"`
|
||||
}
|
||||
|
||||
type SEOTwitter struct {
|
||||
@@ -49,6 +52,8 @@ type SEOFallbacks struct {
|
||||
Description string `json:"description"`
|
||||
Image string `json:"image"`
|
||||
Canonical string `json:"canonical"`
|
||||
|
||||
SiteTextSkipped bool `json:"site_text_skipped"`
|
||||
}
|
||||
|
||||
type SEOJSONLDPerson struct {
|
||||
@@ -88,4 +93,6 @@ type ResolvedSEO struct {
|
||||
ModifiedAt string `json:"modified_at"`
|
||||
Fallbacks SEOFallbacks `json:"fallbacks"`
|
||||
JSONLD SEOJSONLD `json:"json_ld"`
|
||||
Lang string `json:"lang"`
|
||||
Alternates []Alternate `json:"alternates"`
|
||||
}
|
||||
Reference in new issue
Block a user