--HG--
branch : dev
This commit is contained in:
Renaud Paquay
2011-02-24 16:16:08 -08:00
parent 6dffcfed8c
commit 21a5a30ca2

View File

@@ -6,7 +6,7 @@
Script.Include("html5.js").AtLocation(ResourceLocation.Head); Script.Include("html5.js").AtLocation(ResourceLocation.Head);
//a bit opinionated - only the site name on the homepage //a bit opinionated - only the site name on the homepage
var title = (Request.Path != Request.ApplicationPath && !string.IsNullOrWhiteSpace((string)Model.Title) var title = (Request.Path != Request.ApplicationPath && HasText(Model.Title)
? Model.Title + WorkContext.CurrentSite.PageTitleSeparator ? Model.Title + WorkContext.CurrentSite.PageTitleSeparator
: "") + : "") +
WorkContext.CurrentSite.SiteName; WorkContext.CurrentSite.SiteName;