Skip to content

Commit

Permalink
clean category
Browse files Browse the repository at this point in the history
  • Loading branch information
sebousan committed Nov 3, 2023
1 parent 728ac09 commit 14253c3
Show file tree
Hide file tree
Showing 6 changed files with 13 additions and 25 deletions.
12 changes: 4 additions & 8 deletions layouts/partials/services/item/services_categories.html
Original file line number Diff line number Diff line change
@@ -1,9 +1,5 @@
{{ with .GetTerms "services_categories" }}
<div class="list-services_categories">
<ul>
{{ range . }}
<li>{{ .Title }}</li>
{{ end }}
</ul>
</div>
{{ end }}
{{ range . }}
<p class="category" itemprop="category">{{ partial "func/PrepareHTML" .Title }}</p>
{{ end }}
{{ end }}
11 changes: 2 additions & 9 deletions layouts/partials/services/services_categories.html
Original file line number Diff line number Diff line change
@@ -1,10 +1,3 @@
{{ with .GetTerms "services_categories" }}
<div class="list-services_categories">
<p>{{ i18n "services_categories.title" (. | len) }}</p>
<ul>
{{ range . }}
<li><a href="{{ .Permalink }}">{{ .Title }}</a></li>
{{ end }}
</ul>
</div>
{{ range first 1 (.GetTerms "services_categories") }}
<p class="surtitle">{{ partial "func/PrepareHTML" .Title }}</p>
{{ end }}
4 changes: 1 addition & 3 deletions layouts/partials/services_categories/container-single.html
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
<div class="container">
{{ partial "services_categories/heading-single" . }}
{{ partial
"services_categories/filters" .
}}
{{ partial "services_categories/filters" . }}
{{ partial "services_categories/services" . }}
</div>
4 changes: 1 addition & 3 deletions layouts/partials/services_categories/container.html
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
<div class="container">
{{ partial "services_categories/heading" . }}
{{ partial
"services_categories/paginator" .
}}
{{ partial "services_categories/paginator" . }}
</div>
5 changes: 4 additions & 1 deletion layouts/services_categories/term.html
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@
{{ define "hero" }}{{- partial "services_categories/hero-single" . -}}{{ end }}
{{ define "hero" }}
{{- partial "services_categories/hero-single" . -}}
{{ end }}

{{ define "main" }}
{{ partial "services_categories/schema-single" . }}
{{ partial "services_categories/container-single" . }}
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "hugolify-theme-services-categories",
"version": "0.0.0",
"version": "1.0.0",
"homepage": "https://www.hugolify.io",
"repository": "https://github.com/hugolify/hugolify-theme-services-categories",
"bugs": {
Expand Down

0 comments on commit 14253c3

Please sign in to comment.