Browse Source

fix path to image

max.mehl 1 month ago
parent
commit
0f8460fff0
No account linked to committer's email address
1 changed files with 2 additions and 2 deletions
  1. 2
    2
      themes/hugo-sustain/layouts/partials/head.html

+ 2
- 2
themes/hugo-sustain/layouts/partials/head.html View File

@@ -13,7 +13,7 @@
13 13
         {{- end -}}
14 14
     {{- end -}}
15 15
     {{- $image := "/img/profile.jpg" -}}
16
-    {{- if isset .Params "headerimage" }} {{ $image = .Params.headerimage }} {{ end -}}
16
+    {{- if isset .Params "headerimage" }} {{ $image = print "img/" .Params.headerimage }} {{ end -}}
17 17
     <meta charset="utf-8" />
18 18
     <meta http-equiv="X-UA-Compatible" content="IE=edge" />
19 19
     <meta name="viewport" content="width=device-width, initial-scale=1" />
@@ -41,7 +41,7 @@
41 41
     <meta property="og:description" content="{{ .Summary | truncate 200 }}"/>
42 42
 
43 43
     {{ "<!-- Twitter meta-data -->" | safeHTML }}
44
-    <meta name="twitter:card" content="summary_large_image"/>
44
+    <meta name="twitter:card" content="summary"/>
45 45
     <meta name="twitter:site" content="@{{ .Site.Params.social.twitter }}"/>
46 46
     <meta name="twitter:title" content="{{ $title }}"/>
47 47
     <meta name="twitter:description" content="{{ .Summary | truncate 200 }}"/>

Loading…
Cancel
Save