Merge pull request #33 from driftingrafttechnology/services-weight

Added variable weighted_services so that services weight is used.
This commit is contained in:
Robert Austin 2021-03-09 11:41:41 +10:00 committed by GitHub
commit 7b2ec44ad4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 2 deletions

View File

@ -20,7 +20,8 @@ bodyClass: page-services-list
<div class="container pt-6 pb-6">
<div class="row">
{% for service in site.services %}
{% assign weighted_services = site.services | sort: "weight" %}
{% for service in weighted_services %}
<div class="col-12 col-md-6 mb-3">
<div class="service service-summary">
<div class="service-content">
@ -33,4 +34,4 @@ bodyClass: page-services-list
</div>
{% endfor %}
</div>
</div>
</div>