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
@@ -49,7 +49,7 @@ func Available() []Option {
|
||||
return options
|
||||
}
|
||||
|
||||
func BuildView(rows []Row, counts map[string]VersionCount) View {
|
||||
func BuildView(rows []Row, counts map[string]VersionCount, siteLocale *string) View {
|
||||
view := View{Revision: Revision(rows), NeedsSetup: NeedsSetup(rows), Languages: []LanguageView{}, Available: Available()}
|
||||
if view.NeedsSetup {
|
||||
return view
|
||||
@@ -68,7 +68,7 @@ func BuildView(rows []Row, counts map[string]VersionCount) View {
|
||||
VersionCount: counts[row.Tag].Total,
|
||||
PublishedCount: counts[row.Tag].Published,
|
||||
SocialLocale: row.SocialLocale,
|
||||
SocialLocaleState: SocialLocaleState(row),
|
||||
SocialLocaleState: SocialLocaleState(row, siteLocale),
|
||||
})
|
||||
}
|
||||
return view
|
||||
|
||||
Reference in new issue
Block a user