From 689e85e78c106cefb6c83bcdbeae565d021d2e96 Mon Sep 17 00:00:00 2001 From: Adam Carpenter <53hornet@gmail.com> Date: Fri, 3 May 2019 18:54:32 -0400 Subject: Broke apart journal page elements, restored favicon. --- _includes/all-posts.liquid | 20 +++++++++++++++ _includes/post-list.liquid | 36 ++++++++++++++++++++++++++ _includes/similar-posts.liquid | 23 +++++++++++++++++ _includes/toc.liquid | 23 ----------------- _layouts/index.liquid | 13 +++++----- _layouts/journal.liquid | 56 ++--------------------------------------- _layouts/page.liquid | 7 ++---- _layouts/post.liquid | 47 +++++++++++++++++----------------- favicon.ico | Bin 0 -> 53694 bytes public/images/favicon.ico | Bin 53694 -> 0 bytes 10 files changed, 113 insertions(+), 112 deletions(-) create mode 100644 _includes/all-posts.liquid create mode 100644 _includes/post-list.liquid create mode 100644 _includes/similar-posts.liquid delete mode 100644 _includes/toc.liquid create mode 100644 favicon.ico delete mode 100644 public/images/favicon.ico diff --git a/_includes/all-posts.liquid b/_includes/all-posts.liquid new file mode 100644 index 0000000..f8377b1 --- /dev/null +++ b/_includes/all-posts.liquid @@ -0,0 +1,20 @@ + diff --git a/_includes/post-list.liquid b/_includes/post-list.liquid new file mode 100644 index 0000000..7f6d55d --- /dev/null +++ b/_includes/post-list.liquid @@ -0,0 +1,36 @@ +
+ {% for post in collections.posts.pages %} +
+
+
+

+ {% if post.published_date %} + {{ post.published_date | date: "%A, %b %e, %Y" }} + {% endif %} +

+
+
+

+ {{ post.title }} +

+
+ {{ post.content | truncatewords: 50 }} +
+
+ +
+
+ {% endfor %} +
diff --git a/_includes/similar-posts.liquid b/_includes/similar-posts.liquid new file mode 100644 index 0000000..be5ef52 --- /dev/null +++ b/_includes/similar-posts.liquid @@ -0,0 +1,23 @@ + diff --git a/_includes/toc.liquid b/_includes/toc.liquid deleted file mode 100644 index 58f1815..0000000 --- a/_includes/toc.liquid +++ /dev/null @@ -1,23 +0,0 @@ - -
- -
- diff --git a/_layouts/index.liquid b/_layouts/index.liquid index 1b124c3..744b08e 100644 --- a/_layouts/index.liquid +++ b/_layouts/index.liquid @@ -7,12 +7,11 @@ -
+
{% include "nav.liquid" %} @@ -57,6 +56,6 @@
{% include "footer.liquid" %}
- + diff --git a/_layouts/journal.liquid b/_layouts/journal.liquid index 01d0fd1..bdd9ee0 100644 --- a/_layouts/journal.liquid +++ b/_layouts/journal.liquid @@ -48,65 +48,13 @@
- + {% include all-posts.liquid %}
- {% for i in (1..20) %} - {% for post in collections.posts.pages %} -
-
-

- {% if post.published_date %} - {{ post.published_date | date: "%A, %b %e, %Y" }} - {% endif %} -

-
-
-

- {{ post.title }} -

-
- {{ post.content | truncatewords: 50 }} -
-
- -
- {% endfor %} - {%endfor%} + {% include post-list.liquid %}
diff --git a/_layouts/page.liquid b/_layouts/page.liquid index 1c5cd99..28e8e20 100644 --- a/_layouts/page.liquid +++ b/_layouts/page.liquid @@ -6,10 +6,7 @@ -
+
{% include "nav.liquid" %} @@ -54,6 +51,6 @@
{% include "footer.liquid" %}
- + diff --git a/_layouts/post.liquid b/_layouts/post.liquid index 50fb240..80831a2 100644 --- a/_layouts/post.liquid +++ b/_layouts/post.liquid @@ -6,10 +6,7 @@ -
+
{% include "nav.liquid" %} @@ -34,27 +31,25 @@ +

{% if page.categories %} -

- Categories: - {% for category in page.categories %} - - {{ category | downcase }} - - {% endfor %} -

+ Categories: + {% for category in page.categories %} + + {{ category | downcase }} + + {% endfor %} {% endif %} {% if page.tags %} -

- Tags: - {% for tag in page.tags %} - - #{{ tag | downcase }} - - {% endfor %} -

+ Tags: + {% for tag in page.tags %} + + #{{ tag | downcase }} + + {% endfor %} {% endif %} +

@@ -68,8 +63,14 @@
-
- {{ page.content }} +
+
+ {{ page.content }} +
+
+ +
+ {% include similar-posts.liquid %}
@@ -79,6 +80,6 @@ - + diff --git a/favicon.ico b/favicon.ico new file mode 100644 index 0000000..62c2f88 Binary files /dev/null and b/favicon.ico differ diff --git a/public/images/favicon.ico b/public/images/favicon.ico deleted file mode 100644 index 62c2f88..0000000 Binary files a/public/images/favicon.ico and /dev/null differ -- cgit v1.2.3