添加displayTitle配置,以适应头像替代开头字母的情况

This commit is contained in:
呆瓜云 2023-07-31 11:18:47 +08:00
parent aed0378ae5
commit c199943635
2 changed files with 1 additions and 13 deletions

View File

@ -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"]
}

View File

@ -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]);