From f642639f0c3ee4fefc5e0d456202545692aade13 Mon Sep 17 00:00:00 2001 From: Thomas Cullen Date: Sun, 5 Nov 2017 16:55:16 +0000 Subject: [PATCH] Add search to home page (#197) --- _data/tags.yml | 3 +++ _includes/icon.html | 4 +++- _includes/icons.html | 7 ++++++- index.html | 7 +++++++ style.css | 1 + 5 files changed, 20 insertions(+), 2 deletions(-) create mode 100644 _data/tags.yml diff --git a/_data/tags.yml b/_data/tags.yml new file mode 100644 index 0000000..96f0345 --- /dev/null +++ b/_data/tags.yml @@ -0,0 +1,3 @@ +bell: notification +bell-off: notification-off +check: tick diff --git a/_includes/icon.html b/_includes/icon.html index 3cff361..16a44d8 100644 --- a/_includes/icon.html +++ b/_includes/icon.html @@ -1,3 +1,4 @@ +{% assign tags = site.data.tags[include.icon.basename] | split: ", " | join " " %}
  • {% include_relative {{ include.icon.path }} %} - {{ include.icon.basename }} + {{ include.icon.basename }} + {{tags}}
  • diff --git a/_includes/icons.html b/_includes/icons.html index 8e2ad88..79857c3 100644 --- a/_includes/icons.html +++ b/_includes/icons.html @@ -1,4 +1,9 @@ -
    +
    +
      {% for file in site.static_files %} {% if file.path contains 'dist/icons/' %} diff --git a/index.html b/index.html index 94a555f..a61dd8b 100644 --- a/index.html +++ b/index.html @@ -45,5 +45,12 @@ links: {% include icons.html %} {% include footer.html links=page.links %} + + + diff --git a/style.css b/style.css index e73af6c..c44e43f 100644 --- a/style.css +++ b/style.css @@ -102,6 +102,7 @@ } .carbon-img { + flex: 0 0 auto; display: flex; align-items: center; margin-right: 1rem;