Skip to content

Commit aa45b89

Browse files
imklaujedrzejchalubek
authored andcommitted
fix(): Replace href links in landing section (#98)
1 parent 695edf8 commit aa45b89

File tree

3 files changed

+10
-9
lines changed

3 files changed

+10
-9
lines changed

src/_data/landing.yml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,31 +1,39 @@
11
- name: Guides
22
icon: icon-guides.svg
33
description: "Start here! Best practices, Setup steps, and other useful information."
4+
path: /guides
45

56
- name: Academy
67
icon: icon-academy.svg
78
description: "Learn more about the 'whys' and 'hows' of analytics. A great read if you're just getting started."
9+
path: /academy
810

911
- name: App
1012
icon: icon-app.svg
1113
description: "Learn your way around the Segment web application - hook up data sources to tools and warehouses, set up filtering, and more."
14+
path: /app
1215

1316
- name: Connections
1417
icon: icon-connections.svg
1518
description: "Collect data once, and integrate tools for analytics, growth, marketing and more."
19+
path: /connections
1620

1721
- name: Protocols
1822
icon: icon-protocols.svg
1923
description: "Prevent data quality issues before they start with a tracking schema and data quality enforcement."
24+
path: /protocols
2025

2126
- name: Personas
2227
icon: icon-personas.svg
2328
description: "Improve your interactions by building audiences to personalize experiences."
29+
path: /personas
2430

2531
- name: Privacy
2632
icon: icon-privacy.svg
2733
description: "Respect your customers’ privacy with tools for data discovery and policy enforcement."
34+
path: /privacy
2835

2936
- name: Partners
3037
icon: icon-partners.svg
3138
description: "Join the Segment Platform and enable thousands of companies to activate their first party data."
39+
path: /partners

src/_includes/components/media-icon.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<div class="media-icon media-icon--{{ include.variant }}">
2-
<a class="media-icon__inner" href="{{ include.href }}">
2+
<a class="media-icon__inner" href="{{ site.baseurl }}{{ include.href }}">
33
<span class="media-icon__icon">
44
{% include icons/media/{{ include.icon }} %}
55
</span>

src/_includes/landing.html

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,7 @@
11
<div class="flex flex--wrap waffle waffle--large">
22
{% for category in site.data.landing %}
3-
{% assign url = category.name | downcase %}
4-
5-
{% if url contains "app" %}
6-
{% assign url = url | replace: "app", "segment-app" %}
7-
{% assign category_href = url | relative_path %}
8-
{% endif %}
9-
103
<div class="flex__column flex__column--6">
11-
{% include components/media-icon.html variant="small" href=category_href icon=category.icon title=category.name content=category.description %}
4+
{% include components/media-icon.html variant="small" href=category.path icon=category.icon title=category.name content=category.description %}
125
</div>
136
{% endfor %}
147
</div>

0 commit comments

Comments
 (0)