@@ -12,7 +12,20 @@ bodyClass: body-tag
1212 <a href =" /feed.xml" >Atom</a >, <a href =" /feed.json" >JSON</a >
1313 </p >
1414 {{ if pagination .page === 1 }}
15- {{ set pageTags = search .pages (" type=tag" , " tag" ) }}
15+ {{ set pageAuthors = search .pages (" type=author pagination.page=1" , " author" ) }}
16+ {{ if pageAuthors .length > 1 }}
17+ <nav class =" page-navigation" >
18+ <h2 >{{ i18n .search .authors }}:</h2 >
19+
20+ <ul class =" page-navigation-tags" >
21+ {{ for page of pageAuthors }}
22+ <li ><a href =" {{ page .url }}" class =" badge" >{{ page .author }}</a ></li >
23+ {{ / for }}
24+ </ul >
25+ </nav >
26+ {{ / if }}
27+
28+ {{ set pageTags = search .pages (" type=tag pagination.page=1" , " tag" ) }}
1629 {{ if pageTags .length }}
1730 <nav class =" page-navigation" >
1831 <h2 >{{ i18n .search .tags }}<span class =" html-only" > 🏷️</span ></h2 >
@@ -27,30 +40,5 @@ bodyClass: body-tag
2740 {{ / if }}
2841
2942 {{ include " templates/post-list.vto" { postslist: results } }}
30-
31- {{ if pagination .totalPages !== 1 }}
32- <nav class =" page-pagination pagination" >
33- <ul >
34- {{- if pagination .previous }}
35- <li class =" pagination-prev" >
36- <a href =" {{ pagination .previous }}" rel =" prev" >{{ i18n .nav .previous }}</a >
37- </li >
38- {{ / if }}
39-
40- <li class =" pagination-page" >
41- {{ i18n .nav .page }} {{ pagination .page }}
42- </li >
43-
44- {{- if pagination .next }}
45- <li class =" pagination-next" >
46- <a href =" {{ pagination .next }}" rel =" next" >{{ i18n .nav .next }}</a >
47- </li >
48- {{ / if }}
49- </ul >
50- </nav >
51- {{ / if }}
52-
53- {{ if pagination .page === 1 }}
54- <br ><div class =" search" id =" search" ></div >
55- {{ / if }}
43+ {{ include " templates/pagination.vto" }}
5644</main >
0 commit comments