Browse Source

minor update

pull/141/head
abhidj0090 4 years ago
parent
commit
2b41a7d1db
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.BaseURL }}
{{ $url := .BaseURL }}
{{ template "_internal/opengraph.html" . }}
<meta name="og:image" content="{{ with .Params.image }}{{$url}}{{ . | absURL }}{{ else }}{{$url}}{{ `images/Cover.jpg` | absURL }}{{end}}">
<meta name="og:image" content="{{ with .Params.image }}{{$url}}{{ . }}{{ else }}{{$url}}{{ `images/Cover.jpg` }}{{end}}">
{{ template "_internal/twitter_cards.html" . }}
<meta name="twitter:image" content="{{ with .Params.image }}{{$url}}{{ . | absURL }}{{ else }}{{$url}}{{ `images/Cover.jpg` | absURL }}{{end}}">
<meta name="twitter:image" content="{{ with .Params.image }}{{$url}}{{ . }}{{ else }}{{$url}}{{ `images/Cover.jpg`}}{{end}}">

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

Loading…
Cancel
Save