Merge branch 'develop' of github.com:hugo-next/hugo-theme-next into develop

This commit is contained in:
elkan1788 2024-10-12 09:55:40 +08:00
commit fdfcadadcc
3 changed files with 3 additions and 2 deletions

View File

@ -12,6 +12,7 @@
pre { pre {
position: relative; position: relative;
overflow-x: auto; overflow-x: auto;
padding: 4px;
} }
table tbody tr { table tbody tr {

View File

@ -82,7 +82,7 @@
<div class="tag-cloud-tags"> <div class="tag-cloud-tags">
{{ $randNums := (seq 10) }} {{ $randNums := (seq 10) }}
{{- range $name, $items := $tags }} {{- range $name, $items := $tags }}
<a class="tag-cloud-{{ index (shuffle $randNums) 0 }}" href="{{ "/tags/" | relLangURL }}{{ $name | urlize }}/">{{ .Page.Title }} <a class="tag-cloud-{{ index (shuffle $randNums) 0 }}" href="{{ "/tags/" | relLangURL }}{{ $name | urlize }}/">{{ .Page.Title }}
<span class="tag-list-count"> <span class="tag-list-count">
<sup>({{ len $items }})</sup> <sup>({{ len $items }})</sup>
</span> </span>

View File

@ -1,7 +1,7 @@
{{ with .Params.tags }} {{ with .Params.tags }}
<div class="post-tags"> <div class="post-tags">
{{ range . }} {{ range . }}
<a href="{{ "/tags/" | relLangURL }}{{ . | urlize | lower }}"> <a href="{{ "/tags/" | relLangURL }}{{ . | urlize }}/">
{{ . }} {{ . }}
</a> </a>
{{ end }} {{ end }}