From af1af681e91f26ff4529dc170c142839faa0d2f5 Mon Sep 17 00:00:00 2001 From: Brendan McDevitt Date: Fri, 18 Dec 2020 16:59:08 -0500 Subject: [PATCH] added index.html pages and a way to ommit the index when looping and listing posts --- _homelab/index.html | 14 ++++++++++++++ _posts/index.html | 14 ++++++++++++++ _programming/index.html | 14 ++++++++++++++ _security/index.html | 14 ++++++++++++++ index.html | 8 ++++++++ 5 files changed, 64 insertions(+) create mode 100644 _homelab/index.html create mode 100644 _posts/index.html create mode 100644 _programming/index.html create mode 100644 _security/index.html diff --git a/_homelab/index.html b/_homelab/index.html new file mode 100644 index 0000000..f0a6168 --- /dev/null +++ b/_homelab/index.html @@ -0,0 +1,14 @@ +--- +layout: default +title: homelab index +--- + +
+

Homelab Posts

+ diff --git a/_posts/index.html b/_posts/index.html new file mode 100644 index 0000000..26c1649 --- /dev/null +++ b/_posts/index.html @@ -0,0 +1,14 @@ +--- +layout: default +title: posts index +--- + +
+

Blog Posts

+
    + {% for post in site.posts %} + {%unless post.title == 'posts index' %} +
  • {{ post.date | date_to_string }} » {{ post.title }}
  • + {%endunless%} + {% endfor %} +
diff --git a/_programming/index.html b/_programming/index.html new file mode 100644 index 0000000..4a7a064 --- /dev/null +++ b/_programming/index.html @@ -0,0 +1,14 @@ +--- +layout: default +title: programming index +--- + +
+

Programming

+
    + {% for post in site.programming %} + {%unless post.title == 'programming index' %} +
  • {{ post.date | date_to_string }} » {{ post.title }}
  • + {%endunless%} + {% endfor %} +
diff --git a/_security/index.html b/_security/index.html new file mode 100644 index 0000000..961b8ad --- /dev/null +++ b/_security/index.html @@ -0,0 +1,14 @@ +--- +layout: default +title: security index +--- + +
+

Security Thoughts

+
    + {% for post in site.security %} + {%unless post.title == 'security index' %} +
  • {{ post.date | date_to_string }} » {{ post.title }}
  • + {%endunless%} + {% endfor %} +
diff --git a/index.html b/index.html index 2326671..b89a6ea 100644 --- a/index.html +++ b/index.html @@ -7,27 +7,35 @@ title: brendan mcdevitt

Blog Posts

    {% for post in site.posts %} + {% unless post.title == 'posts index' %}
  • {{ post.date | date_to_string }} » {{ post.title }}
  • + {% endunless %} {% endfor %}

Homelab Posts

    {% for post in site.homelab %} + {% unless post.title == 'homelab index' %}
  • {{ post.date | date_to_string }} » {{ post.title }}
  • + {% endunless %} {% endfor %}

Programming

    {% for post in site.programming %} + {% unless post.title == 'programming index' %}
  • {{ post.date | date_to_string }} » {{ post.title }}
  • + {% endunless %} {% endfor %}

Security Thoughts

    {% for post in site.security %} + {% unless post.title == 'security index' %}
  • {{ post.date | date_to_string }} » {{ post.title }}
  • + {% endunless %} {% endfor %}