Harp cannot render variables in _data.json if the folder has the same name with the ejs file
oakland opened this issue · 0 comments
oakland commented
- product
- computer
- pic1.png
- pic2.png - _data.json
- _layout.ejs
- computer.ejs
- computer
_data.json:
{ "computer": { "productName":"computer", "briefIntro":"balabala..." } }
When visiting product/computer.html, the productName
variable in _data.json cannot be rendered only if you change the computer
folder name into computerPics
or some other names.