do not force the permalink to be a dir if it ends on .html
do not force the permalink to be a dir if it ends on .html

Fixes #798.

christophermanning/jekyll,jaroot32/jekyll,abhilashhb/jekyll,tobscure/jekyll,rongl/jekyll,ls2uper/jekyll,kinlane/jekyll,getandpost/jekyll.github.io,ls2uper/jekyll,dangaute/eng,hartmel/jekyll,chrisfinazzo/jekyll,howkj1/jekyll,daniel-beck/jekyll,ReachingOut/jekyll,xcatliu/jekyllcn,tamouse/jekyll,matuzo/jekyll,jaybe-jekyll/jekyll,rongl/jekyll,shliujing/jekyll,htmelvis/jekyll,gaosboy/jekyll,eninya/jekyll,indraj/jekyll,rajrathore/jekyll,oresmus/jekyll,anthonyrosengren/grasshoppergathering2.github-io,FlyingWHR/jekyll,jmptrader/jekyll,codeclimate-testing/jekyll,monxim/monxim.github.io,trungvothanh/jekyll,PepSalehi/jekyll,gynter/jekyll,tomasdiez/jekyll,LuoPX-15510486969/jekyll,johnnycastilho/jekyll,garvitr/jekyll,mrb/jekyll,winndows/jekyll,ewinkler/jekyll,thetaxman/jekyll,omeripek/jekyll,gencer/jekyll,18F/jekyll,jaroot32/jekyll,vcgato29/jekyll,liukaijv/jekyll,ajhit406/jekyll,angeliaz/jekyll,pheuko/jekyll,jmepg/jekyll,jmknoll/jekyll,Wirachmat/jekyll,AnanthaRajuC/jekyll,AnanthaRajuC/jekyll,ryanshaw/jekyll,pheuko/jekyll,tillgrallert/jekyll,derekgottlieb/jekyll,ewinkler/jekyll,floydpraveen/jekyll,ducktyper/jekyll,chiyodad/jekyll,derekgottlieb/jekyll,alihalabyah/jekyll,floydpraveen/jekyll,gaosboy/jekyll,dezon/jekyll,jmhardison/jekyll,thejameskyle/jekyll,tareq-s/jekyll,Wirachmat/jekyll,digideskio/jekyll,princeofdarkness76/jekyll,chrisfinazzo/jekyll,honger05/jekyllcn,hiteshsuthar/jekyll,noikiy/jekyll,chrisfinazzo/jekyll,ducktyper/jekyll,ryanshaw/jekyll,AtekiRyu/jekyll,saitodisse/jekyll,kimeng/jekyll,CorainChicago/jekyll,xtymichael/jekyll,trungvothanh/jekyll,pheuko/jekyll,noikiy/jekyll,fulldecent/jekyll,Strangehill/jekyll,ajhit406/jekyll,wentixiaogege/jekyll,saitodisse/jekyll,honger05/jekyllcn,egobrightan/jekyll,backendeveloper/jekyll,tillgrallert/jekyll,EddieDow/jekyll,johnnycastilho/jekyll,rebornix/jekyll,Kinghack/kinghack.github.com,PepSalehi/jekyll,rebornix/jekyll,mixxmac/jekyll,akoeplinger/jekyll,vcgato29/jekyll,larryfox/jekyll,jeffkole/jekyll,oresmus/jekyll,gkunwar/gkunwar.github.io,rlugojr/jekyll,rovrevik/jekyll,jmhardison/jekyll,gkunwar/gkunwar.github.io,stomar/jekyll,noikiy/jekyll,xiaoshaozi52/jekyll,anthonyrosengren/grasshoppergathering2.github-io,ls2uper/jekyll,rovrevik/jekyll,supriyantomaftuh/jekyll,desidude03/jekyll,isathish/jekyll,vidbina/jekyll,tamouse/jekyll,goragod/jekyll,CorainChicago/jekyll,CheekyFE/jekyll,nasht00/jekyll,tomasdiez/jekyll,imaustink/jekyll,htmelvis/jekyll,derekgottlieb/jekyll,xtymichael/jekyll,stevecrozz/jekyll,ajhit406/jekyll,fengsmith/jekyll,supriyantomaftuh/jekyll,Tyrion22/jekyll,tamouse/jekyll,indraj/jekyll,brint/jekyll,alihalabyah/jekyll,harrissoerja/jekyll,wadaries/jekyll,CheekyFE/jekyll,tomjohnson1492/jekyll,egobrightan/jekyll,chrisfinazzo/jekyll,abhilashhb/jekyll,xcatliu/jekyllcn,cyberid41/jekyll,nemotan/jekyll,xiebinhqy/jklly_china,alex-kovac/jekyll,monxim/monxim.github.io,pmarsceill/jekyll,naughtyboy83/jekyll,dezon/jekyll,princeofdarkness76/jekyll,bsmr-ruby/jekyll,SQS2/Test,0x00evil/jekyll,aarvay/jekyll,doubleday/jekyll,AtekiRyu/jekyll,FlyingWHR/jekyll,m2candre/jekyll,yihangho/jekyll,bsmr-ruby/jekyll,ramoslin02/jekyll,wentixiaogege/jekyll,xantage/jekyll,sideci-sample/sideci-sample-jekyll,jekyll/jekyll,alex-kovac/jekyll,Wirachmat/jekyll,tomjohnson1492/jekyll,mixxmac/jekyll,brint/jekyll,alfredxing/jekyll,fulldecent/jekyll,vidbina/jekyll,liukaijv/jekyll,CorainChicago/jekyll,mnuessler/jekyll,zsyed91/jekyll,cyberid41/jekyll,hubsaysnuaa/jekyll,MjAbuz/jekyll,krahman/jekyll,goodtouch/jekyll,greent2008/jekyll,teju111/jekyll,floydpraveen/jekyll,gencer/jekyll,zsyed91/jekyll,backendeveloper/jekyll,ajhit406/jekyll,kuangyeheng/jekyll,xiaoshaozi52/jekyll,tillgrallert/jekyll,ZainRizvi/jekyll,penchan1218/jekyllcn,krahman/jekyll,jekyll/jekyll,doubleday/jekyll,Strangehill/jekyll,tylermachen/jekyll,dezon/jekyll,mrb/jekyll,sideci-sample/sideci-sample-jekyll,AaronSikes/jekyll,akoeplinger/jekyll,shuber2/jekyll,1gitGrey/jekyll,floydpraveen/jekyll,Kinghack/kinghack.github.com,jaroot32/jekyll,Teino1978-Corp/Teino1978-Corp-jekyll,ReachingOut/jekyll,egobrightan/jekyll,m2candre/jekyll,lcustodio/lcustodio.github.io_base,rlugojr/jekyll,lcustodio/lcustodio.github.io_base,martynbm/jekyll,shuber2/jekyll,desidude03/jekyll,chiyodad/jekyll,mnuessler/jekyll,gynter/jekyll,hubsaysnuaa/jekyll,royalwang/jekyll,hiteshsuthar/jekyll,rajrathore/jekyll,nickg33/jekyll,shuber2/jekyll,ZDroid/jekyll,ZainRizvi/jekyll,jmptrader/jekyll,marrujoalex/jekyll,ZDroid/jekyll,alfredxing/jekyll,tomasdiez/jekyll,nateberkopec/jekyll,Strangehill/jekyll,stomar/jekyll,xiongjungit/jekyll,lcustodio/lcustodio.github.io_base,penchan1218/jekyllcn,foocoder/jekyll,imaustink/jekyll,mrb/jekyll,adilapapaya/jekyll,yihangho/jekyll,MauroMrod/jekyll,dansef/jekyll,drobati/jekyll,dangaute/eng,ramoslin02/jekyll,jmptrader/jekyll,pmarsceill/jekyll,nathanhorrigan1/webdeveloper,larryfox/jekyll,cyberid41/jekyll,hiteshsuthar/jekyll,richsoni/jekyll,LeuisKen/jekyllcn,krishnakalyan3/jekyll,tareq-s/jekyll,larryfox/jekyll,superve/jekyll,royalwang/jekyll,stevecrozz/jekyll,MauroMrod/jekyll,gencer/jekyll,Tyrion22/jekyll,xantage/jekyll,m2candre/jekyll,tomjohnson1492/jekyll,18F/jekyll,tillgrallert/jekyll,xiebinhqy/jklly_china,aarvay/jekyll,gencer/jekyll,jaybe-jekyll/jekyll,marrujoalex/jekyll,kuangyeheng/jekyll,garvitr/jekyll,MjAbuz/jekyll,Teino1978-Corp/jekyll,rajrathore/jekyll,yhironaka/yhironaka.github.io,xantage/jekyll,richsoni/jekyll,alex-kovac/jekyll,tareq-s/jekyll,goodtouch/jekyll,xiebinhqy/jklly_china,drobati/jekyll,chinayin/jekyll,rlugojr/jekyll,tylermachen/jekyll,codeclimate-testing/jekyll,x-way/jekyll,rasa2011/rasa2011.github.io,thetaxman/jekyll,hartmel/jekyll,jmhardison/jekyll,18F/jekyll,CPVPLachlan/CPVP-Blog,drobati/jekyll,iRoxx/jekyll,nasht00/jekyll,Tiger66639/jekyll,jeffkole/jekyll,adilapapaya/jekyll,zsyed91/jekyll,vcgato29/jekyll,Kinghack/kinghack.github.com,isathish/jekyll,winndows/jekyll,matuzo/jekyll,likong/jekyll,ZainRizvi/jekyll,SQS2/Test,honger05/jekyllcn,brint/jekyll,trungvothanh/jekyll,royalwang/jekyll,FlyingWHR/jekyll,zhangkuaiji/jekyllcn,fabulousu/jekyll,wadaries/jekyll,pmarsceill/jekyll,angeliaz/jekyll,wadaries/jekyll,kinlane/jekyll,likong/jekyll,hartmel/jekyll,angeliaz/jekyll,0x00evil/jekyll,winndows/jekyll,naughtyboy83/jekyll,zsyed91/jekyll,stevecrozz/jekyll,jekyll/jekyll,darwin/jekyll,lazycai/lazycai.github.com,codeclimate-testing/jekyll,jaybe-jekyll/jekyll,Strangehill/jekyll,shliujing/jekyll,sasongkojati/jekyll,xcatliu/jekyllcn,Teino1978-Corp/Teino1978-Corp-jekyll,zhangkuaiji/jekyllcn,doubleday/jekyll,MauroMrod/jekyll,jeffkole/jekyll,jmepg/jekyll,howkj1/jekyll,AaronSikes/jekyll,xiongjungit/jekyll,sanxore/sanxore.github.com,noikiy/jekyll,digideskio/jekyll,lazycai/lazycai.github.com,jmknoll/jekyll,gkunwar/gkunwar.github.io,schaazzz/jekyll,stomar/jekyll,PepSalehi/jekyll,nathanhorrigan1/webdeveloper,LuoPX-15510486969/jekyll,nemotan/jekyll,ryanshaw/jekyll,leichunxin/jekyll,xiongjungit/jekyll,nateberkopec/jekyll,aarvay/jekyll,fengsmith/jekyllcn,ZDroid/jekyll,saitodisse/jekyll,wentixiaogege/jekyll,gynter/jekyll,rebornix/jekyll,tomjohnson1492/jekyll,indraj/jekyll,liukaijv/jekyll,schaazzz/jekyll,thetaxman/jekyll,martynbm/jekyll,julienbourdeau/jekyll,getandpost/jekyll.github.io,tylermachen/jekyll,nasht00/jekyll,princeofdarkness76/jekyll,1gitGrey/jekyll,htmelvis/jekyll,AtekiRyu/jekyll,EddieDow/jekyll,tobscure/jekyll,martynbm/jekyll,derekgottlieb/jekyll,CPVPLachlan/CPVP-Blog,johnnycastilho/jekyll,fengsmith/jekyllcn,sferik/jekyll,x-way/jekyll,oresmus/jekyll,mrb/jekyll,QuinntyneBrown/jekyll,pmarsceill/jekyll,christophermanning/jekyll,jekyll/jekyll,nasht00/jekyll,jeffkole/jekyll,mnuessler/jekyll,krahman/jekyll,rasa2011/rasa2011.github.io,eloyesp/jekyll,ryanshaw/jekyll,ducktyper/jekyll,ewinkler/jekyll,isathish/jekyll,SQS2/Test,fengsmith/jekyll,darwin/jekyll,AaronSikes/jekyll,tugberkugurlu/jekyll,digideskio/jekyll,goragod/jekyll,UniFreak/jekyllcn,supriyantomaftuh/jekyll,QuinntyneBrown/jekyll,sanxore/sanxore.github.com,jmknoll/jekyll,nathanhorrigan1/webdeveloper,matuzo/jekyll,MjAbuz/jekyll,xiaoshaozi52/jekyll,rasa2011/rasa2011.github.io,fabulousu/jekyll,tomjohnson1492/jekyll,fengsmith/jekyll,ReachingOut/jekyll,dansef/jekyll,Strangehill/jekyll,thejameskyle/jekyll,bsmr-ruby/jekyll,brint/jekyll,iRoxx/jekyll,harrissoerja/jekyll,eloyesp/jekyll,tillgrallert/jekyll,x-way/jekyll,nemotan/jekyll,hubsaysnuaa/jekyll,eninya/jekyll,marrujoalex/jekyll,garvitr/jekyll,xcatliu/jekyllcn,teju111/jekyll,kuangyeheng/jekyll,princeofdarkness76/jekyll,dangaute/eng,tugberkugurlu/jekyll,0x00evil/jekyll,alex-kovac/jekyll,krishnakalyan3/jekyll,abhilashhb/jekyll,LeuisKen/jekyllcn,EddieDow/jekyll,sferik/jekyll,LeuisKen/jekyllcn,rongl/jekyll,CPVPLachlan/CPVP-Blog,chinayin/jekyll,penchan1218/jekyllcn,darwin/jekyll,ramoslin02/jekyll,Tiger66639/jekyll,sasongkojati/jekyll,nickg33/jekyll,richsoni/jekyll,alihalabyah/jekyll,UniFreak/jekyllcn,schaazzz/jekyll,fengsmith/jekyllcn,getandpost/jekyll.github.io,alfredxing/jekyll,daniel-beck/jekyll,jmepg/jekyll,eloyesp/jekyll,sanxore/sanxore.github.com,stomar/jekyll,darwin/jekyll,leichunxin/jekyll,omeripek/jekyll,foocoder/jekyll,alfredxing/jekyll,rlugojr/jekyll,fabulousu/jekyll,fulldecent/jekyll,Teino1978-Corp/jekyll,desidude03/jekyll,lazycai/lazycai.github.com,goragod/jekyll,xtymichael/jekyll,harrissoerja/jekyll,Teino1978-Corp/Teino1978-Corp-jekyll,julienbourdeau/jekyll,bsmr-ruby/jekyll,vidbina/jekyll,shliujing/jekyll,anthonyrosengren/grasshoppergathering2.github-io,AnanthaRajuC/jekyll,superve/jekyll,thejameskyle/jekyll,foocoder/jekyll,kimeng/jekyll,lazycai/lazycai.github.com,gaosboy/jekyll,alex-kovac/jekyll,howkj1/jekyll,QuinntyneBrown/jekyll,UniFreak/jekyllcn,gencer/jekyll,backendeveloper/jekyll,christophermanning/jekyll,likong/jekyll,adilapapaya/jekyll,omeripek/jekyll,chinayin/jekyll,Teino1978-Corp/jekyll,leichunxin/jekyll,yihangho/jekyll,rovrevik/jekyll,sasongkojati/jekyll,fulldecent/jekyll,dansef/jekyll,mixxmac/jekyll,Tiger66639/jekyll,nateberkopec/jekyll,chiyodad/jekyll,kimeng/jekyll,teju111/jekyll,daniel-beck/jekyll,superve/jekyll,LuoPX-15510486969/jekyll,zhangkuaiji/jekyllcn,tugberkugurlu/jekyll,tobscure/jekyll,greent2008/jekyll,Tyrion22/jekyll,naughtyboy83/jekyll,nickg33/jekyll,iRoxx/jekyll,imaustink/jekyll,greent2008/jekyll,x-way/jekyll,CheekyFE/jekyll,eninya/jekyll,krishnakalyan3/jekyll,julienbourdeau/jekyll,xiebinhqy/jklly_china,jaybe-jekyll/jekyll