|
57 | 57 |
|
58 | 58 | <!-- is this the search result page? also omits the pagination links below (uses pagination format within search_results.txp instead) --> |
59 | 59 | <txp:if_search> |
60 | | - |
61 | | - <h1 itemprop="name"> |
62 | | - <txp:text item="search_results" /> |
63 | | - </h1> |
| 60 | + <h1 itemprop="name"><txp:text item="search_results" /></h1> |
64 | 61 | <txp:output_form form="search_results" /> |
65 | 62 |
|
66 | 63 | <txp:else /> |
67 | | - |
68 | | - <!-- else is this an article category list? --> |
69 | | - <txp:if_category> |
70 | | - |
71 | | - <h1 itemprop="name"> |
72 | | - <txp:text item="category" /> |
73 | | - <txp:category title="1" /> |
74 | | - </h1> |
75 | | - <txp:article form="article_listing" limit="5" wraptag="ul" class="article-list" /> |
| 64 | + <!-- else is this the front page? --> |
| 65 | + <txp:if_variable name="front-page"> |
| 66 | + <!-- links by default to form: 'default.txp' unless you specify a different form --> |
| 67 | + <txp:article limit="5" /> |
76 | 68 |
|
77 | 69 | <txp:else /> |
78 | | - |
79 | 70 | <!-- else is this an article author list? --> |
80 | 71 | <txp:if_author> |
| 72 | + <h1 itemprop="name"><txp:text item="author" /> <txp:author /></h1> |
81 | 73 |
|
82 | | - <h1 itemprop="name"> |
83 | | - <txp:text item="author" /> |
84 | | - <txp:author /> |
85 | | - </h1> |
86 | | - <txp:article form="article_listing" limit="5" wraptag="ul" class="article-list" /> |
87 | | - |
88 | | - <!-- else display articles normally --> |
89 | 74 | <txp:else /> |
90 | | - |
91 | | - <!-- links by default to form: 'default.txp' unless you specify a different form --> |
92 | | - <txp:article limit="5" /> |
93 | | - |
| 75 | + <!-- else is this an article category list? --> |
| 76 | + <txp:if_category> |
| 77 | + <h1 itemprop="name"><txp:text item="category" /> <txp:category title="1" /></h1> |
| 78 | + </txp:if_category> |
94 | 79 | </txp:if_author> |
95 | | - </txp:if_category> |
| 80 | + <txp:article form="article_listing" limit="10" wraptag="ul" class="article-list" /> |
| 81 | + </txp:if_variable> |
96 | 82 |
|
97 | | - <!-- add pagination links to foot of article listings/category listings/author listings if there are more articles available --> |
| 83 | + <!-- add pagination links to foot of front page/author listings/category listings if there are more articles available --> |
98 | 84 | <txp:evaluate wraptag="p" class="paginator"> |
99 | 85 | <txp:newer rel="prev"> |
100 | 86 | <txp:text item="newer" /> |
101 | 87 | </txp:newer> |
102 | | - |
103 | 88 | <txp:older rel="next"> |
104 | 89 | <txp:text item="older" /> |
105 | 90 | </txp:older> |
106 | 91 | </txp:evaluate> |
107 | | - |
108 | 92 | </txp:if_search> |
109 | 93 |
|
110 | 94 | </main> |
111 | 95 |
|
112 | | - <!-- Complementary content --> |
113 | | - <aside class="complementary-content"> |
114 | | - |
115 | | - <!-- feed links, default flavor is RSS, so we don't need to specify a flavor on the first feed_link --> |
116 | | - <p> |
117 | | - <txp:feed_link class="feed-rss" label="RSS" /> |
118 | | - / |
119 | | - <txp:feed_link class="feed-atom" flavor="atom" label="Atom" /> |
120 | | - </p> |
121 | | - |
122 | | - <!-- if links exist, renders a links list --> |
123 | | - <txp:evaluate test="linklist"> |
124 | | - <section> |
125 | | - <h4> |
126 | | - <txp:text item="links" /> |
127 | | - </h4> |
128 | | - |
129 | | - <!-- links by default to form: 'plainlinks.txp' unless you specify a different form --> |
130 | | - <txp:linklist wraptag="ul" break="li" /> |
131 | | - </section> |
132 | | - </txp:evaluate> |
133 | | - |
134 | | - </aside> |
| 96 | + <txp:output_form form="body_aside" /> |
135 | 97 |
|
136 | 98 | </div> <!-- /.container --> |
137 | 99 | </div> <!-- /.wrapper --> |
|
0 commit comments