Skip to content
This repository has been archived by the owner on Dec 28, 2021. It is now read-only.

Commit

Permalink
Use workaround for collection ordering
Browse files Browse the repository at this point in the history
  • Loading branch information
monsteronfire committed Oct 17, 2019
1 parent 35e31f6 commit 7e4aad0
Show file tree
Hide file tree
Showing 3 changed files with 45 additions and 36 deletions.
74 changes: 39 additions & 35 deletions _includes/services/list.html
Original file line number Diff line number Diff line change
@@ -1,39 +1,43 @@
<!-- Services List Section -->
<div id="services" class="services">
{% for post in site.services %}
<section id="{{ post.slug }}" class="service-item">
<div class="container">
<div class="row">
<div class="col">
<h2 class="section-heading">
{{ post.title }}
</h2>
</div>
</div>
<div class="row justify-content-between">
<div class="col-md-6">
<h3 class="section-subheading text-muted mb-5">
{{ post.description }}
</h3>
<br />
<a href="{{ post.url | prepend: site.baseurl }}" class="">
Learn more about {{ post.title }}
</a>
</div>
<div class="col-md-5">
<h4>Related projects</h4>
<ul>
{% for project in post.related-projects %}
<li>
<a href="/case-studies{{ project[1] }}">
{{ project[0] | capitalize}}
</a>
</li>
{% endfor %}
</ul>
</div>
</div>
</div>
</section>
{% for post in page.services %}
{% for ordered_post in site.services in %}
{% if post == ordered_post.slug %}
<section id="{{ ordered_post.slug }}" class="service-item">
<div class="container">
<div class="row">
<div class="col">
<h2 class="section-heading">
{{ ordered_post.title }}
</h2>
</div>
</div>
<div class="row justify-content-between">
<div class="col-md-6">
<h3 class="section-subheading text-muted mb-5">
{{ ordered_post.description }}
</h3>
<br />
<a href="{{ ordered_post.url | prepend: site.baseurl }}" class="">
Learn more about {{ ordered_post.title }}
</a>
</div>
<div class="col-md-5">
<h4>Related projects</h4>
<ul>
{% for project in ordered_post.related-projects %}
<li>
<a href="/case-studies{{ project[1] }}">
{{ project[0] | capitalize}}
</a>
</li>
{% endfor %}
</ul>
</div>
</div>
</div>
</section>
{%endif%}
{% endfor %}
{% endfor %}
</div>
2 changes: 1 addition & 1 deletion _services/systems-architecture.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
title: Systems Architecture
layout: service_post
description: Lorem ipsum dolor sit amet, consectetur adipiscing elit. Phasellus varius nisl vitae elit imperdiet laoreet. Curabitur nec turpis eu dolor scelerisque commodo ac in lacus. Donec auctor nibh dui, a mattis velit convallis ac. Interdum et malesuada fames ac ante ipsum primis in faucibus. Nam tristique volutpat velit, ac gravida erat placerat in.
slug: project-rescue
slug: systems-architecture
related-projects:
essayjack: '/essayjack'
fullslate: '/fullslate'
Expand Down
5 changes: 5 additions & 0 deletions pages/services.html
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,11 @@
title: Services
layout: full_page
permalink: /services/
services:
- project-rescue
- custom-software-development
- systems-architecture
- data-engineering
---

<div class="services-page">
Expand Down

0 comments on commit 7e4aad0

Please sign in to comment.