Fix jam opengraph
This commit is contained in:
parent
55f56d8ae0
commit
5296e0a15a
|
@ -55,7 +55,7 @@ func AdminAtomFeed(c *RequestContext) ResponseData {
|
|||
|
||||
feedData := AdminAtomFeedData{
|
||||
HomepageUrl: hmnurl.BuildHomepage(),
|
||||
CopyrightStatement: fmt.Sprintf("Copyright (C) 2014-%d Handmade.Network and its contributors", time.Now().Year()),
|
||||
CopyrightStatement: fmt.Sprintf("Copyright (C) 2014-%d Handmade Network and its contributors", time.Now().Year()),
|
||||
SiteVersion: "2.0",
|
||||
Title: "Handmade Network Admin feed",
|
||||
Subtitle: "Unapproved user posts",
|
||||
|
|
|
@ -117,13 +117,13 @@ func AtomFeed(c *RequestContext) ResponseData {
|
|||
feedData := AtomFeedData{
|
||||
HomepageUrl: hmnurl.BuildHomepage(),
|
||||
|
||||
CopyrightStatement: fmt.Sprintf("Copyright (C) 2014-%d Handmade.Network and its contributors", time.Now().Year()),
|
||||
CopyrightStatement: fmt.Sprintf("Copyright (C) 2014-%d Handmade Network and its contributors", time.Now().Year()),
|
||||
SiteVersion: "2.0",
|
||||
}
|
||||
|
||||
feedType, hasType := c.PathParams["feedtype"]
|
||||
if !hasType || len(feedType) == 0 {
|
||||
feedData.Title = "New Threads, Blog Posts, Replies and Comments | Site-wide | Handmade.Network"
|
||||
feedData.Title = "New Threads, Blog Posts, Replies and Comments | Site-wide | Handmade Network"
|
||||
feedData.Subtitle = feedData.Title
|
||||
feedData.FeedType = FeedTypeAll
|
||||
feedData.FeedID = FeedIDAll
|
||||
|
@ -144,7 +144,7 @@ func AtomFeed(c *RequestContext) ResponseData {
|
|||
} else {
|
||||
switch strings.ToLower(feedType) {
|
||||
case "projects":
|
||||
feedData.Title = "New Projects | Site-wide | Handmade.Network"
|
||||
feedData.Title = "New Projects | Site-wide | Handmade Network"
|
||||
feedData.Subtitle = feedData.Title
|
||||
feedData.FeedType = FeedTypeProjects
|
||||
feedData.FeedID = FeedIDProjects
|
||||
|
@ -181,7 +181,7 @@ func AtomFeed(c *RequestContext) ResponseData {
|
|||
}
|
||||
feedData.Updated = updated
|
||||
case "showcase":
|
||||
feedData.Title = "Showcase | Site-wide | Handmade.Network"
|
||||
feedData.Title = "Showcase | Site-wide | Handmade Network"
|
||||
feedData.Subtitle = feedData.Title
|
||||
feedData.FeedType = FeedTypeShowcase
|
||||
feedData.FeedID = FeedIDShowcase
|
||||
|
|
|
@ -19,9 +19,9 @@ func JamIndex2023_Visibility(c *RequestContext) ResponseData {
|
|||
|
||||
baseData := getBaseDataAutocrumb(c, hmndata.VJ2023.Name)
|
||||
baseData.OpenGraphItems = []templates.OpenGraphItem{
|
||||
{Property: "og:site_name", Value: "Handmade.Network"},
|
||||
{Property: "og:title", Value: "Visibility Jam"},
|
||||
{Property: "og:site_name", Value: "Handmade Network"},
|
||||
{Property: "og:type", Value: "website"},
|
||||
// TODO:
|
||||
{Property: "og:image", Value: hmnurl.BuildPublic("visjam2023/opengraph.png", true)},
|
||||
{Property: "og:description", Value: "See things in a new way. April 14 - 16."},
|
||||
{Property: "og:url", Value: hmnurl.BuildJamIndex()},
|
||||
|
@ -117,7 +117,7 @@ func JamIndex2022(c *RequestContext) ResponseData {
|
|||
|
||||
baseData := getBaseDataAutocrumb(c, hmndata.WRJ2022.Name)
|
||||
baseData.OpenGraphItems = []templates.OpenGraphItem{
|
||||
{Property: "og:site_name", Value: "Handmade.Network"},
|
||||
{Property: "og:site_name", Value: "Handmade Network"},
|
||||
{Property: "og:type", Value: "website"},
|
||||
{Property: "og:image", Value: hmnurl.BuildPublic("wheeljam2022/opengraph.png", true)},
|
||||
{Property: "og:description", Value: "A one-week jam to change the status quo. August 15 - 21 on Handmade Network."},
|
||||
|
@ -254,7 +254,7 @@ func JamFeed2022(c *RequestContext) ResponseData {
|
|||
|
||||
baseData := getBaseDataAutocrumb(c, hmndata.WRJ2022.Name)
|
||||
baseData.OpenGraphItems = []templates.OpenGraphItem{
|
||||
{Property: "og:site_name", Value: "Handmade.Network"},
|
||||
{Property: "og:site_name", Value: "Handmade Network"},
|
||||
{Property: "og:type", Value: "website"},
|
||||
{Property: "og:image", Value: hmnurl.BuildPublic("wheeljam2022/opengraph.png", true)},
|
||||
{Property: "og:description", Value: "A one-week jam to change the status quo. August 15 - 21 on Handmade Network."},
|
||||
|
@ -311,7 +311,7 @@ func JamIndex2021(c *RequestContext) ResponseData {
|
|||
|
||||
baseData := getBaseDataAutocrumb(c, hmndata.WRJ2021.Name)
|
||||
baseData.OpenGraphItems = []templates.OpenGraphItem{
|
||||
{Property: "og:site_name", Value: "Handmade.Network"},
|
||||
{Property: "og:site_name", Value: "Handmade Network"},
|
||||
{Property: "og:type", Value: "website"},
|
||||
{Property: "og:image", Value: hmnurl.BuildPublic("wheeljam2021/opengraph.png", true)},
|
||||
{Property: "og:description", Value: "A one-week jam to bring a fresh perspective to old ideas. September 27 - October 3 on Handmade Network."},
|
||||
|
|
|
@ -61,7 +61,7 @@ func Snippet(c *RequestContext) ResponseData {
|
|||
snippet.SmallInfo = true
|
||||
|
||||
opengraph := []templates.OpenGraphItem{
|
||||
{Property: "og:site_name", Value: "Handmade.Network"},
|
||||
{Property: "og:site_name", Value: "Handmade Network"},
|
||||
{Property: "og:type", Value: "article"},
|
||||
{Property: "og:url", Value: snippet.Url},
|
||||
{Property: "og:title", Value: fmt.Sprintf("Snippet by %s", snippet.OwnerName)},
|
||||
|
|
Loading…
Reference in New Issue