mirror of
https://github.com/Aroy-Art/Rinkusu.git
synced 2025-04-29 19:57:49 +02:00
Reordered blog post header
This commit is contained in:
parent
8a56acab67
commit
2376d33499
4 changed files with 25 additions and 18 deletions
|
@ -2,7 +2,7 @@
|
|||
<div class="tagContainer">
|
||||
{{ range $index, $tag := (. | sort) }}
|
||||
{{ with $.Site.GetPage (printf "/%s/%s" "tags" $tag) }}
|
||||
<a class="tags" href="{{ .Permalink }}">#{{ $tag | urlize }}</a>
|
||||
<a class="tags" href="{{ .Permalink }}/">#{{ $tag | urlize }}</a>
|
||||
{{ end }}
|
||||
{{ end }}
|
||||
</div>
|
||||
|
|
|
@ -13,7 +13,7 @@
|
|||
{{ $currentFontSize := (add $smallestFontSize (mul (sub $tagCount $min) $fontStep) ) }}
|
||||
{{ $weight := div (sub (math.Log $tagCount) (math.Log $min)) (sub (math.Log $max) (math.Log $min)) }}
|
||||
{{ $currentFontSize := (add $smallestFontSize (mul (sub $largestFontSize $smallestFontSize) $weight)) }}
|
||||
<a href="{{ "/tags/" | relURL }}{{ $name | urlize }}"
|
||||
<a href="{{ "/tags/" | relURL }}{{ $name | urlize }}/"
|
||||
class="tagcloud-item" style="font-size: {{ $currentFontSize }}rem;">
|
||||
{{ $name }}<sup>{{ $tagCount }}</sup>
|
||||
</a>
|
||||
|
|
|
@ -2,7 +2,7 @@
|
|||
<ul>
|
||||
{{ range $index, $tag := . }} {{ with $.Site.GetPage (printf "/%s/%s" $taxonomy $tag) -}}
|
||||
<li>
|
||||
<a href="{{ .Permalink }}">{{ $tag | urlize }}</a>
|
||||
<a href="{{ .Permalink }}/">{{ $tag | urlize }}</a>
|
||||
</li>
|
||||
{{- end -}} {{- end -}}
|
||||
</ul>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue