diff --git a/tpl/gallery.html b/tpl/gallery.html
index 3140b4a..ac0a2c4 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): %}