Verified Commit 280e38ca authored by Jae's avatar Jae
Browse files

Opengraph Correct URI

parent 48b9a1a4
Pipeline #35 passed with stage
in 32 seconds
......@@ -194,6 +194,7 @@ func main() {
"prevsite": previousSite,
"nextsite": nextSite,
"randomsite": randomsite,
"path": c.FullPath(),
})
})
......@@ -215,6 +216,7 @@ func main() {
c.HTML(http.StatusOK, "home/gallery.tmpl", gin.H{
"title": "Gallery",
"images": images,
"path": c.FullPath(),
})
}))
......@@ -235,6 +237,7 @@ func main() {
c.HTML(http.StatusOK, "home/gallery.tmpl", gin.H{
"title": "Gallery",
"images": images,
"path": c.FullPath(),
})
})
......@@ -256,6 +259,7 @@ func main() {
c.HTML(http.StatusOK, "home/announcements.tmpl", gin.H{
"title": "Announcements",
"posts": posts,
"path": c.FullPath(),
})
})
......@@ -281,6 +285,7 @@ func main() {
c.HTML(http.StatusOK, "home/post.tmpl", gin.H{
"title": post.Title,
"Content": post.Content,
"path": "/announcements/" + postName,
})
})
......
......@@ -31,7 +31,7 @@
<meta property="og:description" content="Official website of Jae" />
<meta property="og:type" content="website" />
<meta property="og:image" content="https://bm.jae.fi/web/logo.webp" />
<meta property="og:url" content="https://jae.fi" />
<meta property="og:url" content="https://jae.fi{{ .path }}" />
<link rel="shortcut icon" href="https://bm.jae.fi/web/favicon.ico" />
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment