Skip to content

Commit eef9ce0

Browse files
Fixups from Paul M review
1 parent c4e2a9e commit eef9ce0

File tree

2 files changed

+58
-59
lines changed

2 files changed

+58
-59
lines changed

jekyll-assets/_layouts/boxes.html

Lines changed: 57 additions & 54 deletions
Original file line numberDiff line numberDiff line change
@@ -1,67 +1,70 @@
11
<!doctype html>
22
<html lang="en">
3-
<head>
4-
{% include head.html %}
5-
</head>
6-
<body>
7-
{% include header.html %}
83

9-
<div class="toptitle">
10-
<h1><a href="/documentation/"><b>Raspberry Pi</b> Documentation</a></h1>
11-
<div id="search-container">
12-
<div id="docsearch" role="search"></div>
13-
</div>
14-
{% include tabs.html %}
4+
<head>
5+
{% include head.html %}
6+
</head>
7+
8+
<body>
9+
{% include header.html %}
10+
11+
<div class="toptitle">
12+
<h1><a href="/documentation/"><b>Raspberry Pi</b> Documentation</a></h1>
13+
<div id="search-container">
14+
<div id="docsearch" role="search"></div>
1515
</div>
16+
{% include tabs.html %}
17+
</div>
1618

17-
<div id="container" role="main">
18-
<section id="box-content">
19-
{% for item in site.data.index.tabs %}
20-
{% if page.dir == item.path or page.dir == "/" and item.default_tab and item.default_tab == "yes" %}
21-
{% for entry in item.subitems %}
22-
{% if entry.path %}
23-
<a class="box" href="{{ site.baseurl }}{{ entry.path }}">
24-
{% else %}
25-
<a class="box" href="{{ entry.url }}">
26-
{% endif %}
27-
<span><img src="{{ site.baseurl }}{{ entry.imagepath }}" width="121" height="121" alt=""></span>
28-
<span class="title">{{ entry.title | markdownify }}</span>
29-
<span>{{ entry.description }}</span>
30-
</a>
31-
{% endfor %}
19+
<div id="container" role="main">
20+
<section id="box-content">
21+
{% for item in site.data.index.tabs %}
22+
{% if page.dir == item.path or page.dir == "/" and item.default_tab and item.default_tab == "yes" %}
23+
{% for entry in item.subitems %}
24+
{% if entry.path %}
25+
<a class="box" href="{{ site.baseurl }}{{ entry.path }}">
26+
{% else %}
27+
<a class="box" href="{{ entry.url }}">
3228
{% endif %}
29+
<span><img src="{{ site.baseurl }}{{ entry.imagepath }}" width="121" height="121" alt=""></span>
30+
<span class="title">{{ entry.title | markdownify }}</span>
31+
<span>{{ entry.description }}</span>
32+
</a>
3333
{% endfor %}
34-
</section>
35-
</div>
34+
{% endif %}
35+
{% endfor %}
36+
</section>
37+
</div>
3638

37-
<div id="related" role="complementary">
38-
<div id="related-title">
39-
<h2>Related resources</h2>
40-
</div>
41-
<div id="related-container" role="complementary">
39+
<div id="related" role="complementary">
40+
<div id="related-title">
41+
<h2>Related resources</h2>
42+
</div>
43+
<div id="related-container" role="complementary">
4244
<section id="related-content">
43-
<a class="box" href="https://pip.raspberrypi.com/">
44-
<span><img src="/documentation/images/full-sized/PIP.png" width="121" height="121" alt=""></span>
45-
<span class="title">Product Information Portal</span>
46-
<span>Documents, reports, and notices for all Raspberry Pi products</span>
47-
</a>
48-
<a class="box" href="https://www.raspberrypi.com/tutorials/">
49-
<span><img src="/documentation/images/full-sized/Tutorials.png" width="121" height="121" alt=""></span>
50-
<span class="title">Tutorials</span>
51-
<span>Hands-on hardware and software tutorials</span>
52-
</a>
53-
<a class="box" href="https://forums.raspberrypi.com/">
54-
<span><img src="/documentation/images/full-sized/Forums.png" width="121" height="121" alt=""></span>
55-
<span class="title">Forums</span>
56-
<span>User and product support forums</span>
57-
</a>
45+
<a class="box" href="https://pip.raspberrypi.com/">
46+
<span><img src="/documentation/images/full-sized/PIP.png" width="121" height="121" alt=""></span>
47+
<span class="title">Product Information Portal</span>
48+
<span>Documents, reports, and notices for all Raspberry Pi products</span>
49+
</a>
50+
<a class="box" href="https://www.raspberrypi.com/tutorials/">
51+
<span><img src="/documentation/images/full-sized/Tutorials.png" width="121" height="121" alt=""></span>
52+
<span class="title">Tutorials</span>
53+
<span>Hands-on hardware and software tutorials</span>
54+
</a>
55+
<a class="box" href="https://forums.raspberrypi.com/">
56+
<span><img src="/documentation/images/full-sized/Forums.png" width="121" height="121" alt=""></span>
57+
<span class="title">Forums</span>
58+
<span>User and product support forums</span>
59+
</a>
5860
</section>
59-
</div>
6061
</div>
62+
</div>
63+
64+
{% include legal.html %}
65+
{% include footer.html %}
66+
{% include search.html %}
6167

62-
{% include legal.html %}
63-
{% include footer.html %}
64-
{% include search.html %}
68+
</body>
6569

66-
</body>
67-
</html>
70+
</html>

jekyll-assets/css/style.css

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -242,7 +242,6 @@ div.subtitle p {
242242
}
243243

244244
#related-title {
245-
width: 100%;
246245
text-align: center;
247246
}
248247

@@ -1416,7 +1415,7 @@ input:not(:checked) ~ li ~ .itemcontents .sectlevel1 {
14161415
content: "";
14171416
display: block;
14181417
height: 60px;
1419-
margin -60px 0 0;
1418+
margin: -60px 0 0;
14201419
}
14211420

14221421
/* when the mobile menu is visible, hide all page content so we don't end up with dueling scrollbars */
@@ -1558,9 +1557,6 @@ input:not(:checked) ~ li ~ .itemcontents .sectlevel1 {
15581557
#content {
15591558
margin-left: 0px;
15601559
}
1561-
#container,
1562-
#related-container {
1563-
}
15641560
}
15651561

15661562
@media print {

0 commit comments

Comments
 (0)