瀏覽代碼

Don't show `Responsibilities` header, if there aren't any (#540)

Ivan Katliarchuk 3 年之前
父節點
當前提交
abca4629bc
共有 1 個文件被更改,包括 2 次插入0 次删除
  1. 2 0
      layouts/partials/sections/experiences/single-position.html

+ 2 - 0
layouts/partials/sections/experiences/single-position.html

@@ -12,10 +12,12 @@
     <!-- Add company overview -->
     <p>{{ .company.overview | markdownify }}</p>
     <!-- Add the responsibilities handled at this position -->
+    {{ if $position.responsibilities }}
     <h6 class="text-muted">{{ i18n "responsibilities" }}</h6>
     <ul class="justify-content-around">
     {{ range $position.responsibilities }}
         <li>{{ . | markdownify }}</li>
     {{ end }}
     </ul>
+    {{ end }}
 </div>