logo

Grimgrains

[mirror] Plant-based cooking website <https://grimgrains.com/>
commit: 48230597b7c66cc879cf67373490f03fbcafa038
parent ebbf3a7a250fd1562d80b314f2c883d8ebc3b51e
Author: Quentin Leonetti <q.leonetti@gmail.com>
Date:   Tue,  8 Jan 2019 18:51:06 +0000

add href attribute to recipe links

Diffstat:

Mscripts/templates/home.js2+-
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>' }