Browse Source

about widget: Make `year` optional

George Cushen 8 năm trước cách đây
mục cha
commit
3b7a6747ea
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  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>