We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6caeb3e commit 5034872Copy full SHA for 5034872
lib/website.py
@@ -45,6 +45,10 @@
45
)
46
47
48
+def to_topic_page_head_html(title):
49
+ return f'<html>\n<head><meta charset="utf-8"><title>{title}</title></head>\n'
50
+
51
52
def build_website(
53
json_root,
54
md_root,
@@ -237,7 +241,13 @@ def write_topic_messages(
237
241
topic_name,
238
242
239
243
240
- outfile.write(page_head_html)
244
+ # We use a topic-specific title instead of `page_head_html` to improve
245
+ # search engine indexing.
246
+ outfile.write(
247
+ to_topic_page_head_html(
248
+ html.escape(topic_name) + " · " + html.escape(stream_name) + " · " + title
249
+ )
250
251
outfile.write(topic_links)
252
outfile.write(
253
f'\n<head><link href="{html.escape(site_url)}/style.css" rel="stylesheet"></head>\n'
0 commit comments