Skip to content

Commit

Permalink
Merge pull request #180 from salim-b/simplify
Browse files Browse the repository at this point in the history
Simplify template code
  • Loading branch information
somratpro committed Jul 4, 2021
2 parents ca1c3fe + 3b46d37 commit 9a4b529
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion layouts/partials/widgets/taxonomy_category.html
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ <h4 class="widget-title">{{ i18n "categories" }}</h4>
{{- if isset site.Taxonomies "categories" }}
{{- if not (eq (len site.Taxonomies.categories) 0) }}
<ul class="widget-category-list">
{{- range $name := site.Taxonomies.categories }}
{{- range site.Taxonomies.categories }}
<li><a href="{{ .Page.RelPermalink }}"{{ if (and (eq $.Page.Kind "term") (eq $.Page.Type "categories") (eq $.Page.Title .Page.Title)) }} class="current"{{ end }}>{{ .Page.Title }}</a></li>
{{- end }}
</ul>
Expand Down

0 comments on commit 9a4b529

Please sign in to comment.