Bladeren bron

No more country flags in <title>

pull/47/head^2
8chan czaks 9 jaren geleden
bovenliggende
commit
6da7f4d25a
3 gewijzigde bestanden met toevoegingen van 3 en 2 verwijderingen
  1. +1
    -0
      inc/lib/Twig/Extensions/Extension/Tinyboard.php
  2. +1
    -1
      templates/themes/catalog/index.rss
  3. +1
    -1
      templates/thread.html

+ 1
- 0
inc/lib/Twig/Extensions/Extension/Tinyboard.php Bestand weergeven

@@ -17,6 +17,7 @@ class Twig_Extensions_Extension_Tinyboard extends Twig_Extension
new Twig_SimpleFilter('extension', 'twig_extension_filter'),
new Twig_SimpleFilter('sprintf', 'sprintf'),
new Twig_SimpleFilter('capcode', 'capcode'),
new Twig_SimpleFilter('remove_modifiers', 'remove_modifiers'),
new Twig_SimpleFilter('hasPermission', 'twig_hasPermission_filter'),
new Twig_SimpleFilter('date', 'twig_date_filter'),
new Twig_SimpleFilter('poster_id', 'poster_id'),


+ 1
- 1
templates/themes/catalog/index.rss Bestand weergeven

@@ -7,7 +7,7 @@
<atom:link href="https://8ch.net/{{ board.uri }}/index.rss" rel="self" type="application/rss+xml"/>
{% for post in recent_posts %}
<item>
<title>{% if post.subject %}{{ post.subject|e }}{% else %}{{ post.body_nomarkup[:256]|e }}{% endif %}</title>
<title>{% if post.subject %}{{ post.subject|e }}{% else %}{{ post.body_nomarkup[:256]|remove_modifiers|e }}{% endif %}</title>
<link>https://8ch.net/{{ board.uri }}/res/{{ post.id }}.html</link>
<guid>https://8ch.net/{{ board.uri }}/res/{{ post.id }}.html</guid>
<comments>https://8ch.net/{{ board.uri }}/res/{{ post.id }}.html</comments>


+ 1
- 1
templates/thread.html Bestand weergeven

@@ -11,7 +11,7 @@

{% include 'header.html' %}

{% set meta_subject %}{% if config.thread_subject_in_title and thread.subject %}{{ thread.subject|e }}{% else %}{{ thread.body_nomarkup[:256]|e }}{% endif %}{% endset %}
{% set meta_subject %}{% if config.thread_subject_in_title and thread.subject %}{{ thread.subject|e }}{% else %}{{ thread.body_nomarkup[:256]|remove_modifiers|e }}{% endif %}{% endset %}

<meta name="description" content="{{ board.url }} - {{ board.title|e }} - {{ meta_subject }}" />
<meta name="twitter:card" value="summary">


Laden…
Annuleren
Opslaan