From 0b53167e222fda39a4069b50fcb00652cd95d505 Mon Sep 17 00:00:00 2001
From: Douglas Nassif Roma Junior
-
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. +
-
+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 }} /> -
+ -{{ site.description | default: site.github.project_tagline }}
+{{ site.description | default: site.github.project_tagline }}
- + - {% 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); })