瀏覽代碼

minor update

pull/141/head
abhidj0090 4 年之前
父節點
當前提交
43e22321e1
共有 1 個檔案被更改,包括 3 行新增3 行删除
  1. 3
    3
      layouts/partials/head.html

+ 3
- 3
layouts/partials/head.html 查看文件

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

{{ $url := .Site.baseURL }}
{{ $url := .Site.BaseURL }}
{{ template "_internal/opengraph.html" . }}
<meta name="og:image" content="{{ with .Params.image }}{{$url}}{{ . }}{{ else }}{{$url}}{{ `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 }}{{$url}}{{ . }}{{ else }}{{$url}}{{ `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…
取消
儲存