Skip to content

Commit

Permalink
Star-tags partial
Browse files Browse the repository at this point in the history
  • Loading branch information
arran4 committed Jun 20, 2024
1 parent 1884ae6 commit c8e1e8f
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
8 changes: 8 additions & 0 deletions layouts/partials/misc/startags.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
<div class="tags">
<ul style="padding-left: 0;">
{{ range . }}
{{ $url:= printf "star-tags/%s/" . }}
<li class="rounded"><a href="{{ $url | urlize | relLangURL }}" class="btn btn-sm btn-info">{{ . }}</a></li>
{{ end }}
</ul>
</div>
2 changes: 1 addition & 1 deletion layouts/partials/starcards/post.html
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ <h5 class="card-title">{{ .Title }}</h5>
<p class="card-text post-summary">{{ .Summary }}</p>
</a>
{{ if and site.Params.features.tags.enable site.Params.features.tags.on_card }}
{{ partial "misc/tags.html" .Params.tags }}
{{ partial "misc/startags.html" .Params.startags }}
{{ end }}
</div>
<div class="card-footer">
Expand Down

0 comments on commit c8e1e8f

Please sign in to comment.