Skip to content

Commit 3ff23e9

Browse files
author
Alasdair Allan
authored
Merge pull request raspberrypi#1980 from raspberrypi/titles3
Fix page titles - again again!
2 parents 5833f33 + 3ecb89f commit 3ff23e9

File tree

4 files changed

+7
-6
lines changed

4 files changed

+7
-6
lines changed

jekyll-assets/_includes/head.html

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
<meta charset="utf-8">
22
<meta http-equiv="X-UA-Compatible" content="IE=edge">
33
<meta name="viewport" content="width=device-width, initial-scale=1">
4-
<title>{{ site.title }} - {{ page.title }}</title>
5-
<meta property="og:title" content="{{ site.title }} - {{ page.title }}">
4+
<title>{{ page.title }}</title>
5+
<meta property="og:title" content="{{ page.title }}">
66
<meta property="og:description" content="The official documentation for Raspberry Pi computers and microcontrollers">
77
<meta property="og:url" content="https://www.raspberrypi.org{{ page.url | relative_url }}">
88
<meta property="og:image" content="https://www.raspberrypi.org{{ "/images/opensocial.png" | relative_url }}">

jekyll-assets/_layouts/docs.html

+1-1
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
{% include nav.html %}
1515

1616
<section id="content">
17-
<h1>{{ page.title }}</h1>
17+
<h1>{{ page.sub_title }}</h1>
1818
{{ content }}
1919
</section>
2020
</div>

scripts/create_build_adoc.py

+2-1
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,7 @@
3131
:page-layout: docs
3232
:includedir: {}
3333
:doctitle: {}
34+
:page-sub_title: {}
3435
3536
include::{{includedir}}/{{parentdir}}/{}[]
36-
""".format(output_path, src_dir, index_title, adoc_filename))
37+
""".format(output_path, src_dir, 'Raspberry Pi Documentation - {}'.format(index_title), index_title, adoc_filename))

scripts/create_jekyll_ninjabuild.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ def scan_adoc(adoc_filename, apparent_filename):
3838
output_dir = sys.argv[3]
3939
output_ninjabuild = sys.argv[4]
4040

41-
category_pages = set([('index.adoc', 'Index')])
41+
category_pages = set([('index.adoc', 'Raspberry Pi Documentation')])
4242
doc_pages = set()
4343
page_images = set()
4444

@@ -50,7 +50,7 @@ def scan_adoc(adoc_filename, apparent_filename):
5050
assert ('path' in tab) == ('subitems' in tab)
5151
if 'path' in tab:
5252
# category (boxes) page
53-
category_pages.add((os.path.join(tab['path'], 'index.adoc'), tab['title']))
53+
category_pages.add((os.path.join(tab['path'], 'index.adoc'), 'Raspberry Pi Documentation - {}'.format(tab['title'])))
5454
# build_adoc
5555
for subitem in tab['subitems']:
5656
if 'subpath' in subitem:

0 commit comments

Comments
 (0)