commit: f3fb3fb32b259b5db33a8eaa79ea36ae2c813cf1
parent ebbf3a7a250fd1562d80b314f2c883d8ebc3b51e
Author: Лu Лinveгa <aliceffekt@gmail.com>
Date: Wed, 9 Jan 2019 07:08:24 +1200
Merge pull request #1 from qleonetti/fix/homepage-links
Add href attribute to recipe links
Diffstat:
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/scripts/templates/home.js b/scripts/templates/home.js
@@ -97,7 +97,7 @@ function HomeTemplate (id, rect) {
html += "<ul style='margin-bottom:15px'>"
for (id in recipes) {
var recipe = recipes[id]
- html += `<li><a onclick="Ø('query').bang('${recipe.name.capitalize()}')">${recipe.name.capitalize()}</a></li>`
+ html += `<li><a href="#${recipe.name.to_url()}" onclick="Ø('query').bang('${recipe.name.capitalize()}')">${recipe.name.capitalize()}</a></li>`
}
html += '</ul>'
}