فهرست منبع

pub widget: Fix spacing around year in detailed list view

Ensure there is always a space between publication and year.

Fix #520
George Cushen 7 سال پیش
والد
کامیت
c1fd6ad526
1فایلهای تغییر یافته به همراه4 افزوده شده و 4 حذف شده
  1. 4 4
      layouts/partials/publication_li_detailed.html

+ 4 - 4
layouts/partials/publication_li_detailed.html

@@ -38,11 +38,11 @@
 
   <div class="pub-publication">
     {{ if .Params.publication_short }}
-    {{- .Params.publication_short | markdownify -}},
+    {{ .Params.publication_short | markdownify }},
     {{ else if .Params.publication }}
-    {{- .Params.publication | markdownify -}},
-    {{- end -}}
-    {{- .Date.Format "2006" -}}
+    {{ .Params.publication | markdownify }},
+    {{ end }}
+    {{ .Date.Format "2006" }}
   </div>
 
   <div class="pub-links">