Harp compile HTML path error -
i can create , run basic harp app locally , can compile html/css/js , run homepage , index page on blog article page paths incorrect.
locally paths load per article slug, e.g. /articles/welcome-to-harp.md loads /articles/welcome-to-harp
when compiled there 2 issues:
separate folders each article not created, end /articles/welcome-to-harp.html. can live if have - there compile alternative create construction /articles/welcome-to-harp/index.html?
links both homepage , article indexes point /articles/welcome-to-harp when should pointing /articles/welcome-to-harp.html compiled file construction (there no file @ /articles/welcome-to-harp in compiled www folder)
im using kennethormandy/hb-remedy boilerplate , have made no changes. node , harp installs brand new of today.
compiled project can viewed here: http://blog.shapevoid.com/
any way resolve these 2 issues?
the problem here web server using in production isn’t giving helpers built harp.
as web server, harp gives features allowing access welcome-to-harp.html
@ /welcome-to-harp
—this what’s happening when you’re using harp server
. when run harp compile
, pages have in file scheme compiled same place.
if you’re planning on manually compiling other web servers still want pretty urls, can construction pages way:
/articles/welcome-to-harp/index.html
it’s possible might add together implicit functionality you’re describing, have an open pr it, right harp outputs same directory construction have setup when run harp compile
.
harp
No comments:
Post a Comment