Browse Source

fix(shortcode): remove Hugo 0.55+ deprecation warning for Gallery

Fix #1074
George Cushen 6 năm trước cách đây
mục cha
commit
e8966f703a
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  1. 1 1
      layouts/shortcodes/gallery.html

+ 1 - 1
layouts/shortcodes/gallery.html

@@ -50,7 +50,7 @@
   </a>
   {{end}}
   {{else}}
-    {{ errorf "Unable to load gallery in %s." .Page.Filename }}
+    {{ errorf "Unable to load gallery in %s." .Page.File.Filename }}
   {{end}}
   {{end}}
 </div>