Merge pull request #34 from CaiJimmy/taxonomy-fix
fix: consistent style of taxonomy name
This commit is contained in:
commit
765ff12a09
@ -104,6 +104,7 @@
|
|||||||
|
|
||||||
.article-tags {
|
.article-tags {
|
||||||
flex-wrap: wrap;
|
flex-wrap: wrap;
|
||||||
|
text-transform: unset;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -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>
|
||||||
|
@ -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 }}
|
@ -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>
|
||||||
|
Loading…
Reference in New Issue
Block a user