Skip to content

Commit 7fcb1c7

Browse files
authored
Site icon (#118)
1 parent f220a33 commit 7fcb1c7

File tree

4 files changed

+6
-5
lines changed

4 files changed

+6
-5
lines changed

build.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -560,6 +560,7 @@ func getLocals(locals map[string]interface{}) map[string]interface{} {
560560
defaults := map[string]interface{}{
561561
"AbsoluteURL": conf.AbsoluteURL,
562562
"FavIcon": "/content/images/favicon.png",
563+
"SiteIcon": "/content/images/CoolsterCodes.jpg",
563564
"CCEnv": conf.CCEnv,
564565
"TitleSuffix": scommon.TitleSuffix,
565566
}

web/html/article.tmpl.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
{{ if .Article.Image }}
88
<meta property="og:image" content="{{.AbsoluteURL}}{{.Article.Image}}">
99
{{ else }}
10-
<meta property="og:image" content="{{.AbsoluteURL}}{{.FavIcon}}">
10+
<meta property="og:image" content="{{.AbsoluteURL}}{{.SiteIcon}}">
1111
{{ end }}
1212
<meta property="og:url" content="{{.AbsoluteURL}}/{{.Article.Slug}}">
1313
<link rel="canonical" href="{{.AbsoluteURL}}/{{.Article.Slug}}">
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
<meta property="og:site_name" content="CoolsterCodes.com">
2-
<meta property="og:image" content="{{.AbsoluteURL}}{{.FavIcon}}">
2+
<meta property="og:image" content="{{.AbsoluteURL}}{{.SiteIcon}}">
33
<meta property="og:type" content="website">

web/html/index.tmpl.html

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,9 @@
22

33
{{- define "og" -}}
44
{{- template "web/html/helpers/_og_common.tmpl.html" . -}}
5-
<meta property="og:title" content="Coolster Codes">
6-
<meta property="og:description" content="It's easy as 001 010 011!">
7-
<meta name="description" content="It's easy as 001 010 011!">
5+
<meta property="og:title" content="It's easy as 001 010 011!">
6+
<meta property="og:description" content="Coolster Codes">
7+
<meta name="description" content="Coolster Codes">
88
<meta property="og:url" content="{{.AbsoluteURL}}">
99
<link rel="canonical" href="{{.AbsoluteURL}}">
1010
{{- end -}}

0 commit comments

Comments
 (0)