Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mazgi/hugo-theme-techlog-simple.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHidenori Matsuki <dev@mazgi.com>2020-11-01 22:37:40 +0300
committerHidenori Matsuki <dev@mazgi.com>2020-11-01 22:37:40 +0300
commita6bbd9df0f8f9ac68a65bc7b338a21196a80d250 (patch)
tree5eca1fb62f74451942f5d2276dde6389952cbd5d
parent876390fdd6e582469bc599c3985abd377d02ebe2 (diff)
fix og image urlHEADmain
-rw-r--r--layouts/partials/header.html4
1 files changed, 2 insertions, 2 deletions
diff --git a/layouts/partials/header.html b/layouts/partials/header.html
index 9f5cb04..e003e30 100644
--- a/layouts/partials/header.html
+++ b/layouts/partials/header.html
@@ -32,8 +32,8 @@
{{ end }}
{{ end }}
{{ range $ext := ( slice "png" "jpg" "jpeg" ) }}
- {{ $ogImagePath := ( delimit ( slice $.File.Dir $.File.TranslationBaseName "/og" $ext ) "" "." ) }}
- {{ if ( fileExists ( print "static/" $ogImagePath ) ) }}
+ {{ $ogImagePath := delimit ( slice $.File.Dir "og." $ext ) "" }}
+ {{ if ( fileExists $ogImagePath ) }}
<meta property="og:image" content="{{ $ogImagePath | absURL }}" />
<meta property="twitter:image" content="{{ $ogImagePath | absURL }}" />
<meta property="twitter:image:src" content="{{ $ogImagePath | absURL }}" />