Przeglądaj źródła

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

Close #518
George Cushen 7 lat temu
rodzic
commit
3b15254f18
1 zmienionych plików z 2 dodań i 0 usunięć
  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 }}