Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit3ff23e9

Browse files
author
Alasdair Allan
authored
Merge pull request#1980 from raspberrypi/titles3
Fix page titles - again again!
2 parents5833f33 +3ecb89f commit3ff23e9

File tree

4 files changed

+7
-6
lines changed

4 files changed

+7
-6
lines changed

‎jekyll-assets/_includes/head.html‎

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

‎jekyll-assets/_layouts/docs.html‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
{% include nav.html %}
1515

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

‎scripts/create_build_adoc.py‎

Lines changed: 2 additions & 1 deletion
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‎

Lines changed: 2 additions & 2 deletions
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'intab)== ('subitems'intab)
5151
if'path'intab:
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
forsubitemintab['subitems']:
5656
if'subpath'insubitem:

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp