From 072b5ab7fd59ff6ad16495a557a07d7b31c992a6 Mon Sep 17 00:00:00 2001 From: Martijn Cuppens Date: Thu, 8 Nov 2018 19:33:02 +0200 Subject: Replace holder.js with SVGs. --- site/_includes/icons/placeholder.svg | 36 ++++++++++++++++++++++++++++++++++++ 1 file changed, 36 insertions(+) create mode 100644 site/_includes/icons/placeholder.svg (limited to 'site/_includes') diff --git a/site/_includes/icons/placeholder.svg b/site/_includes/icons/placeholder.svg new file mode 100644 index 000000000..a6f835d8e --- /dev/null +++ b/site/_includes/icons/placeholder.svg @@ -0,0 +1,36 @@ +{%- if include.width -%} + {% assign width = include.width %} +{%- else -%} + {% assign width = '100%' %} +{%- endif -%} + +{%- if include.height -%} + {% assign height = include.height %} +{%- else -%} + {% assign height = 180 %} +{%- endif -%} + +{%- if include.text -%} + {% assign text = include.text %} +{%- else -%} + {% assign text = width | append: 'x' | append: height %} +{%- endif -%} + +{%- if include.class -%} + {% assign class = include.class| prepend: ' ' %} +{%- endif -%} + +{%- if include.color -%} + {% assign color = include.color %} +{%- else -%} + {% assign color = '#ddd' %} +{%- endif -%} + +{%- if include.background -%} + {% assign background = include.background %} +{%- else -%} + {% assign background = '#777' %} +{%- endif -%} + +{% if include.title %}{{ include.title }}{% endif %}{{ text }} +{{- '' -}} -- cgit v1.2.3