Skip to content

Commit

Permalink
💄 Style:optimize tag cloud style (#235)
Browse files Browse the repository at this point in the history
  • Loading branch information
Lruihao committed Nov 4, 2022
1 parent 6df88b0 commit 79f474b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions assets/css/_partials/_archive/_tags.scss
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,7 @@
.tag-cloud-#{$grade} {
color: $tag-cloud-color!important;
font-size: var(--tag-font);
margin: 10px!important;

&:active,
&:hover {
Expand Down
2 changes: 1 addition & 1 deletion layouts/taxonomy/terms.html
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ <h3 class="card-item-title">
{{- /* Tag Cloud Page */ -}}
{{- else if eq $taxonomies "tags" -}}
{{- $tagCloud := .Site.Params.tagcloud -}}
<div class="tag-cloud-tags">
<div class="tag-cloud-tags{{ with $tagCloud.enable }} text-center{{ end }}">
{{- if $tagCloud.enable -}}
{{- $tags := cond (eq $tagCloud.orderby "name") $.Site.Taxonomies.tags.Alphabetical $.Site.Taxonomies.tags.ByCount -}}
{{- $baseGrade := div ($tagCloud.peekCount | default 10) 10.0 -}}
Expand Down

0 comments on commit 79f474b

Please sign in to comment.