From 0b53167e222fda39a4069b50fcb00652cd95d505 Mon Sep 17 00:00:00 2001 From: Douglas Nassif Roma Junior Date: Thu, 13 Sep 2018 14:25:59 -0300 Subject: [PATCH] no message --- README.md | 8 +++++--- docs/_layouts/default.html | 41 ++++++++++++++++++++------------------ 2 files changed, 27 insertions(+), 22 deletions(-) diff --git a/README.md b/README.md index e5bb05f..c2b7bd8 100644 --- a/README.md +++ b/README.md @@ -5,16 +5,18 @@

screenshot screenshot -

+

E-Mage (Electron + Image Compression + Magic)

-

From developers to developers: a cross-platform tool to help with image compression.

+

+From developers to developers: a cross-platform tool to help with image compression. +

screenshot -

+

Inspired by ImageOptim for Mac and created with the imagemin and their plugins. diff --git a/docs/_layouts/default.html b/docs/_layouts/default.html index 1acf4cb..bfbc7d4 100644 --- a/docs/_layouts/default.html +++ b/docs/_layouts/default.html @@ -77,17 +77,17 @@

{{ site.title | default: site.github.repository_name }} /> screenshot -

+

-

{{ site.description | default: site.github.project_tagline }}

+

{{ site.description | default: site.github.project_tagline }}

-
- Loading download links... -
+
+ Loading download links... +
- {% if site.github.is_project_page %} - View on GitHub - {% endif %} + {% if site.github.is_project_page %} + View on GitHub + {% endif %}
@@ -107,20 +107,23 @@

{{ site.description | default: site.github.project_t axios.get('https://api.github.com/repos/douglasjunior/emage/releases/latest') .then(function (response) { downloadsDiv.innerHTML = ''; - var assets = response.data.assets; - var buttons = assets - .forEach(function (asset) { - var btn = document.createElement('a'); - btn.className = 'btn'; - btn.href = asset.browser_download_url; - btn.type = asset.content_type; - btn.textContent = getAssetLabelByFileName(asset.name); - downloadsDiv.appendChild(btn); - }); + response.data.assets.forEach(function (asset) { + var btn = document.createElement('a'); + btn.className = 'btn'; + btn.href = asset.browser_download_url; + btn.type = asset.content_type; + btn.textContent = getAssetLabelByFileName(asset.name); + downloadsDiv.appendChild(btn); + }); }) .catch(function (ex) { console.warn(ex); - downloadsDiv.textContent = 'Could not load download list.'; + downloadsDiv.innerHTML = ''; + var btn = document.createElement('a'); + btn.className = 'btn'; + btn.href = '{{ site.github.download_url }}'; + btn.textContent = 'Download'; + downloadsDiv.appendChild(btn); })