Merge pull request #34 from CaiJimmy/taxonomy-fix

fix: consistent style of taxonomy name
This commit is contained in:
Jimmy Cai 2020-10-10 09:17:35 +02:00 committed by GitHub
commit 765ff12a09
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
4 changed files with 11 additions and 5 deletions

View file

@ -104,6 +104,7 @@
.article-tags {
flex-wrap: wrap;
text-transform: unset;
}
}
}

View file

@ -7,10 +7,15 @@
{{ if and $image.exists $image.resource }}
{{- $imageRaw := $image.resource | resources.Fingerprint "md5" -}}
{{- $20x := $imageRaw.Fill "20x20 smart" -}}
<a href="{{ .Permalink }}" class="color-tag"
data-image="{{ $20x.RelPermalink }}" data-key="{{ $context.Slug }}" data-hash="{{ $imageRaw.Data.Integrity }}">{{ .LinkTitle | humanize }}</a>
<a href="{{ .Permalink }}"
class="color-tag"
data-image="{{ $20x.RelPermalink }}"
data-key="{{ $context.Slug }}"
data-hash="{{ $imageRaw.Data.Integrity }}">
{{ .LinkTitle }}
</a>
{{ else }}
<a href="{{ .Permalink }}">{{ .LinkTitle | humanize }}</a>
<a href="{{ .Permalink }}">{{ .LinkTitle }}</a>
{{ end }}
{{ end }}
</header>

View file

@ -1,7 +1,7 @@
{{ if .Params.Tags }}
<section class="article-tags">
{{ range (.GetTerms "tags") }}
<a href="{{ .Permalink }}">{{ .LinkTitle | humanize }}</a>
<a href="{{ .Permalink }}">{{ .LinkTitle }}</a>
{{ end }}
</section>
{{ end }}

View file

@ -7,7 +7,7 @@
<div class="tagCloud-tags">
{{ range first .Site.Params.widgets.tagCloud.limit .Site.Taxonomies.tags.ByCount }}
<a href="{{ .Page.Permalink }}" class="font_size_{{ .Count }}">
{{ .Page.Title | humanize }}
{{ .Page.Title }}
</a>
{{ end }}
</div>