diff --git a/_config.yml b/_config.yml index 1fa88d1..59c0614 100644 --- a/_config.yml +++ b/_config.yml @@ -14,7 +14,7 @@ country: United States of America phone: (716) 555-5555 # homepage tiles -tiles-source: posts # accepts "posts" or "pages" +tiles-source: pages # accepts "posts" or "pages" tiles-count: 6 # social settings diff --git a/_includes/tiles.html b/_includes/tiles.html index 080cc0a..d9a0524 100644 --- a/_includes/tiles.html +++ b/_includes/tiles.html @@ -1,28 +1,28 @@
- {% for post in site.posts limit:site.tiles-count %} - {% if site.tiles-source == 'posts' %} -
- - - -
-

{{ post.title }}

-

{{ post.description }}

-
-
- {% endif %} - {% endfor %} - {% for page in site.pages limit:site.tiles-count %} - {% if site.tiles-source == 'pages' %} -
- - - -
-

{{ page.title }}

-

{{ page.description }}

-
-
- {% endif %} - {% endfor %} + {% for post in site.posts limit:site.tiles-count %} + {% if site.tiles-source == 'posts' %} +
+ + + +
+

{{ post.title }}

+

{{ post.description }}

+
+
+ {% endif %} + {% endfor %} + {% for page in site.pages limit:site.tiles-count %} + {% if site.tiles-source == 'pages' and page.title != 404 %} +
+ + + +
+

{{ page.title }}

+

{{ page.description }}

+
+
+ {% endif %} + {% endfor %}
diff --git a/_layouts/allposts.html b/_layouts/allposts.html index b4c570c..0bd6e24 100644 --- a/_layouts/allposts.html +++ b/_layouts/allposts.html @@ -1,39 +1,41 @@ + Forty by HTML5 UP + html5up.net | @ajlkn + Free for personal and commercial use under the CCA 3.0 license (html5up.net/license) + --> -{% include head.html %} + {% include head.html %} - + {% include header.html %} - -
+ +
- -
+ +
- {% for post in site.posts %} -
-

{{ post.title }}

-
- {% if post.image %}{% endif %} - {% if post.date %}

{{ post.date }}

{% endif %} -

{{ post.content }}

- {% endfor %} + {% for post in site.posts %} + {% if post.title != 404 %} +
+

{{ post.title }}

+
+ {% if post.image %}{% endif %} + {% if post.date %}

{{ post.date }}

{% endif %} +

{{ post.content }}

+ {% endif %} + {% endfor %}
-
+
-
+
{% include footer.html %} - +