Explorar el Código

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

Fix #1074
George Cushen hace 6 años
padre
commit
e8966f703a
Se han modificado 1 ficheros con 1 adiciones y 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>