소스 검색

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 }}