瀏覽代碼

add meta tag

SyuanYu 2 年之前
父節點
當前提交
ff247cae08
共有 1 個文件被更改,包括 2 次插入0 次删除
  1. 2 0
      themes/hugo-bootstrap-5/layouts/partials/head.html

+ 2 - 0
themes/hugo-bootstrap-5/layouts/partials/head.html

@@ -11,6 +11,8 @@
 <meta charset="utf-8">
 <meta http-equiv="x-ua-compatible" content="ie=edge">
 <meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
+<meta name="author" content="{{ .Site.Title }}">
+<meta property="og:site_name" content="{{ .Site.Title }}">
 
 {{ template "_internal/opengraph.html" . }}
 {{ template "_internal/twitter_cards.html" . }}