Dotclear

source: inc/public/default-templates/dotty/category.html @ 3246:9b71237c9035

Revision 3246:9b71237c9035, 4.5 KB checked in by franck <carnet.franck.paul@…>, 9 years ago (diff)

New dotty html5 template set, first step ; addresses #2061

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="og-entry">
25     <meta property="og: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>" />
26     <meta property="og:description" lang="{{tpl:BlogLanguage}}" content="{{tpl:CategoryDescription remove_html="1"}}" />
27</tpl:Block>   <!-- #og-entry -->
28
29<tpl:Block name="schema-entry">
30     <meta itemprop="name" 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>" />
31     <meta itemprop="description" lang="{{tpl:BlogLanguage}}" content="{{tpl:CategoryDescription remove_html="1"}}" />
32</tpl:Block>   <!-- #schema-entry -->
33
34<tpl:Block name="head-linkrel">
35     <link rel="top" href="{{tpl:BlogURL}}" title="{{tpl:lang Home}}" />
36     <link rel="contents" href="{{tpl:BlogArchiveURL}}" title="{{tpl:lang Archives}}" />
37
38     <tpl:Entries no_content="1">
39          <tpl:EntriesHeader>
40               <tpl:Pagination>
41                    <tpl:PaginationIf end="0">
42                         <link rel="prev" title="{{tpl:lang previous entries}}" href="{{tpl:PaginationURL offset="1"}}" />
43                    </tpl:PaginationIf>
44
45                    <tpl:PaginationIf start="0">
46                         <link rel="next" title="{{tpl:lang next entries}}" href="{{tpl:PaginationURL offset="-1"}}" />
47                    </tpl:PaginationIf>
48               </tpl:Pagination>
49          </tpl:EntriesHeader>
50
51          <link rel="chapter" href="{{tpl:EntryURL}}" title="{{tpl:EntryTitle encode_html="1"}}" />
52     </tpl:Entries>
53
54     <link rel="alternate" type="application/atom+xml" title="Atom 1.0" href="{{tpl:CategoryFeedURL type="atom"}}" />
55</tpl:Block>
56
57<tpl:Block name="body-tag"><body class="dc-category"></tpl:Block>
58
59<tpl:Block name="main-content">
60     <header id="content-info">
61          <h2>
62               <tpl:CategoryParents>
63                    <a href="{{tpl:CategoryURL}}">{{tpl:CategoryTitle encode_html="1"}}</a> &rsaquo;
64               </tpl:CategoryParents>
65               {{tpl:CategoryTitle encode_html="1"}}
66          </h2>
67
68          <tpl:CategoryIf has_entries="1">
69               <ul class="content-info__feed">
70                    <li><a type="application/atom+xml" href="{{tpl:CategoryFeedURL type="atom"}}"
71                     title="{{tpl:lang This category's entries Atom feed}}" class="feed">{{tpl:lang Entries feed}}</a></li>
72
73                    <tpl:SysIf operator="or" comments_active="1" pings_active="1">
74                          <li><a type="application/atom+xml" href="{{tpl:CategoryFeedURL type="atom"}}/comments"
75                          title="{{tpl:lang This category's comments Atom feed}}" class="feed">{{tpl:lang Comments feed}}</a></li>
76                    </tpl:SysIf>
77               </ul>
78          </tpl:CategoryIf>
79
80          <div class="content-info__cat-desc">
81               {{tpl:CategoryDescription}}
82          </div>
83
84
85          <tpl:CategoryFirstChildren>
86               <tpl:CategoriesHeader>
87                    <div id="subcategories" class="content-info__sub-cat">
88                         <h3>{{tpl:lang Subcategories}}</h3>
89                         <ul>
90               </tpl:CategoriesHeader>
91                              <li class="post-cat"><a href="{{tpl:CategoryURL}}">{{tpl:CategoryTitle encode_html="1"}}</a></li>
92               <tpl:CategoriesFooter>
93                         </ul>
94                    </div>
95               </tpl:CategoriesFooter>
96          </tpl:CategoryFirstChildren>
97     </header> <!-- End #content-info -->
98
99     <div class="content-inner">
100          <tpl:Entries>
101               {{tpl:include src="_entry-short.html"}}
102
103               <tpl:EntriesFooter>
104                    {{tpl:include src="_pagination.html"}}
105               </tpl:EntriesFooter>
106          </tpl:Entries>
107     </div> <!-- End #content-inner -->
108</tpl:Block>
Note: See TracBrowser for help on using the repository browser.

Sites map