| Left: | ||
| Right: |
| OLD | NEW |
|---|---|
| 1 {# | 1 {# |
| 2 # This file is part of the Adblock Plus website, | 2 # This file is part of the Adblock Plus website, |
| 3 # Copyright (C) 2006-present eyeo GmbH | 3 # Copyright (C) 2006-present eyeo GmbH |
| 4 # | 4 # |
| 5 # Adblock Plus is free software: you can redistribute it and/or modify | 5 # Adblock Plus is free software: you can redistribute it and/or modify |
| 6 # it under the terms of the GNU General Public License version 3 as | 6 # it under the terms of the GNU General Public License version 3 as |
| 7 # published by the Free Software Foundation. | 7 # published by the Free Software Foundation. |
| 8 # | 8 # |
| 9 # Adblock Plus is distributed in the hope that it will be useful, | 9 # Adblock Plus is distributed in the hope that it will be useful, |
| 10 # but WITHOUT ANY WARRANTY; without even the implied warranty of | 10 # but WITHOUT ANY WARRANTY; without even the implied warranty of |
| (...skipping 19 matching lines...) Expand all Loading... | |
| 30 </head> | 30 </head> |
| 31 | 31 |
| 32 <body> | 32 <body> |
| 33 <? include navbar ?> | 33 <? include navbar ?> |
| 34 | 34 |
| 35 <div id="content" class="container content {{ localefile == "index" and page }}"> | 35 <div id="content" class="container content {{ localefile == "index" and page }}"> |
| 36 {% if abbnotification %} | 36 {% if abbnotification %} |
| 37 <? include abb-notification ?> | 37 <? include abb-notification ?> |
| 38 {% endif %} | 38 {% endif %} |
| 39 {% if not noheading %} | 39 {% if not noheading %} |
| 40 <h1>{{title|translate("title")}}</h1> | 40 {% set page_title = page_title or title %} |
|
ire
2018/04/03 10:00:32
I added a new field so that the page title being d
juliandoucette
2018/04/03 13:07:51
Acknowledged.
Detail: I'm not a fan of this title
| |
| 41 <h1>{{page_title|translate("title")}}</h1> | |
| 41 {% endif %} | 42 {% endif %} |
| 42 | 43 |
| 43 {% if not notoc %} | 44 {% if not notoc %} |
| 44 {% macro toc(toclist) %} | 45 {% macro toc(toclist) %} |
| 45 <ul> | 46 <ul> |
| 46 {% for item in toclist %} | 47 {% for item in toclist %} |
| 47 <li> | 48 <li> |
| 48 <a href="#{{item.anchor}}">{{item.title}}</a> | 49 <a href="#{{item.anchor}}">{{item.title}}</a> |
| 49 {% if item.subitems %}{{toc(item.subitems)}}{% endif %} | 50 {% if item.subitems %}{{toc(item.subitems)}}{% endif %} |
| 50 </li> | 51 </li> |
| (...skipping 11 matching lines...) Expand all Loading... | |
| 62 | 63 |
| 63 {% block body %} | 64 {% block body %} |
| 64 {{body|safe}} | 65 {{body|safe}} |
| 65 {% endblock %} | 66 {% endblock %} |
| 66 </div> | 67 </div> |
| 67 | 68 |
| 68 <? include footer ?> | 69 <? include footer ?> |
| 69 <? include scripts ?> | 70 <? include scripts ?> |
| 70 </body> | 71 </body> |
| 71 </html> | 72 </html> |
| OLD | NEW |