summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--assets/img/open-graph-logo.png (renamed from static/img/open-graph-logo.png)bin5229 -> 5229 bytes
-rw-r--r--exampleSite/config.toml3
-rw-r--r--layouts/_default/home.atom.xml2
-rw-r--r--layouts/partials/templates/opengraph.html7
-rw-r--r--resources/_gen/images/open-graph-logo_hu649006a96c7f6a02c0a48e2d90a9a7b0_5229_96x96_resize_box_3.pngbin0 -> 2375 bytes
5 files changed, 9 insertions, 3 deletions
diff --git a/static/img/open-graph-logo.png b/assets/img/open-graph-logo.png
index df93da6..df93da6 100644
--- a/static/img/open-graph-logo.png
+++ b/assets/img/open-graph-logo.png
Binary files differ
diff --git a/exampleSite/config.toml b/exampleSite/config.toml
index c8e2ec0..b0e5b62 100644
--- a/exampleSite/config.toml
+++ b/exampleSite/config.toml
@@ -83,6 +83,9 @@ disableKinds = ['RSS']
svgicon = '' # A single SVG icon with a light/dark version for modern browsers
apple_touch_icon = '' # 180×180 PNG image for Apple devices
webmanifest = '' # Web app manifest with 192×192 and 512×512 PNG icons for modern browsers
+ logo = '/img/open-graph-logo.png' # Logo image, relative to ./assets
+ logo_width = 200 # Logo image width
+ logo_height = 200 # Logo image height
disable_fingerprinting = false
diff --git a/layouts/_default/home.atom.xml b/layouts/_default/home.atom.xml
index ad20269..b1befc0 100644
--- a/layouts/_default/home.atom.xml
+++ b/layouts/_default/home.atom.xml
@@ -6,6 +6,8 @@
<title>{{ site.Title }}</title>
{{ with site.Params.description }}<subtitle>{{ . }}</subtitle>{{ end }}
{{ with site.Home.OutputFormats.Get "Atom" }}<link href="{{ .RelPermalink }}" rel="self" type="{{ .MediaType.Type | html }}" />{{ end }}
+ {{ $logo := resources.Get (site.Params.assets.logo | default "/img/open-graph-logo.png" ) }}{{ $logo = $logo.Resize "96x96" }}<icon>{{$logo.RelPermalink}}</icon>
+ <logo>{{$logo.RelPermalink}}</logo>
{{ with site.Author.name }}<author>
<name>{{.}}</name>
{{ with site.Author.email }}<email>{{.}}</email>{{end}}
diff --git a/layouts/partials/templates/opengraph.html b/layouts/partials/templates/opengraph.html
index 3b9fb36..aed77e3 100644
--- a/layouts/partials/templates/opengraph.html
+++ b/layouts/partials/templates/opengraph.html
@@ -18,9 +18,10 @@
<meta property="og:image:height" content="{{ .Params.cover.height }}">
{{- end }}
{{- else }}
- <meta property="og:image" content="{{ "img/open-graph-logo.png" | absURL }}">
- <meta property="og:image:width" content="200">
- <meta property="og:image:height" content="200">
+ {{- $logo := resources.Get (site.Params.assets.logo | default "/img/open-graph-logo.png" ) }}
+ <meta property="og:image" content="{{ $logo.Permalink }}">
+ <meta property="og:image:width" content="{{ site.Params.assets.logo_width | default 200 }}">
+ <meta property="og:image:height" content="{{ site.Params.assets.logo_height | default 200 }}">
{{- end }}
{{- /* Facebook Page Admin ID for Domain Insights */}}
diff --git a/resources/_gen/images/open-graph-logo_hu649006a96c7f6a02c0a48e2d90a9a7b0_5229_96x96_resize_box_3.png b/resources/_gen/images/open-graph-logo_hu649006a96c7f6a02c0a48e2d90a9a7b0_5229_96x96_resize_box_3.png
new file mode 100644
index 0000000..bd258c7
--- /dev/null
+++ b/resources/_gen/images/open-graph-logo_hu649006a96c7f6a02c0a48e2d90a9a7b0_5229_96x96_resize_box_3.png
Binary files differ