Sfoglia il codice sorgente

minor update

pull/141/head
abhidj0090 4 anni fa
parent
commit
967d121b37
1 ha cambiato i file con 4 aggiunte e 3 eliminazioni
  1. 4
    3
      layouts/partials/head.html

+ 4
- 3
layouts/partials/head.html Vedi File

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

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

{{ $url := .Site.BaseURL }}
<meta name="twitter:image" content="{{ with .Params.image }}{{$url}}{{ . }}{{ else }}{{$url}}{{ `images/Cover.jpg` | absURL }}{{end}}">
<meta name="twitter:image" content="{{ with .Params.image }}{{$url}}{{ . }}{{ else }}{{$url}}{{ `images/Cover.jpg` | absURL }}{{end}}">

<link rel="canonical" href="{{ .Permalink }}">
{{ "<!-- plugins -->" | safeHTML }}

Loading…
Annulla
Salva