K_Reverter的网页开发记录

要么不做,要么就当作艺术品来做!

导航

改变了bLOG的标题显示顺序

本来按照常理应该是文章+blog名字+站点名的,信息为先嘛,不知道cnblogs为什么要刚好把名字显示倒过来,呵呵,我改了一下(Dottext.Web.UI.Globals):
 1        public static string CurrentTitle(HttpContext context)
 2        
{
 3            string title = (string
)context.Items[BlogPageTitle];
 4            if(title == null
)
 5            
{
 6                title =
 Config.CurrentBlog(context).Title;
 7                if(title==null
)
 8                
{
 9                    return
 UIText.SiteTitle;
10                }

11            }

12            else
13            {
14                title = title+"-"+
Config.CurrentBlog(context).Title;
15            }

16            title=title+"-"+UIText.SiteTitle;
17            return
 title;
18        }

posted on 2005-09-28 08:40  K_Reverter  阅读(212)  评论(0编辑  收藏  举报