Skip to content

Commit b704ca7

Browse files
authored
Use a default icon per category (#8369)
Currently the endoflife.date logo is used for products with no `iconSlug`. This use a default icon per category. The icons are from https://github.com/tabler/tabler-icons. They are MIT licensed. Closes #2551.
1 parent 8bcf2f9 commit b704ca7

13 files changed

+20
-38
lines changed

CONTRIBUTING.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -83,8 +83,8 @@ category: os
8383
# - set a runtime dependency such as java-runtime, javascript-runtime or php-runtime.
8484
tags: amazon linux-distribution
8585

86-
# Simple Icons (https://simpleicons.org/) icon slug (optional).
87-
# Remove this property if the icon is not available on Simple Icons.
86+
# Simple Icons icon slug (https://simpleicons.org/) for the product or its vendor (optional).
87+
# Remove this property if no relevant icon is available on Simple Icons.
8888
# As an example, https://simpleicons.org/?q=codemagic links to https://simpleicons.org/icons/codemagic.svg ,
8989
# so the slug is `codemagic` (the SVG filename without extension).
9090
# A list of all slugs is also available on https://github.com/simple-icons/simple-icons/blob/develop/slugs.md .

README.md

Lines changed: 6 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -37,19 +37,14 @@ Licensed under the [MIT License](LICENSE).
3737

3838
endoflife.date is relying on various amazing software and components :
3939

40-
- [GitHub](https://github.com/), an Internet hosting service for software development and version
41-
control,
40+
- [GitHub](https://github.com/), an Internet hosting service for software development and version control.
4241
- [Jekyll](https://jekyllrb.com/), a static site generator.
43-
- [Ruby](https://www.ruby-lang.org/), a dynamic and open source programming language with a focus on
44-
simplicity and productivity.
42+
- [Ruby](https://www.ruby-lang.org/), a dynamic and open source programming language with a focus on simplicity and productivity.
4543
- [Just the Docs](https://github.com/just-the-docs/just-the-docs), a documentation theme for Jekyll.
46-
- [Swagger UI](https://swagger.io/tools/swagger-ui/), a documentation generator for OpenAPI
47-
Specification.
44+
- [Swagger UI](https://swagger.io/tools/swagger-ui/), a documentation generator for OpenAPI Specification.
4845
- [Simple Icons](https://simpleicons.org/), free SVG icons for popular brands.
49-
- Our icon is derived from [Hourglass icon (orange)](https://commons.wikimedia.org/wiki/File:Hourglass_icon_%28orange%29.svg)
50-
by David Abián and Serhio Magpie on the English Wikipedia. Remixed under the CC-BY-SA-4.0 license.
46+
- [Tabler Icons](https://github.com/tabler/tabler-icons), a complete icon set with perfect line weights and spacing - ready for Figma, apps, and design systems.
47+
- Our icon is derived from [Hourglass icon (orange)](https://commons.wikimedia.org/wiki/File:Hourglass_icon_%28orange%29.svg) by David Abián and Serhio Magpie on the English Wikipedia, remixed under the CC-BY-SA-4.0 license.
5148
- [RealFaviconGenerator](https://realfavicongenerator.net/), a favicon Generator, for real.
5249
- [Netlify](https://www.netlify.com/), an all-in-one platform for automating modern web projects.
53-
- Product descriptions are adapted from the [English Wikipedia](https://en.wikipedia.org/),
54-
under [CC BY-SA 3.0](https://en.wikipedia.org/wiki/Wikipedia:Text_of_Creative_Commons_Attribution-ShareAlike_3.0_Unported_License)
55-
license.
50+
- Product descriptions are adapted from the [English Wikipedia](https://en.wikipedia.org/), under [CC BY-SA 3.0](https://en.wikipedia.org/wiki/Wikipedia:Text_of_Creative_Commons_Attribution-ShareAlike_3.0_Unported_License) license.

_includes/product-icon.html

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,9 @@
11
{%- assign product_icon_url = include.product.iconUrl %}
2+
{%- assign product_icon_category = include.product.category %}
23
{%- assign product_icon_description = include.product.title %}
34
{%- assign product_icon_size = include.size %}
45
{%- unless product_icon_url %}
5-
{%- assign product_icon_url = '/assets/default-product-logo.svg' | relative_url %}
6-
{%- assign product_icon_description = 'No product' %}
6+
{%- assign product_icon_url = '/assets/category-' | append: product_icon_category | append: '.svg' | relative_url %}
7+
{%- assign product_icon_description = 'Icon for ' | append: product_icon_category %}
78
{%- endunless %}
89
<img class="product-logo" width="{{ product_icon_size }}" src="{{ product_icon_url }}" alt="{{ product_icon_description }} logo">

assets/category-app.svg

Lines changed: 1 addition & 0 deletions
Loading

assets/category-database.svg

Lines changed: 1 addition & 0 deletions
Loading

assets/category-device.svg

Lines changed: 1 addition & 0 deletions
Loading

assets/category-framework.svg

Lines changed: 1 addition & 0 deletions
Loading

assets/category-lang.svg

Lines changed: 1 addition & 0 deletions
Loading

assets/category-os.svg

Lines changed: 1 addition & 0 deletions
Loading

assets/category-server-app.svg

Lines changed: 1 addition & 0 deletions
Loading

0 commit comments

Comments
 (0)