Explorar o código

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

Fix #1074
George Cushen %!s(int64=6) %!d(string=hai) anos
pai
achega
e8966f703a
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  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>