From 33ad87684cb44bd5f64c331e0f0613345c62df12 Mon Sep 17 00:00:00 2001 From: Arctic Ice Studio Date: Thu, 27 Dec 2018 20:23:42 +0100 Subject: [PATCH] Implement mapping of categories for the sitemap It includes all links and category headings that'll be rendered as sitemap in the footer. GH-106 --- .../core/Footer/sitemapCategories.js | 47 +++++++++++++++++++ 1 file changed, 47 insertions(+) create mode 100644 src/data/components/organisms/core/Footer/sitemapCategories.js diff --git a/src/data/components/organisms/core/Footer/sitemapCategories.js b/src/data/components/organisms/core/Footer/sitemapCategories.js new file mode 100644 index 00000000..d9a7a445 --- /dev/null +++ b/src/data/components/organisms/core/Footer/sitemapCategories.js @@ -0,0 +1,47 @@ +/* + * Copyright (C) 2018-present Arctic Ice Studio + * Copyright (C) 2018-present Sven Greb + * + * Project: Nord Docs + * Repository: https://github.com/arcticicestudio/nord-docs + * License: MIT + */ + +import { ROUTE_BLOG, ROUTE_COMMUNITY, ROUTE_DOCS, ROUTE_PORTS, ROUTE_ROOT } from "config/routes/mappings"; + +/** + * The mapping of categories for the sitemap. + * + * @author Arctic Ice Studio + * @author Sven Greb + * @since 0.5.0 + */ +const sitemapCategories = [ + { + name: "Nord", + url: ROUTE_ROOT, + links: [] + }, + { + name: "Ports", + url: ROUTE_PORTS, + links: [] + }, + { + name: "Docs", + url: ROUTE_DOCS, + links: [] + }, + { + name: "Blog", + url: ROUTE_BLOG, + links: [] + }, + { + name: "Community", + url: ROUTE_COMMUNITY, + links: [] + } +]; + +export default sitemapCategories;