瀏覽代碼

metadata: If set, use the summary parameter for `og:description`

Close #518
George Cushen 7 年之前
父節點
當前提交
3b15254f18
共有 1 個文件被更改,包括 2 次插入0 次删除
  1. 2 0
      layouts/partials/header.html

+ 2 - 0
layouts/partials/header.html

@@ -15,6 +15,8 @@
   {{ if .IsPage }}
     {{ if .Params.abstract }}
       {{ $scr.Set "description" .Params.abstract }}
+    {{ else if .Params.summary }}
+      {{ $scr.Set "description" .Params.summary }}
     {{ else }}
       {{ $scr.Set "description" .Summary }}
     {{ end }}