From c4f3e92024850df123c81c5ea03e307faaff0470 Mon Sep 17 00:00:00 2001 From: Serghei Iakovlev Date: Mon, 16 May 2022 09:58:29 +0200 Subject: Setup site logo --- layouts/_default/home.atom.xml | 2 ++ layouts/partials/templates/opengraph.html | 7 ++++--- 2 files changed, 6 insertions(+), 3 deletions(-) (limited to 'layouts') 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 @@ {{ site.Title }} {{ with site.Params.description }}{{ . }}{{ end }} {{ with site.Home.OutputFormats.Get "Atom" }}{{ end }} + {{ $logo := resources.Get (site.Params.assets.logo | default "/img/open-graph-logo.png" ) }}{{ $logo = $logo.Resize "96x96" }}{{$logo.RelPermalink}} + {{$logo.RelPermalink}} {{ with site.Author.name }} {{.}} {{ with site.Author.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 @@ {{- end }} {{- else }} - - - + {{- $logo := resources.Get (site.Params.assets.logo | default "/img/open-graph-logo.png" ) }} + + + {{- end }} {{- /* Facebook Page Admin ID for Domain Insights */}} -- cgit v1.2.3