diff --git a/tpl/gallery.html b/tpl/gallery.html
index ac0a2c4..98c4c28 100644
--- a/tpl/gallery.html
+++ b/tpl/gallery.html
@@ -51,9 +51,9 @@
{% endif %}
{% if ($sort == 1): %}
- {{ $page }}
+ {{ $page }}
{% else: %}
- {{ $page }}
+ {{ $page }}
{% endif %}
{% if ($page < $last_page): %}