Dotclear

source: inc/public/default-templates/dotty/category.html @ 3249:aeb7ade75620

Revision 3249:aeb7ade75620, 3.7 KB checked in by franck <carnet.franck.paul@…>, 9 years ago (diff)

No more Shema.org and OpenGraph? meta in head, let 3rd party plugin doing it's optionnal job, 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="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
75          <tpl:CategoryFirstChildren>
76               <tpl:CategoriesHeader>
77                    <div id="subcategories" class="content-info__sub-cat">
78                         <h3>{{tpl:lang Subcategories}}</h3>
79                         <ul>
80               </tpl:CategoriesHeader>
81                              <li class="post-cat"><a href="{{tpl:CategoryURL}}">{{tpl:CategoryTitle encode_html="1"}}</a></li>
82               <tpl:CategoriesFooter>
83                         </ul>
84                    </div>
85               </tpl:CategoriesFooter>
86          </tpl:CategoryFirstChildren>
87     </header> <!-- End #content-info -->
88
89     <div class="content-inner">
90          <tpl:Entries>
91               {{tpl:include src="_entry-short.html"}}
92
93               <tpl:EntriesFooter>
94                    {{tpl:include src="_pagination.html"}}
95               </tpl:EntriesFooter>
96          </tpl:Entries>
97     </div> <!-- End #content-inner -->
98</tpl:Block>
Note: See TracBrowser for help on using the repository browser.

Sites map