瀏覽代碼

minor update

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

+ 1
- 1
exampleSite/config.toml 查看文件

@@ -1,6 +1,6 @@
baseURL = "https://calcomp.netlify.app/"
canonifyURLs = "true"
staticURL="https://calcomp.netlify.app"
staticAddress="https://calcomp.netlify.app"
disableLanguages = ["Fr"]
disqusShortname = ""
paginate = "6"

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

@@ -6,11 +6,9 @@
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
<meta name="description" content="{{ with .Description }}{{ . }}{{ else }}{{ with site.Params.description }}{{ . }}{{ end }}{{ end }}">
{{ with site.Params.author }}
<meta name="author" content="{{ . }}">{{ end }}
{{ hugo.Generator }}

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

Loading…
取消
儲存