From 936aa24fb0f7173e0f76cf83a787ba30c9907717 Mon Sep 17 00:00:00 2001 From: Klaudia Date: Mon, 7 Oct 2019 11:34:45 +0200 Subject: [PATCH] Replace href links in landing section --- src/_data/landing.yml | 8 ++++++++ src/_includes/components/media-icon.html | 2 +- src/_includes/landing.html | 9 +-------- 3 files changed, 10 insertions(+), 9 deletions(-) diff --git a/src/_data/landing.yml b/src/_data/landing.yml index 2ea1268e71..d8f19cb07e 100644 --- a/src/_data/landing.yml +++ b/src/_data/landing.yml @@ -1,31 +1,39 @@ - name: Guides icon: icon-guides.svg description: "Start here! Best practices, Setup steps, and other useful information." + path: /guides - name: Academy icon: icon-academy.svg description: "Learn more about the 'whys' and 'hows' of analytics. A great read if you're just getting started." + path: /academy - name: App icon: icon-app.svg description: "Learn your way around the Segment web application - hook up data sources to tools and warehouses, set up filtering, and more." + path: /app - name: Connections icon: icon-connections.svg description: "Collect data once, and integrate tools for analytics, growth, marketing and more." + path: /connections - name: Protocols icon: icon-protocols.svg description: "Prevent data quality issues before they start with a tracking schema and data quality enforcement." + path: /protocols - name: Personas icon: icon-personas.svg description: "Improve your interactions by building audiences to personalize experiences." + path: /personas - name: Privacy icon: icon-privacy.svg description: "Respect your customers’ privacy with tools for data discovery and policy enforcement." + path: /privacy - name: Partners icon: icon-partners.svg description: "Join the Segment Platform and enable thousands of companies to activate their first party data." + path: /partners diff --git a/src/_includes/components/media-icon.html b/src/_includes/components/media-icon.html index 9568c3f4c0..c7c60c7254 100644 --- a/src/_includes/components/media-icon.html +++ b/src/_includes/components/media-icon.html @@ -1,5 +1,5 @@
- + {% include icons/media/{{ include.icon }} %} diff --git a/src/_includes/landing.html b/src/_includes/landing.html index 679c0bc610..65e6ee12ab 100644 --- a/src/_includes/landing.html +++ b/src/_includes/landing.html @@ -1,14 +1,7 @@
{% for category in site.data.landing %} - {% assign url = category.name | downcase %} - - {% if url contains "app" %} - {% assign url = url | replace: "app", "segment-app" %} - {% assign category_href = url | relative_path %} - {% endif %} -
- {% include components/media-icon.html variant="small" href=category_href icon=category.icon title=category.name content=category.description %} + {% include components/media-icon.html variant="small" href=category.path icon=category.icon title=category.name content=category.description %}
{% endfor %}