Closed chakming closed 9 years ago
here's a dirty hack I'm using for now - run it from the root of your ghost blog
find static/ -type f -name *.html -exec sed -i 's/index\.html//g' {} +
or place this somewhere in generate task
os.system("find %s -type f -name *.html -exec sed -i 's/index\.html//g' {} +" % static_path)
@shime it throws this error for me: sed: 1: "static//akademy-es-2014 ...": bad flag in substitute command: 'm'
@mgonzalezgmz :beers:
sometimes OSX and GNU tools are incompatible, glad you sorted that one out! :)
@shime yes, I definitely owe you some :beers: for this fix. The index.html string was super annoying for me :+1:
@shime Are there any possible issues arising from this command?
@kartikluke maybe and it depends. This just removes all occurences of index.html.
Just updated. Should be removed now. Upgrade using pip install --upgrade buster
all page generate with canonical link 'index.html', and not the exact full link.