From ee69b6e674059221c46d38b5898fd40676cf7029 Mon Sep 17 00:00:00 2001 From: Bill Niblock Date: Sat, 13 Jan 2018 00:17:30 -0500 Subject: [PATCH] Implement all posts page and button --- _includes/all_posts.html | 15 +++++++++++++++ _layouts/corrupt_index.html | 3 +++ _topics/all.html | 6 ++++++ src/styles/corrupt.css | 23 +++++++++++++++++++++++ 4 files changed, 47 insertions(+) create mode 100644 _includes/all_posts.html create mode 100644 _topics/all.html diff --git a/_includes/all_posts.html b/_includes/all_posts.html new file mode 100644 index 0000000..cab0b4a --- /dev/null +++ b/_includes/all_posts.html @@ -0,0 +1,15 @@ +{% for post in site.posts %} +
+

{{ post.title }}

+
+
{{ post.pub }}
+
+ {% for topic in post.topics %} + {{topic}} + {% endfor %} +
+
+
{{ post.short_desc }}
+
+{% endfor %} + diff --git a/_layouts/corrupt_index.html b/_layouts/corrupt_index.html index 3b10b4d..b886ae2 100644 --- a/_layouts/corrupt_index.html +++ b/_layouts/corrupt_index.html @@ -20,6 +20,9 @@
{{ content }}
+
+ All Posts +
diff --git a/_topics/all.html b/_topics/all.html new file mode 100644 index 0000000..1dfe96e --- /dev/null +++ b/_topics/all.html @@ -0,0 +1,6 @@ +--- + title: all + tabtitle: "All Posts" +--- + +{% include all_posts.html %} diff --git a/src/styles/corrupt.css b/src/styles/corrupt.css index 99f6b3a..0780299 100644 --- a/src/styles/corrupt.css +++ b/src/styles/corrupt.css @@ -148,6 +148,29 @@ a:hover { color: white; } +#all_button { + padding: 5px; margin: 2em; width: unset; + text-align: center; + border: 1px solid darkgrey; +} + +#all_button a,a:visited,a:link,a:focus { + color: darkgrey; + text-decoration: none; +} + +#all_button a:hover { + font-style: normal; + color: white; +} + +/* Collection */ +#cor_coll_title { + margin: 0px; padding-bottom: 10px; + font: 1.2em "Lucida Sans Unicode", "Lucida Grande", sans-serif; + color: darkgrey; letter-spacing: 0.5em; text-align: center; +} + /* Content */ #content { margin: 75px 5% 5% 5%;