Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

refactor(layouts): Category pages (excl. videos.html) use common layout file #8

Open
wants to merge 2 commits into
base: gh-pages
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 8 additions & 0 deletions _layouts/default_category.html
Original file line number Diff line number Diff line change
@@ -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 %}
8 changes: 2 additions & 6 deletions category/ai.html
Original file line number Diff line number Diff line change
@@ -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" %}
8 changes: 2 additions & 6 deletions category/cloud.html
Original file line number Diff line number Diff line change
@@ -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" %}
9 changes: 2 additions & 7 deletions category/data-engineering.html
Original file line number Diff line number Diff line change
@@ -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" %}
9 changes: 2 additions & 7 deletions category/delivery.html
Original file line number Diff line number Diff line change
@@ -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" %}
9 changes: 2 additions & 7 deletions category/open-source.html
Original file line number Diff line number Diff line change
@@ -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" %}
9 changes: 2 additions & 7 deletions category/people.html
Original file line number Diff line number Diff line change
@@ -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" %}
9 changes: 2 additions & 7 deletions category/podcast.html
Original file line number Diff line number Diff line change
@@ -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" %}
9 changes: 2 additions & 7 deletions category/resources.html
Original file line number Diff line number Diff line change
@@ -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" %}
9 changes: 2 additions & 7 deletions category/sustainability.html
Original file line number Diff line number Diff line change
@@ -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" %}
9 changes: 2 additions & 7 deletions category/tech.html
Original file line number Diff line number Diff line change
@@ -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" %}
9 changes: 2 additions & 7 deletions category/test.html
Original file line number Diff line number Diff line change
@@ -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" %}
8 changes: 2 additions & 6 deletions category/ux.html
Original file line number Diff line number Diff line change
@@ -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" %}
Loading