Merge pull request #985 from simple-icons/develop

Publish KaiOS, website search fix
This commit is contained in:
Johan Fagerberg 2018-09-23 22:30:58 +02:00 committed by GitHub
commit 151675644c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 10 additions and 9 deletions

View File

@ -985,6 +985,11 @@
"hex": "20BEFF", "hex": "20BEFF",
"source": "https://www.kaggle.com/contact" "source": "https://www.kaggle.com/contact"
}, },
{
"title": "KaiOS",
"hex": "6F02B5",
"source": "https://www.dropbox.com/sh/2qihtgrzllws8ki/AABmo9X1KMT6lHnvh4Em7dpWa?dl=0"
},
{ {
"title": "Keybase", "title": "Keybase",
"hex": "33A0FF", "hex": "33A0FF",

1
icons/kaios.svg Normal file
View File

@ -0,0 +1 @@
<svg aria-labelledby="simpleicons-kaios-icon" role="img" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><title id="simpleicons-kaios-icon">KaiOS icon</title><path d="M4.47 0a2.81 2.81 0 0 0-2.84 2.78v18.43A2.8 2.8 0 0 0 4.47 24a2.8 2.8 0 0 0 2.85-2.78V2.78A2.83 2.83 0 0 0 4.47 0zm9.4 8.54a2.8 2.8 0 0 0-3.89-.66 2.68 2.68 0 0 0-.68 3.8l8 11.15a2.81 2.81 0 0 0 3.88.66 2.68 2.68 0 0 0 .74-3.72l-.06-.09-7.98-11.14zm3.65-1.18a3.71 3.71 0 0 0 3.74-3.67A3.71 3.71 0 0 0 17.52.02a3.71 3.71 0 0 0-3.75 3.67 3.71 3.71 0 0 0 3.75 3.67z"/></svg>

After

Width:  |  Height:  |  Size: 545 B

View File

@ -146,11 +146,11 @@
{% assign allIconNames = "" %} {% assign allIconNames = "" %}
{% for icon in iconsArray %} {% for icon in iconsArray %}
{% assign iconArray = icon | split: "," %} {% assign iconArray = icon | split: "," %}
{% capture allIconNames %}{{ allIconNames }}"{{ iconArray[3] }}",{% endcapture %} {% capture allIconNames %}{{ allIconNames }}"{{ iconArray[5] }}",{% endcapture %}
{% endfor %} {% endfor %}
{% for icon in greyscaleIconsArray %} {% for icon in greyscaleIconsArray %}
{% assign iconArray = icon | split: "," %} {% assign iconArray = icon | split: "," %}
{% capture allIconNames %}{{ allIconNames }}"{{ iconArray[1] }}"{% unless forloop.last %},{% endunless %}{% endcapture %} {% capture allIconNames %}{{ allIconNames }}"{{ iconArray[5] }}"{% unless forloop.last %},{% endunless %}{% endcapture %}
{% endfor %} {% endfor %}
<!doctype html> <!doctype html>
@ -191,12 +191,7 @@
</script> </script>
<script> <script>
function normalizeSearchTerm(value) { function normalizeSearchTerm(value) {
return value.toLowerCase() return value.toLowerCase();
.replace(/\+/g, "plus")
.replace(/^\./, "dot-")
.replace(/\.$/, "-dot")
.replace(/\./g, "-dot-")
.replace(/[ !]/g, '');
} }
var icons = [{{ allIconNames }}].map(normalizeSearchTerm); var icons = [{{ allIconNames }}].map(normalizeSearchTerm);
</script> </script>

View File

@ -1,6 +1,6 @@
{ {
"name": "simple-icons", "name": "simple-icons",
"version": "1.9.0", "version": "1.9.1",
"description": "SVG icons for popular brands https://simpleicons.org", "description": "SVG icons for popular brands https://simpleicons.org",
"homepage": "https://www.simpleicons.org", "homepage": "https://www.simpleicons.org",
"keywords": [ "keywords": [