소스 검색

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>