I am using Wintersmith and need to access the location.hash
as a variable.
This is what I tried, but it is producing a Cannot read property 'location' of undefined
error:
- var hash = window.location.hash
- var articles = env.helpers.getArticles(contents, hash)
img(data-item = i, src="img/events/"+hash+'/' +a)