Explorar o código

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

Close #518
George Cushen %!s(int64=7) %!d(string=hai) anos
pai
achega
3b15254f18
Modificáronse 1 ficheiros con 2 adicións e 0 borrados
  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 }}