Twig3: templates - change filter tag to apply tag

This commit is contained in:
towards-a-new-leftypol 2023-08-03 16:50:43 -04:00
parent 3d48ccf7e2
commit e7de262d71
18 changed files with 36 additions and 36 deletions

View File

@ -1,4 +1,4 @@
{% filter remove_whitespace %} {% apply remove_whitespace %}
{# Automatically removes unnecessary whitespace #} {# Automatically removes unnecessary whitespace #}
<div class="ban"> <div class="ban">
<iframe width="420" height="315" src="https://www.youtube.com/embed/FXPKJUE86d0" frameborder="0" allowfullscreen></iframe> <iframe width="420" height="315" src="https://www.youtube.com/embed/FXPKJUE86d0" frameborder="0" allowfullscreen></iframe>
@ -142,4 +142,4 @@
{% endif %} {% endif %}
{% endif %} {% endif %}
</div> </div>
{% endfilter %} {% endapply %}

View File

@ -1,7 +1,7 @@
{% filter remove_whitespace %} {% apply remove_whitespace %}
{# Automatically removes unnecessary whitespace #} {# Automatically removes unnecessary whitespace #}
<div class="ban"> <div class="ban">
<h2>You are not banned!</h2> <h2>You are not banned!</h2>
<p class="reason">Well done on not being terrible!</p> <p class="reason">Well done on not being terrible!</p>
</div> </div>
{% endfilter %} {% endapply %}

View File

@ -1,4 +1,4 @@
{% filter remove_whitespace %} {% apply remove_whitespace %}
{# tabs and new lines will be ignored #} {# tabs and new lines will be ignored #}
{# we are intentionally breaking the thread_ID convention: the jses need to handle this case differently #} {# we are intentionally breaking the thread_ID convention: the jses need to handle this case differently #}
@ -39,4 +39,4 @@
<a href="{{ post.root }}{{ board.dir }}{{ config.dir.res }}{{ link_for(post) }}">[{% trans %}Reply{% endtrans %}]</a> <a href="{{ post.root }}{{ board.dir }}{{ config.dir.res }}{{ link_for(post) }}">[{% trans %}Reply{% endtrans %}]</a>
</tr> </tr>
{% endfilter %} {% endapply %}

View File

@ -1,4 +1,4 @@
{% filter remove_whitespace %} {% apply remove_whitespace %}
<!doctype html> <!doctype html>
<html> <html>
<head> <head>
@ -54,4 +54,4 @@
{% endverbatim %}</script> {% endverbatim %}</script>
</body> </body>
</html> </html>
{% endfilter %} {% endapply %}

View File

@ -1,4 +1,4 @@
{% filter remove_whitespace %} {% apply remove_whitespace %}
<!doctype html> <!doctype html>
<html> <html>
<head> <head>
@ -105,4 +105,4 @@
{% endverbatim %}</script> {% endverbatim %}</script>
</body> </body>
</html> </html>
{% endfilter %} {% endapply %}

View File

@ -1,4 +1,4 @@
{% filter remove_whitespace %} {% apply remove_whitespace %}
<div class="introduction"> <div class="introduction">
<style style="display:none;"> <style style="display:none;">
.home-logo { .home-logo {
@ -107,5 +107,5 @@
<br><b>Leftychan.net is not currently under investigation by any Federal, State, or Local Authorities.</b></p> <br><b>Leftychan.net is not currently under investigation by any Federal, State, or Local Authorities.</b></p>
</footer> </footer>
</div> </div>
{% endfilter %} {% endapply %}

View File

@ -1,4 +1,4 @@
{% filter remove_whitespace %} {% apply remove_whitespace %}
<div class="sidebar"> <div class="sidebar">
<fieldset> <fieldset>
<legend>{{ settings.title }}</legend> <legend>{{ settings.title }}</legend>
@ -45,4 +45,4 @@
{% endfor %} {% endfor %}
</div> </div>
{% endfilter %} {% endapply %}

View File

@ -1,4 +1,4 @@
{% filter remove_whitespace %} {% apply remove_whitespace %}
<!DOCTYPE html> <!DOCTYPE html>
<html> <html>
<head> <head>
@ -58,4 +58,4 @@
</body> </body>
</html> </html>
{% endfilter %} {% endapply %}

View File

@ -1,4 +1,4 @@
{% filter remove_whitespace %} {% apply remove_whitespace %}
<!doctype html> <!doctype html>
<html> <html>
<head> <head>
@ -157,5 +157,5 @@
{% endverbatim %}</script> {% endverbatim %}</script>
</body> </body>
</html> </html>
{% endfilter %} {% endapply %}

View File

@ -1,4 +1,4 @@
{% filter remove_whitespace %} {% apply remove_whitespace %}
<!doctype html> <!doctype html>
<html> <html>
<head> <head>
@ -38,4 +38,4 @@
</footer> </footer>
</body> </body>
</html> </html>
{% endfilter %} {% endapply %}

View File

@ -1,4 +1,4 @@
{% filter remove_whitespace %} {% apply remove_whitespace %}
<!doctype html> <!doctype html>
<html> <html>
<head> <head>
@ -38,4 +38,4 @@
</fieldset> </fieldset>
</body> </body>
</html> </html>
{% endfilter %} {% endapply %}

View File

@ -1,4 +1,4 @@
{% filter remove_whitespace %} {% apply remove_whitespace %}
<!DOCTYPE html> <!DOCTYPE html>
<html> <html>
<head> <head>
@ -32,4 +32,4 @@
{% endverbatim %}</script> {% endverbatim %}</script>
</body> </body>
</html> </html>
{% endfilter %} {% endapply %}

View File

@ -1,4 +1,4 @@
{% filter remove_whitespace %} {% apply remove_whitespace %}
<!doctype html> <!doctype html>
<html> <html>
<head> <head>
@ -98,4 +98,4 @@
</div> </div>
</body> </body>
</html> </html>
{% endfilter %} {% endapply %}

View File

@ -1,4 +1,4 @@
{% filter remove_whitespace %} {% apply remove_whitespace %}
<?xml version="1.0" encoding="utf-8"?> <?xml version="1.0" encoding="utf-8"?>
<rss xmlns:dc="http://purl.org/dc/elements/1.1/" <rss xmlns:dc="http://purl.org/dc/elements/1.1/"
version="2.0"> version="2.0">
@ -25,4 +25,4 @@
{% endfor %} {% endfor %}
</channel> </channel>
</rss> </rss>
{% endfilter %} {% endapply %}

View File

@ -1,4 +1,4 @@
{% filter remove_whitespace %} {% apply remove_whitespace %}
<!DOCTYPE html> <!DOCTYPE html>
<html> <html>
<head> <head>
@ -31,5 +31,5 @@
{% endverbatim %}</script> {% endverbatim %}</script>
</body> </body>
</html> </html>
{% endfilter %} {% endapply %}

View File

@ -1,4 +1,4 @@
{% filter remove_whitespace %} {% apply remove_whitespace %}
<?xml version="1.0" encoding="UTF-8"?> <?xml version="1.0" encoding="UTF-8"?>
<urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9"> <urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9">
{% for board in boards %} {% for board in boards %}
@ -16,4 +16,4 @@
{% endfor %} {% endfor %}
{% endfor %} {% endfor %}
</urlset> </urlset>
{% endfilter %} {% endapply %}

View File

@ -1,4 +1,4 @@
{% filter remove_whitespace %} {% apply remove_whitespace %}
<!doctype html> <!doctype html>
<html> <html>
<head> <head>
@ -77,4 +77,4 @@
{% endverbatim %}</script> {% endverbatim %}</script>
</body> </body>
</html> </html>
{% endfilter %} {% endapply %}

View File

@ -1,4 +1,4 @@
{% filter remove_whitespace %} {% apply remove_whitespace %}
<!DOCTYPE html> <!DOCTYPE html>
<html> <html>
<head> <head>
@ -68,4 +68,4 @@
</div> </div>
</body> </body>
</html> </html>
{% endfilter %} {% endapply %}