瀏覽代碼

minor update

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

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

@@ -1,6 +1,5 @@
baseURL = "https://calcomp.netlify.app/"
canonifyURLs = "true"
staticAddress="https://calcomp.netlify.app"
disableLanguages = ["Fr"]
disqusShortname = ""
paginate = "6"
@@ -53,6 +52,7 @@ url = "contact"
weight = "6"
[params]
author = ""
staticAddress="https://calcomp.netlify.app"
description = "A platform for scholars of Humanities and Social Sciences. And of course Comparative Literature. "
google_analytics_id = ""
logo = "images/logo.jpg"

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

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

{{ $url := .StaticAddress }}
{{ $url := site.Params.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…
取消
儲存