theme/templates/base.html

changeset 114
33cd55d481ba
parent 108
08c0c0d695e8
child 121
3f05a2d4e4b6
child 122
08b9a05b3d8d
equal deleted inserted replaced
113:0bcf355064e5 114:33cd55d481ba
10 <link rel="stylesheet" href="{{ SITEURL }}/theme/css/peertube.css" media="all"> 10 <link rel="stylesheet" href="{{ SITEURL }}/theme/css/peertube.css" media="all">
11 {% block head %} 11 {% block head %}
12 <title>{% block title %}{{ SITENAME }}{% endblock title %}</title> 12 <title>{% block title %}{{ SITENAME }}{% endblock title %}</title>
13 <meta charset="utf-8" /> 13 <meta charset="utf-8" />
14 {% if FEED_ALL_ATOM %} 14 {% if FEED_ALL_ATOM %}
15 <link href="{{ FEED_DOMAIN }}/{{ FEED_ALL_ATOM }}" type="application/atom+xml" rel="alternate" title="{{ SITENAME }} Full Atom Feed" /> 15 <link href="{{ FEED_DOMAIN }}/{% if FEED_ALL_ATOM_URL %}{{ FEED_ALL_ATOM_URL }}{% else %}{{ FEED_ALL_ATOM }}{% endif %}" type="application/atom+xml" rel="alternate" title="{{ SITENAME }} Full Atom Feed" />
16 {% endif %} 16 {% endif %}
17 {% if FEED_ALL_RSS %} 17 {% if FEED_ALL_RSS %}
18 <link href="{{ FEED_DOMAIN }}/{{ FEED_ALL_RSS }}" type="application/rss+xml" rel="alternate" title="{{ SITENAME }} Full RSS Feed" /> 18 <link href="{{ FEED_DOMAIN }}/{% if FEED_ALL_RSS_URL %}{{ FEED_ALL_RSS_URL }}{% else %}{{ FEED_ALL_RSS }}{% endif %}" type="application/rss+xml" rel="alternate" title="{{ SITENAME }} Full RSS Feed" />
19 {% endif %} 19 {% endif %}
20 {% if FEED_ATOM %} 20 {% if FEED_ATOM %}
21 <link href="{{ FEED_DOMAIN }}/{{ FEED_ATOM }}" type="application/atom+xml" rel="alternate" title="{{ SITENAME }} Atom Feed" /> 21 <link href="{{ FEED_DOMAIN }}/{%if FEED_ATOM_URL %}{{ FEED_ATOM_URL }}{% else %}{{ FEED_ATOM }}{% endif %}" type="application/atom+xml" rel="alternate" title="{{ SITENAME }} Atom Feed" />
22 {% endif %} 22 {% endif %}
23 {% if FEED_RSS %} 23 {% if FEED_RSS %}
24 <link href="{{ FEED_DOMAIN }}/{{ FEED_RSS }}" type="application/rss+xml" rel="alternate" title="{{ SITENAME }} RSS Feed" /> 24 <link href="{{ FEED_DOMAIN }}/{% if FEED_RSS_URL %}{{ FEED_RSS_URL }}{% else %}{{ FEED_RSS }}{% endif %}" type="application/rss+xml" rel="alternate" title="{{ SITENAME }} RSS Feed" />
25 {% endif %} 25 {% endif %}
26 {% if CATEGORY_FEED_ATOM and category %} 26 {% if CATEGORY_FEED_ATOM and category %}
27 <link href="{{ FEED_DOMAIN }}/{{ CATEGORY_FEED_ATOM|format(category.slug) }}" type="application/atom+xml" rel="alternate" title="{{ SITENAME }} Categories Atom Feed" /> 27 <link href="{{ FEED_DOMAIN }}/{% if CATEGORY_FEED_ATOM_URL %}{{ CATEGORY_FEED_ATOM_URL|format(category.slug) }}{% else %}{{ CATEGORY_FEED_ATOM|format(category.slug) }}{% endif %}" type="application/atom+xml" rel="alternate" title="{{ SITENAME }} Categories Atom Feed" />
28 {% endif %} 28 {% endif %}
29 {% if CATEGORY_FEED_RSS and category %} 29 {% if CATEGORY_FEED_RSS and category %}
30 <link href="{{ FEED_DOMAIN }}/{{ CATEGORY_FEED_RSS|format(category.slug) }}" type="application/rss+xml" rel="alternate" title="{{ SITENAME }} Categories RSS Feed" /> 30 <link href="{{ FEED_DOMAIN }}/{% if CATEGORY_FEED_RSS_URL %}{{ CATEGORY_FEED_RSS_URL|format(category.slug) }}{% else %}{{ CATEGORY_FEED_RSS|format(category.slug) }}{% endif %}" type="application/rss+xml" rel="alternate" title="{{ SITENAME }} Categories RSS Feed" />
31 {% endif %} 31 {% endif %}
32 {% if TAG_FEED_ATOM and tag %} 32 {% if TAG_FEED_ATOM and tag %}
33 <link href="{{ FEED_DOMAIN }}/{{ TAG_FEED_ATOM|format(tag.slug) }}" type="application/atom+xml" rel="alternate" title="{{ SITENAME }} Tags Atom Feed" /> 33 <link href="{{ FEED_DOMAIN }}/{% if TAG_FEED_ATOM_URL %}{{ TAG_FEED_ATOM_URL|format(tag.slug) }}{% else %}{{ TAG_FEED_ATOM|format(tag.slug) }}{% endif %}" type="application/atom+xml" rel="alternate" title="{{ SITENAME }} Tags Atom Feed" />
34 {% endif %} 34 {% endif %}
35 {% if TAG_FEED_RSS and tag %} 35 {% if TAG_FEED_RSS and tag %}
36 <link href="{{ FEED_DOMAIN }}/{{ TAG_FEED_RSS|format(tag.slug) }}" type="application/rss+xml" rel="alternate" title="{{ SITENAME }} Tags RSS Feed" /> 36 <link href="{{ FEED_DOMAIN }}/{% if TAG_FEED_RSS_URL %}{{ TAG_FEED_RSS_URL|format(tag.slug) }}{% else %}{{ TAG_FEED_RSS|format(tag.slug) }}{% endif %}" type="application/rss+xml" rel="alternate" title="{{ SITENAME }} Tags RSS Feed" />
37 {% endif %} 37 {% endif %}
38 {% if PIWIK %} 38 {% if PIWIK %}
39 {{PIWIK}} 39 {{PIWIK}}
40 {% endif %} 40 {% endif %}
41 {% if article %} 41 {% if article %}
42 {% if article.stylesheets %} 42 {% if article.stylesheets %}
43 {% for stylesheet in article.stylesheets %} 43 {% for stylesheet in article.stylesheets %}
44 {{ stylesheet }} 44 {{ stylesheet }}
45 {% endfor %} 45 {% endfor %}
46 {% endif %} 46 {% endif %}
47 47
48 {% if article.javascripts %} 48 {% if article.javascripts %}
49 {% for javascript in article.javascripts %} 49 {% for javascript in article.javascripts %}
50 {{ javascript }} 50 {{ javascript }}
51 {% endfor %} 51 {% endfor %}
52 {% endif %} 52 {% endif %}
53 {% endif %} 53 {% endif %}
54 <script type="text/javascript" src="{{ SITEURL }}/js/plotly-latest.min.js"></script> 54 <script type="text/javascript" src="{{ SITEURL }}/js/plotly-latest.min.js"></script>
55 {% endblock head %} 55 {% endblock head %}
56 </head> 56 </head>
57 <body onload="WaveDrom.ProcessAll()"> 57 <body onload="WaveDrom.ProcessAll()">
58 <div class="pages"> 58 <div class="pages">
59 <ul> 59 <ul>
60 <li class="home"><a href="{{ SITEURL }}/index.html">{{ SITENAME }}</a></li> 60 <li class="home"><a href="{{ SITEURL }}/index.html">{{ SITENAME }}</a></li>
66 {% if cnt >= 0 %} 66 {% if cnt >= 0 %}
67 <li class="category"><a href="{{ SITEURL }}/{{ cat.url }}">{{ cat }}</a>({{ l | length }})</li> 67 <li class="category"><a href="{{ SITEURL }}/{{ cat.url }}">{{ cat }}</a>({{ l | length }})</li>
68 {% set cnt=cnt-1 %} 68 {% set cnt=cnt-1 %}
69 {% endif %} 69 {% endif %}
70 {% endfor %} 70 {% endfor %}
71 71
72 </ul> 72 </ul>
73 </div> 73 </div>
74 {% block pageheader %} 74 {% block pageheader %}
75 <div class="hp-header"> 75 <div class="hp-header">
76 <div class="page-header"> 76 <div class="page-header">
91 {% endblock %} 91 {% endblock %}
92 </div> 92 </div>
93 93
94 <div class="large-3 aside column"> 94 <div class="large-3 aside column">
95 {% block sidecontent %} 95 {% block sidecontent %}
96 {% endblock %} 96 {% endblock %}
97 </div> 97 </div>
98 </div> 98 </div>
99 </div> 99 </div>
100 </div> 100 </div>
101 <div class="footer"> 101 <div class="footer">

mercurial