添加displayTitle配置,以适应头像替代开头字母的情况
This commit is contained in:
parent
aed0378ae5
commit
c199943635
12
config.json
12
config.json
@ -1,12 +0,0 @@
|
||||
{
|
||||
"title":"Meekdai",
|
||||
"subTitle":"童话是一种生活态度,仅此而已。",
|
||||
"homeUrl":"http://blog.meekdai.com",
|
||||
"avatarUrl":"http://meekdai.com/avatar.jpg",
|
||||
"faviconUrl":"http://meekdai.com/favicon.ico",
|
||||
"startSite":"02/16/2015",
|
||||
"filingNum":"浙ICP备20023628号",
|
||||
"singlePage":["link","about"],
|
||||
"commentLabelColor":"#006b75",
|
||||
"yearColorList":["#bc4c00", "#0969da", "#1f883d", "#A333D0"]
|
||||
}
|
||||
@ -92,7 +92,7 @@ var postListJson=blogBase["postListJson"]
|
||||
|
||||
document.title=blogBase["title"];
|
||||
document.getElementById("avatarImg").src=blogBase["avatarUrl"];
|
||||
document.getElementById("blogTitle").innerHTML=blogBase["title"].substring(1);
|
||||
document.getElementById("blogTitle").innerHTML=blogBase["displayTitle"];
|
||||
document.getElementById("blogSubTitle").innerHTML=blogBase["subTitle"];
|
||||
document.getElementById("changeTheme").setAttribute("title",i18n[0]);
|
||||
document.getElementById("buttonLink").setAttribute("title",i18n[3]);
|
||||
|
||||
Loading…
Reference in New Issue
Block a user