浏览代码

about widget: Make `year` optional

George Cushen 8 年之前
父节点
当前提交
3b7a6747ea
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      layouts/partials/widgets/about.html

+ 1 - 1
layouts/partials/widgets/about.html

@@ -62,7 +62,7 @@
               <li>
                 <i class="fa-li fa fa-graduation-cap"></i>
                 <div class="description">
-                  <p class="course">{{ .course }}, {{ .year }}</p>
+                  <p class="course">{{ .course }}{{ with .year }}, {{ . }}{{ end }}</p>
                   <p class="institution">{{ .institution }}</p>
                 </div>
               </li>