浏览代码

Update meta tags

George Cushen 9 年之前
父节点
当前提交
523a93f108
共有 1 个文件被更改,包括 4 次插入1 次删除
  1. 4 1
      layouts/partials/header.html

+ 4 - 1
layouts/partials/header.html

@@ -5,7 +5,10 @@
     <meta charset="utf-8" />
     <meta name="viewport" content="width=device-width, initial-scale=1" />
     <meta http-equiv="X-UA-Compatible" content="IE=edge" />
-    <meta name="generator" content="hugo-academic" />
+    <meta name="theme" content="hugo-academic" />
+    {{ .Hugo.Generator }}
+    {{ with .Site.Params.name }}<meta name="author" content="{{ . }}" />{{ end }}
+    {{ with .Site.Params.role }}<meta name="description" content="{{ . }}" />{{ end }}
 
     <link rel="stylesheet" href="/css/bootstrap.min.css" />
     <link rel="stylesheet" href="//cdnjs.cloudflare.com/ajax/libs/highlight.js/9.3.0/styles/default.min.css">