Browse Source

fix path to image

new-gallery
max.mehl 2 years ago
parent
commit
0f8460fff0
Signed by: mxmehl GPG Key ID: 2704E4AB371E2E92
  1. 4
      themes/hugo-sustain/layouts/partials/head.html

4
themes/hugo-sustain/layouts/partials/head.html

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

Loading…
Cancel
Save