diff --git a/_layouts/default_category.html b/_layouts/default_category.html new file mode 100644 index 0000000000..d149b81a14 --- /dev/null +++ b/_layouts/default_category.html @@ -0,0 +1,8 @@ +--- +layout: default +--- +{% assign posts = site.categories[page.category] %} +{% if posts %} +{% assign posts = posts | sort: 'date' | reverse | uniq %} +{% endif %} +{% include post_index.html posts=posts categoryName=page.category %} diff --git a/category/ai.html b/category/ai.html index ef65b5e8d2..6595707909 100644 --- a/category/ai.html +++ b/category/ai.html @@ -1,12 +1,8 @@ --- title: Artificial Intelligence -layout: default +layout: default_category summary: Scott Logic's thoughts and ideas relating to Artificial Intelligence image: "/assets/blog.png" +category: "Artificial Intelligence" --- -{% assign posts = site.categories["Artificial Intelligence"] %} -{% if posts %} - {% assign posts = posts | sort: 'date' | reverse | uniq %} -{% endif %} -{% include post_index.html posts=posts categoryName="Artificial Intelligence" %} diff --git a/category/cloud.html b/category/cloud.html index 9f86b53799..95f1247a54 100644 --- a/category/cloud.html +++ b/category/cloud.html @@ -1,12 +1,8 @@ --- title: Cloud -layout: default +layout: default_category summary: Scott Logic's thoughts and ideas relating to Cloud Technologies image: "/assets/blog.png" +category: Cloud --- -{% assign posts = site.categories["Cloud"] %} -{% if posts %} - {% assign posts = posts | sort: 'date' | reverse | uniq %} -{% endif %} -{% include post_index.html posts=posts categoryName="Cloud" %} diff --git a/category/data-engineering.html b/category/data-engineering.html index c019484d47..4db90a3fb4 100644 --- a/category/data-engineering.html +++ b/category/data-engineering.html @@ -1,12 +1,7 @@ --- title: Data Engineering -layout: default +layout: default_category summary: Scott Logic's thoughts and ideas relating to Data Engineering image: "/assets/blog.png" +category: "Data Engineering" --- - -{% assign posts = site.categories["Data Engineering"] %} -{% if posts %} - {% assign posts = posts | sort: 'date' | reverse | uniq %} -{% endif %} -{% include post_index.html posts=posts categoryName="Data Engineering" %} diff --git a/category/delivery.html b/category/delivery.html index d5ab1c319e..8329c23ead 100644 --- a/category/delivery.html +++ b/category/delivery.html @@ -1,12 +1,7 @@ --- title: Delivery -layout: default +layout: default_category summary: Scott Logic's thoughts and ideas relating to Delivery image: "/assets/blog.png" +category: Delivery --- - -{% assign posts = site.categories["Delivery"] %} -{% if posts %} - {% assign posts = posts | sort: 'date' | reverse | uniq %} -{% endif %} -{% include post_index.html posts=posts categoryName="Delivery" %} diff --git a/category/open-source.html b/category/open-source.html index 5d63005cbc..5036e985a6 100644 --- a/category/open-source.html +++ b/category/open-source.html @@ -1,12 +1,7 @@ --- title: Open Source -layout: default +layout: default_category summary: Scott Logic's thoughts and ideas relating to Open Source image: "/assets/blog.png" +category: "Open Source" --- - -{% assign posts = site.categories["Open Source"] %} -{% if posts %} - {% assign posts = posts | sort: 'date' | reverse | uniq %} -{% endif %} -{% include post_index.html posts=posts categoryName="Open Source" %} diff --git a/category/people.html b/category/people.html index 4f922f9caa..261bab9187 100644 --- a/category/people.html +++ b/category/people.html @@ -1,15 +1,10 @@ --- title: People -layout: default +layout: default_category summary: Scott Logic's thoughts and ideas relating to People image: "/assets/blog.png" redirect_from: - "/category/careers.html" - "/category/diversity.html" +category: People --- - -{% assign posts = site.categories["People"] %} -{% if posts %} - {% assign posts = posts | sort: 'date' | reverse | uniq %} -{% endif %} -{% include post_index.html posts=posts categoryName="People" %} diff --git a/category/podcast.html b/category/podcast.html index 88cb08018b..3c91f76613 100644 --- a/category/podcast.html +++ b/category/podcast.html @@ -1,13 +1,8 @@ --- title: Beyond the Hype Podcast -layout: default +layout: default_category summary: Beyond the Hype is a monthly podcast from the Scott Logic team where we cast a practical eye over what is new and exciting in software development image: "/assets/blog.png" +category: Podcast --- - -{% assign posts = site.categories["Podcast"] %} -{% if posts %} - {% assign posts = posts | sort: 'date' | reverse | uniq %} -{% endif %} -{% include post_index.html posts=posts categoryName="Podcast" %} diff --git a/category/resources.html b/category/resources.html index c9b9d74475..144a7c2009 100644 --- a/category/resources.html +++ b/category/resources.html @@ -1,12 +1,7 @@ --- title: Resources -layout: default +layout: default_category summary: Scott Logic's white papers and guides image: "/assets/blog.png" +category: Resources --- - -{% assign posts = site.categories["Resources"] %} -{% if posts %} - {% assign posts = posts | sort: 'date' | reverse | uniq %} -{% endif %} -{% include post_index.html posts=posts categoryName="Resources" %} diff --git a/category/sustainability.html b/category/sustainability.html index b9759a35ae..18193973ae 100644 --- a/category/sustainability.html +++ b/category/sustainability.html @@ -1,12 +1,7 @@ --- title: Sustainability -layout: default +layout: default_category summary: Scott Logic's thoughts and ideas relating to Sustainability image: "/assets/blog.png" +category: Sustainability --- - -{% assign posts = site.categories["Sustainability"] %} -{% if posts %} - {% assign posts = posts | sort: 'date' | reverse | uniq %} -{% endif %} -{% include post_index.html posts=posts categoryName="Sustainability" %} diff --git a/category/tech.html b/category/tech.html index 95258ef65d..de1837d947 100644 --- a/category/tech.html +++ b/category/tech.html @@ -1,12 +1,7 @@ --- title: Tech -layout: default +layout: default_category summary: Scott Logic's thoughts and ideas relating to Tech image: "/assets/blog.png" +category: Tech --- - -{% assign posts = site.categories["Tech"] %} -{% if posts %} - {% assign posts = posts | sort: 'date' | reverse | uniq %} -{% endif %} -{% include post_index.html posts=posts categoryName="Tech" %} diff --git a/category/test.html b/category/test.html index 7ccf1e1860..8e65477a90 100644 --- a/category/test.html +++ b/category/test.html @@ -1,12 +1,7 @@ --- title: Testing -layout: default +layout: default_category summary: Scott Logic's thoughts and ideas relating to Test image: "/assets/blog.png" +category: Testing --- - -{% assign posts = site.categories["Testing"] %} -{% if posts %} - {% assign posts = posts | sort: 'date' | reverse | uniq %} -{% endif %} -{% include post_index.html posts=posts categoryName="Testing" %} diff --git a/category/ux.html b/category/ux.html index 6ae50f95fa..9400020411 100644 --- a/category/ux.html +++ b/category/ux.html @@ -1,12 +1,8 @@ --- title: UX Design -layout: default +layout: default_category summary: Scott Logic's thoughts and ideas relating to UX Design image: "/assets/blog.png" +category: UX Design --- -{% assign posts = site.categories["UX Design"] %} -{% if posts %} - {% assign posts = posts | sort: 'date' | reverse | uniq %} -{% endif %} -{% include post_index.html posts=posts categoryName="UX Design" %}