Browse Source

minor update

pull/141/head
abhidj0090 4 years ago
parent
commit
da3aa4126e
1 changed files with 3 additions and 3 deletions
  1. 3
    3
      layouts/partials/head.html

+ 3
- 3
layouts/partials/head.html View File

@@ -10,11 +10,11 @@
<meta name="author" content="{{ . }}">{{ end }}
{{ hugo.Generator }}

{{ $url := .Site.StaticURL }}
{{ $url := .Site.staticURL }}
{{ template "_internal/opengraph.html" . }}
<meta name="og:image" content="{{ with .Params.image }}{{ . | absURL }}{{ else }}{{ `images/Cover.jpg` | absURL}}{{end}}">
<meta name="og:image" content="{{ with .Params.image }}{{$url}}{{ . | absURL }}{{ else }}{{$url}}{{ `images/Cover.jpg` | absURL}}{{end}}">
{{ template "_internal/twitter_cards.html" . }}
<meta name="twitter:image" content="{{ with .Params.image }}{{ . | absURL}}{{ else }}{{ `images/Cover.jpg` | absURL}}{{end}}">
<meta name="twitter:image" content="{{ with .Params.image }}{{$url}}{{ . | absURL}}{{ else }}{{$url}}{{ `images/Cover.jpg` | absURL}}{{end}}">

<link rel="canonical" href="{{ .Permalink }}">

Loading…
Cancel
Save