summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
author8chan <admin@8chan.co>2014-12-20 07:02:42 -0800
committerczaks <marcin@6irc.net>2016-05-06 12:17:51 +0200
commitaa0d3395b181671907800cd7110c00e35d8a8a13 (patch)
tree0abede0541938e3b34ea1a8d4a89c246b26a7b83
parentb6f3d440809f87a803632cefe66a861c8e20bd9b (diff)
Show first 256 chars of body in <title>
-rw-r--r--templates/thread.html2
1 files changed, 1 insertions, 1 deletions
diff --git a/templates/thread.html b/templates/thread.html
index 7f8668a3..335cd610 100644
--- a/templates/thread.html
+++ b/templates/thread.html
@@ -10,7 +10,7 @@
</script>
{% include 'header.html' %}
- <title>{{ board.url }} - {% if config.thread_subject_in_title and thread.subject %}{{ thread.subject }}{% else %}{{ board.title|e }}{% endif %}</title>
+ <title>{{ board.url }} - {% if config.thread_subject_in_title and thread.subject %}{{ thread.subject }}{% else %}{{ thread.body_nomarkup[:256]|e }}{% endif %}</title>
</head>
<body class="8chan vichan {% if mod %}is-moderator{% else %}is-not-moderator{% endif %}" data-stylesheet="{% if config.default_stylesheet.1 != '' %}{{ config.default_stylesheet.1 }}{% else %}default{% endif %}">
{{ boardlist.top }}