axitkhurana / buster

Brute force static site generator for Ghost
MIT License
802 stars 139 forks source link

meta tag - canonical link 'index.html' #21

Closed chakming closed 9 years ago

chakming commented 10 years ago

all page generate with canonical link 'index.html', and not the exact full link.

martgnz commented 10 years ago

Read this: https://github.com/axitkhurana/buster/pull/20

shime commented 10 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)
martgnz commented 10 years ago

@shime it throws this error for me: sed: 1: "static//akademy-es-2014 ...": bad flag in substitute command: 'm'

martgnz commented 10 years ago

Solved with this. Awesome!

shime commented 10 years ago

@mgonzalezgmz :beers:

sometimes OSX and GNU tools are incompatible, glad you sorted that one out! :)

martgnz commented 10 years ago

@shime yes, I definitely owe you some :beers: for this fix. The index.html string was super annoying for me :+1:

fluke commented 10 years ago

@shime Are there any possible issues arising from this command?

shime commented 10 years ago

@kartikluke maybe and it depends. This just removes all occurences of index.html.

axitkhurana commented 9 years ago

Just updated. Should be removed now. Upgrade using pip install --upgrade buster