Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions build.go
Original file line number Diff line number Diff line change
Expand Up @@ -560,6 +560,7 @@ func getLocals(locals map[string]interface{}) map[string]interface{} {
defaults := map[string]interface{}{
"AbsoluteURL": conf.AbsoluteURL,
"FavIcon": "/content/images/favicon.png",
"SiteIcon": "/content/images/CoolsterCodes.jpg",
"CCEnv": conf.CCEnv,
"TitleSuffix": scommon.TitleSuffix,
}
Expand Down
2 changes: 1 addition & 1 deletion web/html/article.tmpl.html
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
{{ if .Article.Image }}
<meta property="og:image" content="{{.AbsoluteURL}}{{.Article.Image}}">
{{ else }}
<meta property="og:image" content="{{.AbsoluteURL}}{{.FavIcon}}">
<meta property="og:image" content="{{.AbsoluteURL}}{{.SiteIcon}}">
{{ end }}
<meta property="og:url" content="{{.AbsoluteURL}}/{{.Article.Slug}}">
<link rel="canonical" href="{{.AbsoluteURL}}/{{.Article.Slug}}">
Expand Down
2 changes: 1 addition & 1 deletion web/html/helpers/_og_common.tmpl.html
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
<meta property="og:site_name" content="CoolsterCodes.com">
<meta property="og:image" content="{{.AbsoluteURL}}{{.FavIcon}}">
<meta property="og:image" content="{{.AbsoluteURL}}{{.SiteIcon}}">
<meta property="og:type" content="website">
6 changes: 3 additions & 3 deletions web/html/index.tmpl.html
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@

{{- define "og" -}}
{{- template "web/html/helpers/_og_common.tmpl.html" . -}}
<meta property="og:title" content="Coolster Codes">
<meta property="og:description" content="It's easy as 001 010 011!">
<meta name="description" content="It's easy as 001 010 011!">
<meta property="og:title" content="It's easy as 001 010 011!">
<meta property="og:description" content="Coolster Codes">
<meta name="description" content="Coolster Codes">
<meta property="og:url" content="{{.AbsoluteURL}}">
<link rel="canonical" href="{{.AbsoluteURL}}">
{{- end -}}
Expand Down