diff --git a/bootstrap_toolkit/templates/bootstrap_toolkit/pagination.html b/bootstrap_toolkit/templates/bootstrap_toolkit/pagination.html
index 268318a..e2ae45d 100644
--- a/bootstrap_toolkit/templates/bootstrap_toolkit/pagination.html
+++ b/bootstrap_toolkit/templates/bootstrap_toolkit/pagination.html
@@ -3,9 +3,22 @@
diff --git a/bootstrap_toolkit/templatetags/bootstrap_toolkit.py b/bootstrap_toolkit/templatetags/bootstrap_toolkit.py
index 07c1ea9..d4a596a 100644
--- a/bootstrap_toolkit/templatetags/bootstrap_toolkit.py
+++ b/bootstrap_toolkit/templatetags/bootstrap_toolkit.py
@@ -293,7 +293,8 @@ def bootstrap_pagination(page, **kwargs):
return get_pagination_context(**pagination_kwargs)
-def get_pagination_context(page, pages_to_show=11, url=None, size=None, align=None, extra=None):
+def get_pagination_context(page, pages_to_show=11, always_show_first=False, always_show_last=False,
+ show_prev_and_next=False, url=None, size=None, align=None, extra=None):
"""
Generate Bootstrap pagination context from a page object
"""
@@ -363,6 +364,9 @@ def get_pagination_context(page, pages_to_show=11, url=None, size=None, align=No
# Build context object
return {
'bootstrap_pagination_url': url,
+ 'always_show_first': always_show_first,
+ 'always_show_last': always_show_last,
+ 'show_prev_and_next': show_prev_and_next,
'num_pages': num_pages,
'current_page': current_page,
'first_page': first_page,