Explorar o código

publication: Make abstract optional (#382)

Igor Gilitschenski %!s(int64=7) %!d(string=hai) anos
pai
achega
84eb4a6e30
Modificáronse 1 ficheiros con 2 adicións e 0 borrados
  1. 2 0
      layouts/publication/single.html

+ 2 - 0
layouts/publication/single.html

@@ -22,8 +22,10 @@
     <img src="{{ "/img/" | relURL }}{{ .Params.image }}" class="pub-banner" itemprop="image">
     {{end}}
 
+    {{ if .Params.abstract }}
     <h3>{{ i18n "abstract" }}</h3>
     <p class="pub-abstract" itemprop="text">{{ .Params.abstract | markdownify }}</p>
+    {{ end }}
 
     {{ if (.Params.publication_types) and (ne (index .Params.publication_types 0) "0") }}
     <div class="row">