From d72f51ece7c2c5891f5b67f2f16c84f4ec423179 Mon Sep 17 00:00:00 2001 From: Jeremy Thomas Date: Tue, 10 Apr 2018 22:50:18 +0100 Subject: [PATCH] Add link element --- docs/_includes/components/links.html | 28 +++++++++++----------------- docs/_includes/elements/link.html | 17 +++++++++++++++++ docs/blog.html | 24 +++++++++++------------- docs/more.html | 24 +++++++++++------------- 4 files changed, 50 insertions(+), 43 deletions(-) create mode 100644 docs/_includes/elements/link.html diff --git a/docs/_includes/components/links.html b/docs/_includes/components/links.html index 5e2faa96..5af55404 100644 --- a/docs/_includes/components/links.html +++ b/docs/_includes/components/links.html @@ -13,22 +13,16 @@ {% assign thingy = link_id[0] %} {% assign link = site.data.links.by_id[thingy] %} {% endif %} - - - - + {% assign link_url = site.url | append: link.path %} + {% + include elements/link.html + url=link_url + color=link.color + icon_brand=link.icon_brand + icon_regular=link.icon_regular + icon=link.icon + name=link.name + subtitle=link.subtitle + %} {% endfor %} diff --git a/docs/_includes/elements/link.html b/docs/_includes/elements/link.html new file mode 100644 index 00000000..e491b7ed --- /dev/null +++ b/docs/_includes/elements/link.html @@ -0,0 +1,17 @@ + + + + diff --git a/docs/blog.html b/docs/blog.html index 51243d1e..f129d491 100644 --- a/docs/blog.html +++ b/docs/blog.html @@ -38,19 +38,17 @@ breadcrumb:
diff --git a/docs/more.html b/docs/more.html index d42cd1f1..097a9d00 100644 --- a/docs/more.html +++ b/docs/more.html @@ -33,19 +33,17 @@ breadcrumb: