Add icon count to website & README (#2639)

This commit is contained in:
Eric Cornelissen 2020-02-20 18:13:19 +02:00 committed by GitHub
parent 89bf07de50
commit 6d8e403ca5
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 6 additions and 5 deletions

View File

@ -4,7 +4,7 @@
</a> </a>
<h3 align="center">Simple Icons</h3> <h3 align="center">Simple Icons</h3>
<p align="center"> <p align="center">
Free SVG icons for popular brands. See them all on one page at <a href="https://simpleicons.org">SimpleIcons.org</a>. Contributions, corrections & requests can be made on GitHub. Started by <a href="https://twitter.com/bathtype">Dan Leech</a>.</p> Over 1000 Free SVG icons for popular brands. See them all on one page at <a href="https://simpleicons.org">SimpleIcons.org</a>. Contributions, corrections & requests can be made on GitHub. Started by <a href="https://twitter.com/bathtype">Dan Leech</a>.</p>
</p> </p>
## Usage ## Usage

View File

@ -1,6 +1,7 @@
--- ---
--- ---
{% assign iconCount = site.data.simple-icons.icons.size %}
{% assign iconsUnsortedString = "" %} {% assign iconsUnsortedString = "" %}
{% assign greyscaleIconsUnsortedString = "" %} {% assign greyscaleIconsUnsortedString = "" %}
{% for icon in site.data.simple-icons.icons %} {% for icon in site.data.simple-icons.icons %}
@ -162,16 +163,16 @@
<link rel="preconnect" href="//cdn.carbonads.com"> <link rel="preconnect" href="//cdn.carbonads.com">
<link rel="preconnect" href="//github.com"> <link rel="preconnect" href="//github.com">
<title>Simple Icons</title> <title>Simple Icons</title>
<meta name="description" content="Free SVG icons for popular brands."> <meta name="description" content="{{ iconCount }} Free SVG icons for popular brands.">
<meta property="og:type" content="website"> <meta property="og:type" content="website">
<meta property="og:title" content="Simple Icons"> <meta property="og:title" content="Simple Icons">
<meta property="og:description" content="Free SVG icons for popular brands."> <meta property="og:description" content="{{ iconCount }} Free SVG icons for popular brands.">
<meta property="og:url" content="https://simpleicons.org"> <meta property="og:url" content="https://simpleicons.org">
<meta property="og:site_name" content="Simple Icons"> <meta property="og:site_name" content="Simple Icons">
<meta property="og:image" content="https://simpleicons.org/images/og.png"> <meta property="og:image" content="https://simpleicons.org/images/og.png">
<meta name="twitter:card" content="summary_large_image"> <meta name="twitter:card" content="summary_large_image">
<meta name="twitter:title" content="Simple Icons"> <meta name="twitter:title" content="Simple Icons">
<meta name="twitter:description" content="Free SVG icons for popular brands."> <meta name="twitter:description" content="{{ iconCount }} Free SVG icons for popular brands.">
<meta name="twitter:site" content="@bathtype"> <meta name="twitter:site" content="@bathtype">
<meta name="twitter:domain" content="Simple Icons"> <meta name="twitter:domain" content="Simple Icons">
<meta name="twitter:image:src" content="https://simpleicons.org/images/og.png"> <meta name="twitter:image:src" content="https://simpleicons.org/images/og.png">
@ -208,7 +209,7 @@
</ul> </ul>
</header> </header>
<main role="main"> <main role="main">
<p class="hero">Free <abbr title="Scalable Vector Graphic">SVG</abbr> icons for popular&nbsp;brands</p> <p class="hero">{{ iconCount }} Free <abbr title="Scalable Vector Graphic">SVG</abbr> icons for popular&nbsp;brands</p>
<div class="search"> <div class="search">
<div class="search__wrapper"> <div class="search__wrapper">
<div class="search__close"><span>&times;</span></div> <div class="search__close"><span>&times;</span></div>