diff options
-rw-r--r-- | layouts/partials/header.html | 4 |
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 }}" /> |