@@ -7,38 +7,48 @@ bodyClass: body-tag
77 <header class =" page-header" >
88 <h1 class =" page-title" >{{ title }}</h1 >
99 </header >
10- <p >
11- <svg width =" 16" height =" 16" viewBox =" 0 0 16 16" fill =" none" xmlns =" http://www.w3.org/2000/svg" ><circle cx =" 3" cy =" 13" r =" 2" fill =" currentColor" /><path d =" M14 13C14 6.925 9.075 2 3 2M9 13a6 6 0 0 0-6-6" stroke =" currentColor" stroke-width =" 2" stroke-linecap =" round" /></svg > Feed:
12- <a href =" /feed.xml" >Atom</a >, <a href =" /feed.json" >JSON</a >
13- </p >
14- {{ if pagination .page === 1 }}
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 }}
10+ <section class =" archive-main" >
11+ {{ include " templates/post-list.vto" { postslist: results } }}
12+ <div class =" archive-filters" >
13+ {{ if pagination .page === 1 }}
14+ {{
15+ set pageAuthors = search .pages (" type=author pagination.page=1" , " author" )
16+ }}
17+ {{ if pageAuthors .length > 1 }}
18+ <nav class =" page-navigation" >
19+ <h2 >{{ i18n .search .authors }}</h2 >
2720
28- {{ set pageTags = search .pages (" type=tag pagination.page=1" , " tag" ) }}
29- {{ if pageTags .length }}
30- <nav class =" page-navigation" >
31- <h2 >{{ i18n .search .tags }}<span class =" html-only" > 🏷️</span ></h2 >
32-
33- <ul class =" page-navigation-tags" >
34- {{ for page of pageTags }}
35- <li ><a href =" {{ page .url }}" class =" badge" >{{ page .tag }}</a ></li >
36- {{ / for }}
37- </ul >
38- </nav >
39- {{ / if }}
40- {{ / if }}
21+ <ul class =" page-navigation-tags" >
22+ {{ for page of pageAuthors }}
23+ <li >
24+ <a href =" {{ page .url }}" class =" badge" >{{ page .author }}</a >
25+ </li >
26+ {{ / for }}
27+ </ul >
28+ </nav >
29+ {{ / if }}
4130
42- {{ include " templates/post-list.vto" { postslist: results } }}
31+ {{ set pageTags = search .pages (" type=tag pagination.page=1" , " tag" ) }}
32+ {{ if pageTags .length }}
33+ <nav class =" page-navigation" >
34+ <h2 >{{ i18n .search .tags }}<span class =" html-only" > 🏷️</span ></h2 >
35+
36+ <ul class =" page-navigation-tags" >
37+ {{ for page of pageTags }}
38+ <li >
39+ <a href =" {{ page .url }}" class =" badge" >{{ page .tag }}</a >
40+ </li >
41+ {{ / for }}
42+ </ul >
43+ </nav >
44+ {{ / if }}
45+ {{ / if }}
46+ </div >
47+ </section >
4348 {{ include " templates/pagination.vto" }}
44- </main >
49+
50+ <hr >
51+
52+ <p class =" archive-search" >{{ i18n .nav .archive_search }}</p >
53+ <div class =" search" id =" search" ></div >
54+ </main >
0 commit comments