From c19e1b9d91d231cb47cb73d6d35c2936019c110e Mon Sep 17 00:00:00 2001 From: DigitalAdapt Date: Tue, 22 Jan 2019 13:39:53 -0500 Subject: [PATCH] Made posts without images use the full width, stopped having an image tag without url. Posts list on homepage now works the same as other category pages. Getting away from page banners on top of site. Using seo_tag.title instead of generating the same thing by hand. --- _includes/category.html | 10 ++++++++ _includes/footer.html | 2 +- _includes/posts.html | 55 ++++++++++++++++++----------------------- _layouts/category.html | 2 +- _layouts/default.html | 2 +- _layouts/home.html | 25 +------------------ assets/css/main.scss | 4 +++ 7 files changed, 42 insertions(+), 58 deletions(-) create mode 100644 _includes/category.html diff --git a/_includes/category.html b/_includes/category.html new file mode 100644 index 0000000..388786b --- /dev/null +++ b/_includes/category.html @@ -0,0 +1,10 @@ +{%- for category in site.categories -%} + {%- if category[0] != page.category -%} + {%- continue -%} + {%- endif -%} + + {% assign posts = category[1] -%} + {%- include posts.html posts = posts -%} + + {%- break -%} +{%- endfor -%} diff --git a/_includes/footer.html b/_includes/footer.html index 5fddc67..d0072cf 100644 --- a/_includes/footer.html +++ b/_includes/footer.html @@ -2,7 +2,7 @@