diff --git a/content/archive/_index.md b/content/archive/_index.md
index 8406ec7..08c52cc 100644
--- a/content/archive/_index.md
+++ b/content/archive/_index.md
@@ -1,4 +1,5 @@
+++
sort_by = "date"
template= "archive.html"
-+++
\ No newline at end of file
+paginate_by= 10
++++
diff --git a/sass/_codeblocks.scss b/sass/_codeblocks.scss
new file mode 100644
index 0000000..39aeb4b
--- /dev/null
+++ b/sass/_codeblocks.scss
@@ -0,0 +1,29 @@
+pre {
+ display: block;
+ padding: 0.25rem 1.25rem;
+ font-size: 85%;
+ border-left: 0.25rem solid var(--primary-accent-color);
+ }
+
+ code {
+ padding: 0 0.4rem;
+ // background-color: #3c3836;
+ background-color: var(--inline-code-background-color);
+ /* Inline code blocks look less aggresive with a little rounding. */
+ border-radius: 2px;
+ }
+
+ pre, code {
+ overflow: auto;
+ font-family: var(--default-mono-font);
+ }
+
+ /* Without this the tag gains a little padding that offsets text by like
+ 2 pixels. Let's *not* do that. */
+ pre > code {
+ padding: 0;
+ background-color: var(--code-background-color);
+ // Code inside a pre block doesn't need rounded borders.
+ border-radius: unset;
+ }
+
\ No newline at end of file
diff --git a/sass/_pagination.scss b/sass/_pagination.scss
new file mode 100644
index 0000000..a0b436f
--- /dev/null
+++ b/sass/_pagination.scss
@@ -0,0 +1,16 @@
+.pagination{
+ display: flex;
+ justify-content: space-between;
+ align-items: center;
+ list-style: none;
+
+ .page-item .disabled{
+ opacity: 0.5;
+ pointer-events: none;
+ }
+
+ .page-numbers{
+ font-size: 0.9rem;
+ color: var(--link-color);
+ }
+}
\ No newline at end of file
diff --git a/sass/site.scss b/sass/site.scss
index 96f02a9..f6b85d8 100644
--- a/sass/site.scss
+++ b/sass/site.scss
@@ -5,10 +5,13 @@
- Serve fonts from the local server rather than Google's API.
- Support a "display title" in an [extra] section to allow for
elements
or other manual control over title display. */
-
@charset "utf-8";
+ @use '_pagination.scss';
+ @use '_codeblocks.scss';
+
@import url('https://fonts.googleapis.com/css?family=Noto+Sans|Noto+Serif|Noto+Sans+Mono');
+
:root {
/* Fonts and Text Sizes */
--default-serif-font: "Noto Serif", serif;
@@ -165,37 +168,6 @@
color: var(--muted-color);
}
- /* ---- Code blocks ---------------------------------------------------------*/
-
- pre {
- display: block;
- padding: 0.25rem 1.25rem;
- font-size: 85%;
- border-left: 0.25rem solid var(--primary-accent-color);
- }
-
- code {
- padding: 0 0.4rem;
- // background-color: #3c3836;
- background-color: var(--inline-code-background-color);
- /* Inline code blocks look less aggresive with a little rounding. */
- border-radius: 2px;
- }
-
- pre, code {
- overflow: auto;
- font-family: var(--default-mono-font);
- }
-
- /* Without this the tag gains a little padding that offsets text by like
- 2 pixels. Let's *not* do that. */
- pre > code {
- padding: 0;
- background-color: var(--code-background-color);
- // Code inside a pre block doesn't need rounded borders.
- border-radius: unset;
- }
-
/* ---- Tables --------------------------------------------------------------*/
table {
diff --git a/templates/archive.html b/templates/archive.html
index 2fe517b..20ce9f3 100644
--- a/templates/archive.html
+++ b/templates/archive.html
@@ -1,5 +1,6 @@
{% extends "section.html" %}
{% import "post_macros.html" as page_macros %}
+{% import "paginate.html" as paginate_macro %}
{% block content %}