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 { .article-tags {
flex-wrap: wrap; flex-wrap: wrap;
text-transform: unset;
} }
} }
} }

View file

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

View file

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

View file

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