diff --git a/themes/writeonly/layouts/_default/list.html b/themes/writeonly/layouts/_default/list.html
index 3ba0d44..708ff44 100644
--- a/themes/writeonly/layouts/_default/list.html
+++ b/themes/writeonly/layouts/_default/list.html
@@ -9,7 +9,7 @@
- {{ template "_internal/pagination.html" . }}
+ {{ partial "shared/pagination.html" . }}
{{ end }}
diff --git a/themes/writeonly/layouts/index.html b/themes/writeonly/layouts/index.html
index aed5a3e..4e26f1d 100644
--- a/themes/writeonly/layouts/index.html
+++ b/themes/writeonly/layouts/index.html
@@ -13,7 +13,7 @@
- {{ template "_internal/pagination.html" . }}
+ {{ partial "shared/pagination.html" . }}
{{ end }}
diff --git a/themes/writeonly/layouts/partials/shared/pagination.html b/themes/writeonly/layouts/partials/shared/pagination.html
new file mode 100644
index 0000000..20ffcb5
--- /dev/null
+++ b/themes/writeonly/layouts/partials/shared/pagination.html
@@ -0,0 +1,87 @@
+{{ $paginator := $.Paginator }}
+
+{{ $adjacent_links := 2 }}
+
+{{ $max_links := (add (mul $adjacent_links 2) 1) }}
+
+{{ $lower_limit := (add $adjacent_links 1) }}
+
+{{ $upper_limit := (sub $paginator.TotalPages $adjacent_links) }}
+
+{{ if gt $paginator.TotalPages 1 }}
+
+{{ end }}