Skip to content

Commit

Permalink
Refactor hugo condition reposible for fixing the bugs in both issue u…
Browse files Browse the repository at this point in the history
…nicef#30 and commit e4a8438
  • Loading branch information
Zab committed Mar 12, 2022
1 parent ded2537 commit 3f534dd
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions layouts/partials/default.html
Original file line number Diff line number Diff line change
Expand Up @@ -82,9 +82,7 @@ <h2 class="mb-5" id="title">{{ .Title }}</h2>
{{ range $key, $taxonomy := .Site.Taxonomies.categories }}
{{ if eq $key $p }}
{{ if ne $key $ignore}}
{{ if le $taxonomy.Pages 1 }}
{{ $ignore }}
{{ else }}
{{ if not (le $taxonomy.Pages 1) }}
<section class="my-3 py-3" id="related-articles">
<h5 class="text-center">Related Articles</h5>
<div class="row">
Expand Down

0 comments on commit 3f534dd

Please sign in to comment.