From 67331185c21713e5f72e9bb2a870e899a8b798f9 Mon Sep 17 00:00:00 2001
From: olivia
Date: Tue, 26 Jun 2018 22:48:26 +0200
Subject: [PATCH] add sponsor display in website footer
---
docs/_data/sponsors.yml | 3 +++
docs/_includes/footer.html | 10 ++++++++++
docs/_sass/_style.scss | 3 +--
3 files changed, 14 insertions(+), 2 deletions(-)
create mode 100644 docs/_data/sponsors.yml
diff --git a/docs/_data/sponsors.yml b/docs/_data/sponsors.yml
new file mode 100644
index 00000000..b03eefec
--- /dev/null
+++ b/docs/_data/sponsors.yml
@@ -0,0 +1,3 @@
+- name: Forestry.io
+ image: http://via.placeholder.com/200x100
+ url: https://forestry.io
\ No newline at end of file
diff --git a/docs/_includes/footer.html b/docs/_includes/footer.html
index cc9568d4..ade88894 100644
--- a/docs/_includes/footer.html
+++ b/docs/_includes/footer.html
@@ -11,5 +11,15 @@
+
+
+ Sponsored by
+ {% for sponsor in site.data.sponsors %}
+
+
+
+ {% endfor %}
+
+
diff --git a/docs/_sass/_style.scss b/docs/_sass/_style.scss
index 69cc55ea..b23bee5d 100644
--- a/docs/_sass/_style.scss
+++ b/docs/_sass/_style.scss
@@ -224,8 +224,7 @@ footer {
img {
display: inline-block;
- position: relative;
- top: 8px;
+ vertical-align: middle;
margin-left: 5px;
opacity: .8;
padding: 1px;