Skip to content

Commit

Permalink
Fix services behavior for newer hugo version
Browse files Browse the repository at this point in the history
  • Loading branch information
Titan-C committed Oct 22, 2023
1 parent 55a73ff commit 5da34f6
Showing 1 changed file with 8 additions and 10 deletions.
18 changes: 8 additions & 10 deletions layouts/partials/services.html
Original file line number Diff line number Diff line change
@@ -1,16 +1,14 @@
<section id="services">

<!-- Page Content -->
{{ range $index, $element := where .Data.Pages "Section" "in" "post" }}

<!-- Page Content -->
{{ range $index, $element := where .Pages "Type" "in" "post" }} {{ range
.Pages }}
<div class="content-striped">
<div class="container">
<hr class="section-heading-spacer">
<div class="clearfix"></div>
<h1 class="section-heading">{{ .Title }}</h1>
{{ .Content }}
<hr class="section-heading-spacer" />
<div class="clearfix"></div>
<h1 class="section-heading">{{ .Title }}</h1>
{{ .Content }}
</div>
</div>
{{ end }}

{{ end }} {{ end }}
</section>

0 comments on commit 5da34f6

Please sign in to comment.