Skip to content

Commit e530004

Browse files
Redirect /product to /products (#664)
* add a new products.html page * add redirect from /product to /products * update link from /product to /products in navbar * update link from /product to /products in sitemap.txt
1 parent 4e9047c commit e530004

File tree

4 files changed

+57
-45
lines changed

4 files changed

+57
-45
lines changed

_includes/nav.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@
4747
<a class="nav-link" href="{{ site.baseurl }}/donate">Donate</a>
4848
</li>
4949
<li class="nav-item">
50-
<a class="nav-link" href="{{ site.baseurl }}/product">Products</a>
50+
<a class="nav-link" href="{{ site.baseurl }}/products">Products</a>
5151
</li>
5252
</ul>
5353
</div>
@@ -106,7 +106,7 @@
106106
<a class="nav-link" href="{{ site.baseurl }}/donate">Donate</a>
107107
</li>
108108
<li class="nav-item">
109-
<a class="nav-link" href="{{ site.baseurl }}/product">Products</a>
109+
<a class="nav-link" href="{{ site.baseurl }}/products">Products</a>
110110
</li>
111111
</ul>
112112
</div>

product.html

Lines changed: 7 additions & 42 deletions
Original file line numberDiff line numberDiff line change
@@ -3,45 +3,10 @@
33
title: Products - Sugar Labs
44
permalink: /product/index.html
55
---
6-
7-
<!-- Title section -->
8-
<div class="section-title1">
9-
<span class="tag tag-regular">Our Products</span>
10-
</div>
11-
12-
<!-- Products Section -->
13-
<section id="intro">
14-
<div class="container my-2">
15-
<div class="border-bottom pb-3 mb-3">
16-
<div class="product-container">
17-
<!-- Product Card 1 -->
18-
<div class="product-card">
19-
<img src="assets\products\sugarlabs_merch.jpg" alt="Merch" class="product-image" />
20-
<div class="product-details">
21-
<h3 class="product-name">Sugarlabs Merch</h3>
22-
<p class="product-description">
23-
Sweet merch that supports our unique cause.
24-
</p>
25-
<div class="product-footer">
26-
<a href="https://www.bonfire.com/store/sugar-labs-merch/" class="explore-btn">Explore More</a>
27-
</div>
28-
</div>
29-
</div>
30-
31-
<!-- Product Card 2 -->
32-
<div class="product-card">
33-
<img src="assets\products\sugarlabs_USB_drive.jpg" alt="SOAS" class="product-image" />
34-
<div class="product-details">
35-
<h3 class="product-name">Sugarlabs USB Flash Drive</h3>
36-
<p class="product-description">
37-
Easily install Fedora Sugar On A Stick (SOAS) to your device directly from this USB flash drive.
38-
</p>
39-
<div class="product-footer">
40-
<a href="https://www.usbmemorydirect.com/store/novelty/sugarlabs/" class="explore-btn">Explore More</a>
41-
</div>
42-
</div>
43-
</div>
44-
</div>
45-
</div>
46-
</div>
47-
</section>
6+
<!-- This page will redirect to /products -->
7+
<script>
8+
window.location.href = "/products";
9+
</script>
10+
<noscript>
11+
<meta http-equiv="refresh" content="0; url=/products">
12+
</noscript>

products.html

Lines changed: 47 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,47 @@
1+
---
2+
layout: default
3+
title: Products - Sugar Labs
4+
permalink: /products/index.html
5+
---
6+
7+
<!-- Title section -->
8+
<div class="section-title1">
9+
<span class="tag tag-regular">Our Products</span>
10+
</div>
11+
12+
<!-- Products Section -->
13+
<section id="intro">
14+
<div class="container my-2">
15+
<div class="border-bottom pb-3 mb-3">
16+
<div class="product-container">
17+
<!-- Product Card 1 -->
18+
<div class="product-card">
19+
<img src="assets\products\sugarlabs_merch.jpg" alt="Merch" class="product-image" />
20+
<div class="product-details">
21+
<h3 class="product-name">Sugarlabs Merch</h3>
22+
<p class="product-description">
23+
Sweet merch that supports our unique cause.
24+
</p>
25+
<div class="product-footer">
26+
<a href="https://www.bonfire.com/store/sugar-labs-merch/" class="explore-btn">Explore More</a>
27+
</div>
28+
</div>
29+
</div>
30+
31+
<!-- Product Card 2 -->
32+
<div class="product-card">
33+
<img src="assets\products\sugarlabs_USB_drive.jpg" alt="SOAS" class="product-image" />
34+
<div class="product-details">
35+
<h3 class="product-name">Sugarlabs USB Flash Drive</h3>
36+
<p class="product-description">
37+
Easily install Fedora Sugar On A Stick (SOAS) to your device directly from this USB flash drive.
38+
</p>
39+
<div class="product-footer">
40+
<a href="https://www.usbmemorydirect.com/store/novelty/sugarlabs/" class="explore-btn">Explore More</a>
41+
</div>
42+
</div>
43+
</div>
44+
</div>
45+
</div>
46+
</div>
47+
</section>

sitemap.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,6 @@ https://www.sugarlabs.org/sugar-for-raspbian/
2323
https://www.sugarlabs.org/sugar-for-raspberry-pi/
2424
https://www.sugarlabs.org/flatpak/
2525
https://www.sugarlabs.org/profiles/
26-
https://www.sugarlabs.org/product/
26+
https://www.sugarlabs.org/products/
2727
{% for post in site.posts %}https://www.sugarlabs.org{{ post.url }}
2828
{% endfor %}

0 commit comments

Comments
 (0)