소스 검색

publication: Make abstract optional (#382)

Igor Gilitschenski 7 년 전
부모
커밋
84eb4a6e30
1개의 변경된 파일2개의 추가작업 그리고 0개의 파일을 삭제
  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">