Dotclear

source: inc/public/default-templates/baklava/category.html @ 2983:15189c4a828f

Revision 2983:15189c4a828f, 3.7 KB checked in by franck <carnet.franck.paul@…>, 10 years ago (diff)

Keep h1 only for blog title -> W3C recommandation: Consider using the h1 element as a top-level heading only (all h1 elements are treated as top-level headings by many screen readers and other tools).

Line 
1{{tpl:extends parent="__layout.html"}}
2
3<tpl:Block name="head-title">
4     <title>{{tpl:CategoryTitle encode_html="1"}} - {{tpl:BlogName encode_html="1"}}<tpl:PaginationIf start="0"> - {{tpl:lang page}} {{tpl:PaginationCurrent}}</tpl:PaginationIf></title>
5</tpl:Block>
6
7<tpl:Block name="meta-robots">
8     <meta name="ROBOTS" content="{{tpl:BlogMetaRobots robots="NOINDEX"}}" />
9</tpl:Block>
10
11<tpl:Block name="meta-entry">
12     <meta name="description" lang="{{tpl:BlogLanguage}}" content="{{tpl:CategoryDescription encode_html="1" cut_string="180" remove_html="1"}}" />
13     <meta name="author" content="{{tpl:BlogEditor encode_html="1"}}" />
14     <meta name="date" content="{{tpl:BlogUpdateDate iso8601="1"}}" />
15</tpl:Block>
16
17<tpl:Block name="dc-entry">
18     <meta property="dc.title" lang="{{tpl:BlogLanguage}}" content="{{tpl:CategoryTitle encode_html="1"}} - {{tpl:BlogName encode_html="1"}}<tpl:PaginationIf start="0"> - {{tpl:lang page}} {{tpl:PaginationCurrent}}</tpl:PaginationIf>" />
19     <meta property="dc.description" lang="{{tpl:BlogLanguage}}" content="{{tpl:CategoryDescription remove_html="1"}}" />
20     <meta property="dc.language" content="{{tpl:BlogLanguage}}" />
21     <meta property="dc.date" content="{{tpl:BlogUpdateDate iso8601="1"}}" />
22</tpl:Block>
23
24<tpl:Block name="head-linkrel">
25     <link rel="top" href="{{tpl:BlogURL}}" title="{{tpl:lang Home}}" />
26     <link rel="contents" href="{{tpl:BlogArchiveURL}}" title="{{tpl:lang Archives}}" />
27
28     <tpl:Entries no_content="1">
29          <tpl:EntriesHeader>
30               <tpl:Pagination>
31                    <tpl:PaginationIf end="0">
32                         <link rel="prev" title="{{tpl:lang previous entries}}" href="{{tpl:PaginationURL offset="1"}}" />
33                    </tpl:PaginationIf>
34
35                    <tpl:PaginationIf start="0">
36                         <link rel="next" title="{{tpl:lang next entries}}" href="{{tpl:PaginationURL offset="-1"}}" />
37                    </tpl:PaginationIf>
38               </tpl:Pagination>
39          </tpl:EntriesHeader>
40
41          <link rel="chapter" href="{{tpl:EntryURL}}" title="{{tpl:EntryTitle encode_html="1"}}" />
42     </tpl:Entries>
43
44     <link rel="alternate" type="application/atom+xml" title="Atom 1.0" href="{{tpl:CategoryFeedURL type="atom"}}" />
45</tpl:Block>
46
47<tpl:Block name="body-tag"><body class="dc-category"></tpl:Block>
48
49<tpl:Block name="main-content">
50     <header id="content-info">
51          <h2>
52               <tpl:CategoryParents>
53                    <a href="{{tpl:CategoryURL}}">{{tpl:CategoryTitle encode_html="1"}}</a> &rsaquo;
54               </tpl:CategoryParents>
55               {{tpl:CategoryTitle encode_html="1"}}
56          </h2>
57
58          <tpl:CategoryIf has_entries="1">
59               <ul class="content-info__feed">
60                    <li><a type="application/atom+xml" href="{{tpl:CategoryFeedURL type="atom"}}"
61                     title="{{tpl:lang This category's entries Atom feed}}" class="feed">{{tpl:lang Entries feed}}</a></li>
62
63                    <tpl:SysIf operator="or" comments_active="1" pings_active="1">
64                          <li><a type="application/atom+xml" href="{{tpl:CategoryFeedURL type="atom"}}/comments"
65                          title="{{tpl:lang This category's comments Atom feed}}" class="feed">{{tpl:lang Comments feed}}</a></li>
66                    </tpl:SysIf>
67               </ul>
68          </tpl:CategoryIf>
69
70          <div class="content-info__cat-desc">
71               {{tpl:CategoryDescription}}
72          </div>
73
74          <tpl:CategoryFirstChildren>
75               <tpl:CategoriesHeader>
76                    <div id="subcategories" class="content-info__sub-cat">
77                         <h3>{{tpl:lang Subcategories}}</h3>
78                         <ul>
79               </tpl:CategoriesHeader>
80                              <li class="post-cat"><a href="{{tpl:CategoryURL}}">{{tpl:CategoryTitle encode_html="1"}}</a></li>
81               <tpl:CategoriesFooter>
82                         </ul>
83                    </div>
84               </tpl:CategoriesFooter>
85          </tpl:CategoryFirstChildren>
86     </header> <!-- End #content-info -->
87
88     <div class="content-inner">
89          <tpl:Entries>
90               {{tpl:include src="_entry-short.html"}}
91
92               <tpl:EntriesFooter>
93                    {{tpl:include src="_pagination.html"}}
94               </tpl:EntriesFooter>
95          </tpl:Entries>
96     </div> <!-- End #content-inner -->
97</tpl:Block>
Note: See TracBrowser for help on using the repository browser.

Sites map