Customise slug base name for different models
Customise slug base name for different models

fixes #2480

- when the santisation of a slug results in an empty string, we use a basename instead.
- this was 'post' and is now the table name for the model, minus the trailing 's'
- this isn't massively robust but works as a temporary fix

duyetdev/islab,carlosmtx/Ghost,kortemy/Ghost,jgillich/Ghost,GroupxDev/javaPress,Shauky/Ghost,memezilla/Ghost,veyo-care/Ghost,SkynetInc/steam,etdev/blog,camilodelvasto/herokughost,ManRueda/Ghost,cysys/ghost-openshift,mlabieniec/ghost-env,Netazoic/bad-gateway,julianromera/Ghost,pollbox/ghostblog,hyokosdeveloper/Ghost,sajmoon/Ghost,claudiordgz/Ghost,blankmaker/Ghost,r14r/fork_nodejs_ghost,lcamacho/Ghost,jorgegilmoreira/ghost,lf2941270/Ghost,v3rt1go/Ghost,novaugust/Ghost,devleague/uber-hackathon,schematical/Ghost,SachaG/bjjbot-blog,neynah/GhostSS,arvidsvensson/Ghost,r14r/fork_nodejs_ghost,singular78/Ghost,velimir0xff/Ghost,vloom/blog,exsodus3249/Ghost,aroneiermann/GhostJade,NovaDevelopGroup/Academy,kolorahl/Ghost,sebgie/Ghost,DesenTao/Ghost,scopevale/wethepeopleweb.org,zeropaper/Ghost,InnoD-WebTier/hardboiled_ghost,Feitianyuan/Ghost,pathayes/FoodBlog,edurangel/Ghost,BayPhillips/Ghost,sunh3/Ghost,load11/ghost,JohnONolan/Ghost,situkangsayur/Ghost,hnq90/Ghost,Klaudit/Ghost,greyhwndz/Ghost,aroneiermann/GhostJade,ashishapy/ghostpy,flomotlik/Ghost,k2byew/Ghost,Netazoic/bad-gateway,bitjson/Ghost,rizkyario/Ghost,disordinary/Ghost,zackslash/Ghost,cicorias/Ghost,dggr/Ghost-sr,singular78/Ghost,mdbw/ghost,JonSmith/Ghost,leonli/ghost,rchrd2/Ghost,cncodog/Ghost-zh-codog,denzelwamburu/denzel.xyz,shannonshsu/Ghost,anijap/PhotoGhost,letsjustfixit/Ghost,letsjustfixit/Ghost,mattchupp/blog,francisco-filho/Ghost,petersucks/blog,PaulBGD/Ghost-Plus,telco2011/Ghost,mnitchie/Ghost,trunk-studio/Ghost,tksander/Ghost,InnoD-WebTier/hardboiled_ghost,metadevfoundation/Ghost,bastianbin/Ghost,mtvillwock/Ghost,rafaelstz/Ghost,AnthonyCorrado/Ghost,BayPhillips/Ghost,ddeveloperr/Ghost,jaguerra/Ghost,leonli/ghost,rizkyario/Ghost,mtvillwock/Ghost,Brunation11/Ghost,johnnymitch/Ghost,theonlypat/Ghost,thehogfather/Ghost,johngeorgewright/blog.j-g-w.info,ashishapy/ghostpy,ErisDS/Ghost,lukw00/Ghost,pedroha/Ghost,benstoltz/Ghost,kortemy/Ghost,Japh/shortcoffee,YY030913/Ghost,Japh/shortcoffee,bitjson/Ghost,Empeeric/justanidea,ckousik/Ghost,ckousik/Ghost,Trendy/Ghost,bisoe/Ghost,wangjun/Ghost,jamesslock/Ghost,Netazoic/bad-gateway,chevex/undoctrinate,imjerrybao/Ghost,stridespace/Ghost,gcamana/Ghost,choskim/GhostAzure,Bunk/Ghost,sfpgmr/Ghost,NovaDevelopGroup/Academy,disordinary/Ghost,cncodog/Ghost-zh-codog,sifatsultan/js-ghost,lf2941270/Ghost,carlyledavis/Ghost,tandrewnichols/ghost,olsio/Ghost,jamesyothers/Ghost,r1N0Xmk2/Ghost,sangcu/Ghost,Alxandr/Blog,acburdine/Ghost,akveo/akveo-blog,RufusMbugua/TheoryOfACoder,cqricky/Ghost,daimaqiao/Ghost-Bridge,jaguerra/Ghost,telco2011/Ghost,vainglori0us/urban-fortnight,cncodog/Ghost-zh-codog,gabfssilva/Ghost,woodyrew/Ghost,dymx101/Ghost,ineitzke/Ghost,Elektro1776/javaPress,pensierinmusica/Ghost,prosenjit-itobuz/Ghost,Netazoic/bad-gateway,javimolla/Ghost,edsadr/Ghost,blankmaker/Ghost,mlabieniec/ghost-env,adam-paterson/blog,nmukh/Ghost,jiangjian-zh/Ghost,kaychaks/kaushikc.org,Dnlyc/Ghost,tmp-reg/Ghost,tyrikio/Ghost,MadeOnMars/Ghost,r1N0Xmk2/Ghost,Romdeau/Ghost,ThorstenHans/Ghost,kwangkim/Ghost,telco2011/Ghost,ghostchina/Ghost-zh,patrickdbakke/ghost-spa,patterncoder/patterncoder,prosenjit-itobuz/Ghost,avh4/blog.avh4.net,etdev/blog,eduardojmatos/eduardomatos.me,smaty1/Ghost,andrewconnell/Ghost,sergeylukin/Ghost,achimos/ghost_as,schematical/Ghost,ivanoats/ivanstorck.com,djensen47/Ghost,notno/Ghost,metadevfoundation/Ghost,dYale/blog,lukaszklis/Ghost,smedrano/Ghost,rameshponnada/Ghost,vishnuharidas/Ghost,AileenCGN/Ghost,augbog/Ghost,ljhsai/Ghost,cqricky/Ghost,leninhasda/Ghost,PeterCxy/Ghost,yanntech/Ghost,rchrd2/Ghost,ballPointPenguin/Ghost,jin/Ghost,mohanambati/Ghost,exsodus3249/Ghost,rollokb/Ghost,JohnONolan/Ghost,wspandihai/Ghost,smedrano/Ghost,francisco-filho/Ghost,lukekhamilton/Ghost,tanbo800/Ghost,ericbenson/GhostAzureSetup,patterncoder/patterncoder,ygbhf/Ghost,zumobi/Ghost,lanffy/Ghost,wallmarkets/Ghost,uniqname/everydaydelicious,Xibao-Lv/Ghost,alexandrachifor/Ghost,SachaG/bjjbot-blog,rafaelstz/Ghost,nakamuraapp/new-ghost,sceltoas/Ghost,memezilla/Ghost,kevinansfield/Ghost,Feitianyuan/Ghost,atandon/Ghost,TribeMedia/Ghost,bisoe/Ghost,kortemy/Ghost,notno/Ghost,TryGhost/Ghost,jamesslock/Ghost,optikalefx/Ghost,cicorias/Ghost,ryanbrunner/crafters,dai-shi/Ghost,ErisDS/Ghost,dgem/Ghost,denzelwamburu/denzel.xyz,hoxoa/Ghost,PepijnSenders/whatsontheotherside,codeincarnate/Ghost,Yarov/yarov,Smile42RU/Ghost,chris-yoon90/Ghost,dqj/Ghost,KnowLoading/Ghost,cysys/ghost-openshift,TryGhost/Ghost,mlabieniec/ghost-env,tchapi/igneet-blog,no1lov3sme/Ghost,xiongjungit/Ghost,ineitzke/Ghost,ManRueda/manrueda-blog,wemakeweb/Ghost,janvt/Ghost,theonlypat/Ghost,anijap/PhotoGhost,achimos/ghost_as,virtuallyearthed/Ghost,gleneivey/Ghost,riyadhalnur/Ghost,Kaenn/Ghost,Romdeau/Ghost,davidenq/Ghost-Blog,darvelo/Ghost,BlueHatbRit/Ghost,mayconxhh/Ghost,hilerchyn/Ghost,novaugust/Ghost,wspandihai/Ghost,PDXIII/Ghost-FormMailer,ghostchina/Ghost-zh,epicmiller/pages,xiongjungit/Ghost,chris-yoon90/Ghost,Loyalsoldier/Ghost,aschmoe/jesse-ghost-app,tidyui/Ghost,kevinansfield/Ghost,ananthhh/Ghost,MadeOnMars/Ghost,jomofrodo/ccb-ghost,Elektro1776/javaPress,qdk0901/Ghost,davidmenger/nodejsfan,allanjsx/Ghost,Kaenn/Ghost,weareleka/blog,tidyui/Ghost,qdk0901/Ghost,UnbounDev/Ghost,acburdine/Ghost,shrimpy/Ghost,NamedGod/Ghost,Kikobeats/Ghost,zumobi/Ghost,Kikobeats/Ghost,acburdine/Ghost,vainglori0us/urban-fortnight,Azzurrio/Ghost,smaty1/Ghost,ignasbernotas/nullifer,thinq4yourself/Unmistakable-Blog,pollbox/ghostblog,FredericBernardo/Ghost,v3rt1go/Ghost,ngosinafrica/SiteForNGOs,thehogfather/Ghost,DesenTao/Ghost,syaiful6/Ghost,duyetdev/islab,carlyledavis/Ghost,alecho/Ghost,cwonrails/Ghost,flpms/ghost-ad,VillainyStudios/Ghost,e10/Ghost,TribeMedia/Ghost,leninhasda/Ghost,klinker-apps/ghost,shannonshsu/Ghost,dggr/Ghost-sr,rito/Ghost,bosung90/Ghost,Brunation11/Ghost,kevinansfield/Ghost,JonathanZWhite/Ghost,situkangsayur/Ghost,lethalbrains/Ghost,kwangkim/Ghost,NikolaiIvanov/Ghost,UsmanJ/Ghost,dqj/Ghost,load11/ghost,dai-shi/Ghost,dgem/Ghost,pedroha/Ghost,zhiyishou/Ghost,NodeJSBarenko/Ghost,nneko/Ghost,mhhf/ghost-latex,ngosinafrica/SiteForNGOs,camilodelvasto/localghost,sangcu/Ghost,janvt/Ghost,davidenq/Ghost-Blog,jomofrodo/ccb-ghost,ryanbrunner/crafters,akveo/akveo-blog,e10/Ghost,cobbspur/Ghost,ladislas/ghost,diogogmt/Ghost,kaychaks/kaushikc.org,javorszky/Ghost,letsjustfixit/Ghost,RoopaS/demo-intern,javimolla/Ghost,imjerrybao/Ghost,etanxing/Ghost,daimaqiao/Ghost-Bridge,netputer/Ghost,skleung/blog,UnbounDev/Ghost,GroupxDev/javaPress,JonSmith/Ghost,tadityar/Ghost,praveenscience/Ghost,rmoorman/Ghost,laispace/laiblog,sankumsek/Ghost-ashram,petersucks/blog,davidmenger/nodejsfan,Polyrhythm/dolce,adam-paterson/blog,liftup/ghost,panezhang/Ghost,liftup/ghost,daimaqiao/Ghost-Bridge,jacostag/Ghost,velimir0xff/Ghost,thomasalrin/Ghost,PepijnSenders/whatsontheotherside,ErisDS/Ghost,Sebastian1011/Ghost,mttschltz/ghostblog,kmeurer/Ghost,sifatsultan/js-ghost,GroupxDev/javaPress,gcamana/Ghost,claudiordgz/Ghost,ryanorsinger/tryghost,jomahoney/Ghost,manishchhabra/Ghost,daihuaye/Ghost,skmezanul/Ghost,InnoD-WebTier/hardboiled_ghost,Jai-Chaudhary/Ghost,Remchi/Ghost,Yarov/yarov,PeterCxy/Ghost,thinq4yourself/Unmistakable-Blog,diogogmt/Ghost,ThorstenHans/Ghost,floofydoug/Ghost,Dnlyc/Ghost,netputer/Ghost,AlexKVal/Ghost,greenboxindonesia/Ghost,barbastan/Ghost,NovaDevelopGroup/Academy,ManRueda/manrueda-blog,woodyrew/Ghost,edsadr/Ghost,handcode7/Ghost,kmeurer/Ghost,influitive/crafters,rito/Ghost,cysys/ghost-openshift,jomofrodo/ccb-ghost,mohanambati/Ghost,hoxoa/Ghost,omaracrystal/Ghost,pbevin/Ghost,pathayes/FoodBlog,tmp-reg/Ghost,floofydoug/Ghost,fredeerock/atlabghost,jorgegilmoreira/ghost,greyhwndz/Ghost,developer-prosenjit/Ghost,bbmepic/Ghost,skmezanul/Ghost,jiangjian-zh/Ghost,yundt/seisenpenji,ghostchina/website,hnarayanan/narayanan.co,handcode7/Ghost,gleneivey/Ghost,optikalefx/Ghost,tadityar/Ghost,nmukh/Ghost,bastianbin/Ghost,madole/diverse-learners,obsoleted/Ghost,PDXIII/Ghost-FormMailer,no1lov3sme/Ghost,jeonghwan-kim/Ghost,flpms/ghost-ad,bsansouci/Ghost,karmakaze/Ghost,Alxandr/Blog,etanxing/Ghost,lukw00/Ghost,MrMaksimize/sdg1,allanjsx/Ghost,influitive/crafters,zhiyishou/Ghost,hyokosdeveloper/Ghost,devleague/uber-hackathon,ryansukale/ux.ryansukale.com,daihuaye/Ghost,rouanw/Ghost,nneko/Ghost,ignasbernotas/nullifer,psychobunny/Ghost,IbrahimAmin/Ghost,Kikobeats/Ghost,choskim/ghost_exp,ghostchina/Ghost.zh,stridespace/Ghost,beautyOfProgram/Ghost,sebgie/Ghost,ddeveloperr/Ghost,Xibao-Lv/Ghost,dYale/blog,uploadcare/uploadcare-ghost-demo,axross/ghost,delgermurun/Ghost,zuphu/GhostBlog,yanntech/Ghost,novaugust/Ghost,flomotlik/Ghost,icowan/Ghost,jgladch/taskworksource,praveenscience/Ghost,sfpgmr/Ghost,llv22/Ghost,javorszky/Ghost,icowan/Ghost,Sebastian1011/Ghost,makapen/Ghost,alanmoo/moo-on-the-web,choskim/GhostAzure,lanffy/Ghost,krahman/Ghost,choskim/Ghost,tuan/Ghost,GarrethDottin/Habits-Design,rameshponnada/Ghost,zackslash/Ghost,tksander/Ghost,ljhsai/Ghost,GarrethDottin/Habits-Design,dymx101/Ghost,ghostchina/Ghost.zh,mohanambati/Ghost,ManRueda/Ghost,trepafi/ghost-base,sajmoon/Ghost,neynah/GhostSS,barbastan/Ghost,veyo-care/Ghost,jacostag/Ghost,olsio/Ghost,JulienBrks/Ghost,melissaroman/ghost-blog,jeonghwan-kim/Ghost,davegw/dgw-website,tanbo800/Ghost,FredericBernardo/Ghost,andrewconnell/Ghost,NamedGod/Ghost,Klaudit/Ghost,fredeerock/atlabghost,dbalders/Ghost,panezhang/Ghost,ITJesse/Ghost-zh,mttschltz/ghostblog,diancloud/Ghost,davidenq/Ghost-Blog,uploadcare/uploadcare-ghost-demo,lukaszklis/Ghost,klinker-apps/ghost,morficus/Ghost,rizkyario/Ghost,bbmepic/Ghost,PaulBGD/Ghost-Plus,jiachenning/Ghost,freele/ghost,VillainyStudios/Ghost,davegw/dgw-website,mattchupp/blog,julianromera/Ghost,katiefenn/Ghost,Japh/Ghost,ITJesse/Ghost-zh,kaiqigong/Ghost,axross/ghost,jaswilli/Ghost,LeandroNascimento/Ghost,Sing-Li/GhostSS,Kaenn/Ghost,mikecastro26/ghost-custom,ananthhh/Ghost,jamesyothers/Ghost,hnq90/Ghost,Coding-House/Ghost,obsoleted/Ghost,lowkeyfred/Ghost,k2byew/Ghost,STANAPO/Ghost,tandrewnichols/ghost,jorgegilmoreira/ghost,epicmiller/pages,Rovak/Ghost,psychobunny/Ghost,camilodelvasto/herokughost,hilerchyn/Ghost,wemakeweb/Ghost,manishchhabra/Ghost,makapen/Ghost,rwjblue/Ghost,yundt/seisenpenji,weareleka/blog,LeandroNascimento/Ghost,Aaron1992/Ghost,developer-prosenjit/Ghost,aexmachina/blog-old,ClarkGH/Ghost,choskim/Ghost,AnthonyCorrado/Ghost,ladislas/ghost,yangli1990/Ghost,stridespace/Ghost,darvelo/Ghost,diancloud/Ghost,dylanchernick/ghostblog,TryGhost/Ghost,Remchi/Ghost,RufusMbugua/TheoryOfACoder,Japh/Ghost,ericbenson/GhostAzureSetup,JohnONolan/Ghost,bigertech/Ghost,mayconxhh/Ghost,rollokb/Ghost,sergeylukin/Ghost,STANAPO/Ghost,Gargol/Ghost,riyadhalnur/Ghost,tyrikio/Ghost,rouanw/Ghost,BlueHatbRit/Ghost,ivanoats/ivanstorck.com,UsmanJ/Ghost,edurangel/Ghost,Elektro1776/javaPress,JonathanZWhite/Ghost,codeincarnate/Ghost,camilodelvasto/localghost,mdbw/ghost,rmoorman/Ghost,morficus/Ghost,lethalbrains/Ghost,allspiritseve/mindlikewater,YY030913/Ghost,SkynetInc/steam,consoleblog/consoleblog,vloom/blog,kolorahl/Ghost,ryansukale/ux.ryansukale.com,madole/diverse-learners,benstoltz/Ghost,neynah/GhostSS,sebgie/Ghost,Rovak/Ghost,jiachenning/Ghost,yangli1990/Ghost,dggr/Ghost-sr,delgermurun/Ghost,dbalders/Ghost,Loyalsoldier/Ghost,oimou-house/blog,vainglori0us/urban-fortnight,skleung/blog,jparyani/GhostSS,schneidmaster/theventriloquist.us,dylanchernick/ghostblog,lukekhamilton/Ghost,shrimpy/Ghost,KnowLoading/Ghost,laispace/laiblog,kaiqigong/Ghost,beautyOfProgram/Ghost,ASwitlyk/Ghost,ygbhf/Ghost,mhhf/ghost-latex,pensierinmusica/Ghost,Coding-House/Ghost,llv22/Ghost,ballPointPenguin/Ghost,cwonrails/Ghost,zeropaper/Ghost,omaracrystal/Ghost,jparyani/GhostSS,sunh3/Ghost,augbog/Ghost,gabfssilva/Ghost,dbalders/Ghost,Smile42RU/Ghost,johnnymitch/Ghost,ManRueda/manrueda-blog,wangjun/Ghost,cgiffard/Ghost,schneidmaster/theventriloquist.us,singular78/Ghost,mnitchie/Ghost,virtuallyearthed/Ghost,thomasalrin/Ghost,sceltoas/Ghost,syaiful6/Ghost,leonli/ghost,aschmoe/jesse-ghost-app,ManRueda/Ghost,cwonrails/Ghost,phillipalexander/Ghost,laispace/laiblog,AlexKVal/Ghost,IbrahimAmin/Ghost,kmeurer/GhostAzureSetup,carlosmtx/Ghost,Bunk/Ghost,arvidsvensson/Ghost,trunk-studio/Ghost,alecho/Ghost,jgillich/Ghost,ASwitlyk/Ghost,jin/Ghost,jparyani/GhostSS,JulienBrks/Ghost,allanjsx/Ghost,wallmarkets/Ghost,karmakaze/Ghost,atandon/Ghost,jomahoney/Ghost,NikolaiIvanov/Ghost,phillipalexander/Ghost,bsansouci/Ghost,devleague/uber-hackathon,katrotz/blog.katrotz.space,djensen47/Ghost,johngeorgewright/blog.j-g-w.info,greenboxindonesia/Ghost,hnarayanan/narayanan.co,Trendy/Ghost,ClarkGH/Ghost,katrotz/blog.katrotz.space,ivantedja/ghost,jaswilli/Ghost,allspiritseve/mindlikewater,bosung90/Ghost,Alxandr/Blog,Azzurrio/Ghost,lowkeyfred/Ghost,melissaroman/ghost-blog,Jai-Chaudhary/Ghost,Gargol/Ghost,pbevin/Ghost