Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/kc0bfv/autophugo.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/assets
diff options
context:
space:
mode:
authorKarl <kc0bfv@gmail.com>2021-07-10 19:46:29 +0300
committerKarl <kc0bfv@gmail.com>2021-07-10 19:46:29 +0300
commit130b71159f109c9bb6722651601e13c6230ec51d (patch)
treefe69e6410ca8d699217c7a485e7e49ee035f7829 /assets
parent9188b277feb8e639f5d3cc3d155b0ca9322416bb (diff)
Small change to how the downloadable works
Now it always adds the tags to the html and checks what their values are. Also updated some phrasing and indentation.
Diffstat (limited to 'assets')
-rw-r--r--assets/js/main.js12
1 files changed, 6 insertions, 6 deletions
diff --git a/assets/js/main.js b/assets/js/main.js
index feea6aa..a1366c9 100644
--- a/assets/js/main.js
+++ b/assets/js/main.js
@@ -294,13 +294,13 @@
image: {
titleSrc: function(item) {
let caption = '';
- if(item.el.attr("downloadable") ){
+ if(item.el.attr("downloadable") == "true"){
caption += '<div title="Download" ' +
- 'class="download-button"><a href="' +
- item.el.attr("href") + '" download="' +
- item.el.attr("orig_name") +
- '"><i class="fa fa-download"></i></a></div>' +
- '<div class="caption-surround">';
+ 'class="download-button"><a href="' +
+ item.el.attr("href") + '" download="' +
+ item.el.attr("orig_name") +
+ '"><i class="fa fa-download"></i></a></div>' +
+ '<div class="caption-surround">';
}
if( item.el.attr("phototitle") ) {
caption += "<h2>" + item.el.attr("phototitle") + "</h2>";