zwbetz 6 anni fa
parent
commit
bf90b1e4da
1 ha cambiato i file con 3 aggiunte e 8 eliminazioni
  1. 3 8
      layouts/_default/terms.html

+ 3 - 8
layouts/_default/terms.html

@@ -2,22 +2,17 @@
   <main id="main">
     <h1>{{ .Title }}</h1>
     <ul class="patterns-list">
-      {{ $type := .Type }}
-      {{ range $key, $value := .Data.Terms.ByCount }}
-        {{ $name := .Name }}
-        {{ $count := .Count }}
-        {{ with $.Site.GetPage (printf "/%s/%s" $type $name) }}
+      {{ range .Data.Terms.Alphabetical }}
         <li>
           <h2>
-            <a href="{{ .Permalink }}">
+            <a href="{{ .Page.RelPermalink }}">
               <svg class="tag-icon" aria-hidden="true" viewBox="0 0 177.16535 177.16535" focusable="false">
                 <use xlink:href="#tag"></use>
               </svg>
-              {{ printf "(%d) %s" $count $name }}
+              {{ printf "(%d) %s" .Count .Page.Title }}
             </a>
           </h2>
         </li>
-        {{ end }}
       {{ end }}
     </ul>
   </main>