Updating the Core Document shape template to better recognize if the app root is being displayed.

--HG--
branch : dev
This commit is contained in:
Nathan Heskew
2011-03-21 10:10:58 -07:00
parent 41d14bb9a0
commit f8fea3303b

View File

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