Browse Source

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

Close #518
George Cushen 7 năm trước cách đây
mục cha
commit
3b15254f18
1 tập tin đã thay đổi với 2 bổ sung0 xóa
  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 }}