forked from leftypol/leftypol
Remove newlines and modifiers from thread title
Parts sampled from NPFchan
This commit is contained in:
parent
9c7239f2d4
commit
46d62584d0
3 changed files with 18 additions and 1 deletions
|
@ -13,7 +13,7 @@
|
|||
|
||||
{% include 'header.html' %}
|
||||
|
||||
{% 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 %}
|
||||
{% set meta_subject %}{% if config.thread_subject_in_title and thread.subject %}{{ thread.subject|e }}{% else %}{{ thread.body_nomarkup[:256]|remove_modifiers|newline_to_full_stop|remove_markup|e }}{% endif %}{% endset %}
|
||||
|
||||
<meta name="description" content="{{ board.url }} - {{ board.title|e }} - {{ meta_subject }}" />
|
||||
<meta name="twitter:card" value="summary">
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue