From 60b4f0aebfd2d071abc3e3bc31402154629ed88a Mon Sep 17 00:00:00 2001 From: Dylan Lloyd Date: Fri, 10 Feb 2023 18:39:15 -0500 Subject: [PATCH] Add archive layout and abstract syntax headers --- _includes/head.html | 2 +- _includes/highlighter.html | 17 +++++++++++++++++ _includes/note.html | 19 +++++++++++++++++++ _layouts/archive.html | 25 +++++++++++++++++++++++++ _layouts/note.html | 22 +++------------------- notes/index.html | 18 +----------------- 6 files changed, 66 insertions(+), 37 deletions(-) create mode 100644 _includes/highlighter.html create mode 100644 _includes/note.html create mode 100644 _layouts/archive.html diff --git a/_includes/head.html b/_includes/head.html index 665b921..e98f611 100644 --- a/_includes/head.html +++ b/_includes/head.html @@ -4,7 +4,7 @@ {{ site.title }} - + diff --git a/_includes/highlighter.html b/_includes/highlighter.html new file mode 100644 index 0000000..9e28a18 --- /dev/null +++ b/_includes/highlighter.html @@ -0,0 +1,17 @@ + + + + + + diff --git a/_includes/note.html b/_includes/note.html new file mode 100644 index 0000000..193381b --- /dev/null +++ b/_includes/note.html @@ -0,0 +1,19 @@ +
+
+
+ {% if page.date %} + + {{ page.date | date: '%Y-%m-%d' }} + / + {% endif %} + + + {{ page.title }} + + +
+
+ {{ content }} +
+
+
diff --git a/_layouts/archive.html b/_layouts/archive.html new file mode 100644 index 0000000..51db00a --- /dev/null +++ b/_layouts/archive.html @@ -0,0 +1,25 @@ +--- +layout: default +--- + +{% include highlighter.html %} + + diff --git a/_layouts/note.html b/_layouts/note.html index 0e3c844..0f13155 100644 --- a/_layouts/note.html +++ b/_layouts/note.html @@ -2,22 +2,6 @@ layout: default --- -
-
-
- {% if page.date %} - - {{ page.date | date: '%Y-%m-%d' }} - / - {% endif %} - - - {{ page.title }} - - -
-
- {{ content }} -
-
-
+{% include highlighter.html %} + +{% include note.html %} diff --git a/notes/index.html b/notes/index.html index 53de769..fe2df6b 100644 --- a/notes/index.html +++ b/notes/index.html @@ -2,23 +2,6 @@ layout: note --- - - - - - - {% for page in paginator.posts %}
@@ -42,6 +25,7 @@ layout: note previous {% endif %} + {% if paginator.next_page_path %}