Эх сурвалжийг харах

fix(widgets): respect the `date_format` option for experience widget (#783)

Sun Yaozhu 6 жил өмнө
parent
commit
4b5c97262c

+ 2 - 2
layouts/partials/widgets/experience.html

@@ -34,9 +34,9 @@
           <div class="card-body">
             <div class="float-right text-muted exp-meta">
               <div>
-                {{ (time .date_start).Format ($.Params.date_format | default "January 2006") }} –
+                {{ (time .date_start).Format ($page.Params.date_format | default "January 2006") }} –
                 {{ if .date_end}}
-                  {{ (time .date_end).Format ($.Params.date_format | default "January 2006") }}
+                  {{ (time .date_end).Format ($page.Params.date_format | default "January 2006") }}
                 {{else}}
                   {{ i18n "present" | default "Present" }}
                 {{end}}