This repository has been archived by the owner on Dec 28, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Use workaround for collection ordering
* Will be updated for github-pages when Jekyll version is bumped up to 4 * github/pages-gem#651
- Loading branch information
1 parent
4fe1517
commit 7cff28a
Showing
2 changed files
with
44 additions
and
35 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters