684
684
"COMMENT_UNAVAILABLE_DUE_TO_PREVIEW" : {
685
685
"简体中文" : "由于你目前正在预览环境之中,评论功能暂时被禁用了。当你的站点被从互联网访问时,评论系统会正常地显示在这里。" ,
686
686
"English" : "Comment function banned because you are now in the preview environment. When the site is visited from the Internet, the comment system will be available here."
687
+ } ,
688
+ "FRIEND_BOOK" : {
689
+ "简体中文" : "友人帐" ,
690
+ "English" : "Friend book"
691
+ } ,
692
+ "COPYRIGHT_HINT" : {
693
+ "简体中文" : "版权声明" ,
694
+ "English" : "About the copyright of the article"
695
+ } ,
696
+ "PREVIOUS_POST" : {
697
+ "简体中文" : "上一篇文章" ,
698
+ "English" : "Previous post"
699
+ } ,
700
+ "NEXT_POST" : {
701
+ "简体中文" : "下一篇文章" ,
702
+ "English" : "Next post"
703
+ } ,
704
+ "NOTHING" : {
705
+ "简体中文" : "没有了" ,
706
+ "English" : "nothing"
707
+ } ,
708
+ "COPYRIGHT_RESERVED" : {
709
+ "简体中文" : "除特别声明外,本博客上的内容由博主保留所有权利,进行转载前需先获得博主同意。" ,
710
+ "English" : "Unless otherwise stated, the content on this blog is reserved by the blogger, and the blogger's consent must be obtained before reprinting."
711
+ } ,
712
+ "COPYRIGHT_CC_BY_NC_SA_FOUR_DOT_ZERO" : {
713
+ "简体中文" : "除特别声明外,本博客上的内容采用 <a href='https://creativecommons.org/licenses/by-nc-sa/4.0/deed.zh' target='_blank'>CC BY-NC-SA 4.0 许可协议</a> 授权。转载请注明出处!" ,
714
+ "English" : "Unless otherwise stated, the content on this blog is licensed under the CC BY-NC-SA 4.0 license. Please indicate the source when reprinting!"
715
+ } ,
716
+ "COPYRIGHT_UNLICENSED" : {
717
+ "简体中文" : "除特别声明外,本博客上的内容属于公有领域,这意味着你可以不受限制地使用和加工它们。" ,
718
+ "English" : "Unless otherwise stated, the content on this blog is in the public domain, which means you can use and process it without restriction."
687
719
}
688
720
}
689
721
747
779
if ( blog [ "启用内建友人帐页面" ] === true ) {
748
780
document . querySelector ( "#navbar_items" ) . innerHTML += `
749
781
<li class="nav-item" id="navbar_friendbook">
750
- <a class="nav-link" href="./index.html?type=internal&function=friendbook" onclick="enter_friend_book();return false;">友人帐 </a>
782
+ <a class="nav-link" href="./index.html?type=internal&function=friendbook" onclick="enter_friend_book();return false;">${ langdata . FRIEND_BOOK [ lang_name ] } </a>
751
783
</li>
752
784
` ;
753
785
@@ -996,7 +1028,7 @@ <h2> ${blog["文章列表"][article_id]["文章标题"]}</h2>
996
1028
"#article-content"
997
1029
) . innerHTML += `<br />
998
1030
<div class="alert alert-info" role="alert">
999
- <h5 class="alert-heading">版权声明 </h5>
1031
+ <h5 class="alert-heading">${ langdata . COPYRIGHT_HINT [ lang_name ] } </h5>
1000
1032
<p class="mb-0">${ blogContentLicenseText } </p>
1001
1033
</div>
1002
1034
@@ -1012,16 +1044,16 @@ <h5 class="alert-heading">版权声明</h5>
1012
1044
<div class="col">
1013
1045
<div class="card articlebottomnav" style="float:left;width:100%">
1014
1046
<div class="card-body">
1015
- <h6 class="card-subtitle mb-2 text-muted"><i class="fa fa-arrow-left"></i> 上一篇文章 </h6>
1047
+ <h6 class="card-subtitle mb-2 text-muted"><i class="fa fa-arrow-left"></i> ${ langdata . PREVIOUS_POST [ lang_name ] } </h6>
1016
1048
<h5 class="card-title"><a href="./index.html?type=article&filename=${ blog [ "文章列表" ] [ article_id + 1 ] [ "文件名" ] } " onclick="enter_article(${ article_id + 1 } );return false;">${ blog [ "文章列表" ] [ article_id + 1 ] [ "文章标题" ] } </a></h5>
1017
1049
</div>
1018
1050
</div>
1019
1051
</div>
1020
1052
<div class="col">
1021
1053
<div class="card articlebottomnav" style="float:right;text-align:right;width:100%">
1022
1054
<div class="card-body">
1023
- <h6 class="card-subtitle mb-2 text-muted">下一篇文章 <i class="fa fa-arrow-right"></i></h6>
1024
- <h5 class="card-title">没有了 </h5>
1055
+ <h6 class="card-subtitle mb-2 text-muted">${ langdata . NEXT_POST [ lang_name ] } <i class="fa fa-arrow-right"></i></h6>
1056
+ <h5 class="card-title">${ langdata . NOTHING [ lang_name ] } </h5>
1025
1057
</div>
1026
1058
</div>
1027
1059
</div>
@@ -1036,16 +1068,16 @@ <h5 class="card-title">没有了</h5>
1036
1068
<div class="col">
1037
1069
<div class="card articlebottomnav" style="float:left;width:100%">
1038
1070
<div class="card-body">
1039
- <h6 class="card-subtitle mb-2 text-muted"><i class="fa fa-arrow-left"></i> 上一篇文章 </h6>
1040
- <h5 class="card-title">没有了 </h5>
1071
+ <h6 class="card-subtitle mb-2 text-muted"><i class="fa fa-arrow-left"></i> ${ langdata . PREVIOUS_POST [ lang_name ] } </h6>
1072
+ <h5 class="card-title">${ langdata . NOTHING [ lang_name ] } </h5>
1041
1073
</div>
1042
1074
</div>
1043
1075
</div>
1044
1076
<div class="col">
1045
1077
<div class="card articlebottomnav" style="float:right;text-align:right;width:100%">
1046
1078
<div class="card-body">
1047
- <h6 class="card-subtitle mb-2 text-muted">下一篇文章 <i class="fa fa-arrow-right"></i></h6>
1048
- <h5 class="card-title">没有了 </h5>
1079
+ <h6 class="card-subtitle mb-2 text-muted">${ langdata . NEXT_POST [ lang_name ] } <i class="fa fa-arrow-right"></i></h6>
1080
+ <h5 class="card-title">${ langdata . NOTHING [ lang_name ] } </h5>
1049
1081
</div>
1050
1082
</div>
1051
1083
</div>
@@ -1060,15 +1092,15 @@ <h5 class="card-title">没有了</h5>
1060
1092
<div class="col">
1061
1093
<div class="card articlebottomnav" style="float:left;width:100%">
1062
1094
<div class="card-body">
1063
- <h6 class="card-subtitle mb-2 text-muted"><i class="fa fa-arrow-left"></i> 上一篇文章 </h6>
1064
- <h5 class="card-title">没有了 </h5>
1095
+ <h6 class="card-subtitle mb-2 text-muted"><i class="fa fa-arrow-left"></i> ${ langdata . PREVIOUS_POST [ lang_name ] } </h6>
1096
+ <h5 class="card-title">${ langdata . NOTHING [ lang_name ] } </h5>
1065
1097
</div>
1066
1098
</div>
1067
1099
</div>
1068
1100
<div class="col">
1069
1101
<div class="card articlebottomnav" style="float:right;text-align:right;width:100%">
1070
1102
<div class="card-body">
1071
- <h6 class="card-subtitle mb-2 text-muted">下一篇文章 <i class="fa fa-arrow-right"></i></h6>
1103
+ <h6 class="card-subtitle mb-2 text-muted">${ langdata . NEXT_POST [ lang_name ] } <i class="fa fa-arrow-right"></i></h6>
1072
1104
<h5 class="card-title"><a href="./index.html?type=article&filename=${ blog [ "文章列表" ] [ article_id - 1 ] [ "文件名" ] } " onclick="enter_article(${ article_id - 1 } );return false;">${ blog [ "文章列表" ] [ article_id - 1 ] [ "文章标题" ] } </a></h5>
1073
1105
</div>
1074
1106
</div>
@@ -1084,15 +1116,15 @@ <h5 class="card-title"><a href="./index.html?type=article&filename=${blog["文
1084
1116
<div class="col">
1085
1117
<div class="card articlebottomnav" style="float:left;width:100%">
1086
1118
<div class="card-body">
1087
- <h6 class="card-subtitle mb-2 text-muted"><i class="fa fa-arrow-left"></i> 上一篇文章 </h6>
1119
+ <h6 class="card-subtitle mb-2 text-muted"><i class="fa fa-arrow-left"></i> ${ langdata . PREVIOUS_POST [ lang_name ] } </h6>
1088
1120
<h5 class="card-title"><a href="./index.html?type=article&filename=${ blog [ "文章列表" ] [ article_id + 1 ] [ "文件名" ] } " onclick="enter_article(${ article_id + 1 } );return false;">${ blog [ "文章列表" ] [ article_id + 1 ] [ "文章标题" ] } </a></h5>
1089
1121
</div>
1090
1122
</div>
1091
1123
</div>
1092
1124
<div class="col">
1093
1125
<div class="card articlebottomnav" style="float:right;text-align:right;width:100%">
1094
1126
<div class="card-body">
1095
- <h6 class="card-subtitle mb-2 text-muted">下一篇文章 <i class="fa fa-arrow-right"></i></h6>
1127
+ <h6 class="card-subtitle mb-2 text-muted">${ langdata . NEXT_POST [ lang_name ] } <i class="fa fa-arrow-right"></i></h6>
1096
1128
<h5 class="card-title"><a href="./index.html?type=article&filename=${ blog [ "文章列表" ] [ article_id - 1 ] [ "文件名" ] } " onclick="enter_article(${ article_id - 1 } );return false;">${ blog [ "文章列表" ] [ article_id - 1 ] [ "文章标题" ] } </a></h5>
1097
1129
</div>
1098
1130
</div>
@@ -1168,7 +1200,7 @@ <h5 class="card-title"><a target="_blank" href="${url}">${name}</a></h5>
1168
1200
function render_friend_book ( ) {
1169
1201
document . querySelector ( "#container" ) . innerHTML += `
1170
1202
<div class="page-content">
1171
- <h2>友人帐 </h2>
1203
+ <h2>${ langdata . FRIEND_BOOK [ lang_name ] } </h2>
1172
1204
<hr />
1173
1205
<p>${ blog [ "友人帐页面附加信息" ] } </p>
1174
1206
@@ -1392,7 +1424,7 @@ <h3><i class="fa fa-tags"></i> 未分类文章</h3>
1392
1424
if ( blog [ "不使用全站内容授权协议" ] === false ) {
1393
1425
document . getElementById ( "page-content" ) . innerHTML += `<br />
1394
1426
<div class="alert alert-info" role="alert">
1395
- <h5 class="alert-heading">版权声明 </h5>
1427
+ <h5 class="alert-heading">${ langdata . COPYRIGHT_HINT [ lang_name ] } </h5>
1396
1428
<p class="mb-0">${ blogContentLicenseText } </p>
1397
1429
</div>
1398
1430
@@ -1602,16 +1634,17 @@ <h5 class="alert-heading">版权声明</h5>
1602
1634
. get ( "./data/index.json?timestamp=" + Date . parse ( new Date ( ) ) )
1603
1635
. then ( function ( response ) {
1604
1636
blog = response . data ;
1637
+ lang_name = blog [ "网站语言" ] ;
1605
1638
1606
1639
switch ( blog [ "全站内容授权协议" ] ) {
1607
1640
case "reserved" :
1608
- blogContentLicenseText = `除特别声明外,本博客上的内容由博主保留所有权利,进行转载前需先获得博主同意。 `
1641
+ blogContentLicenseText = `${ langdata . COPYRIGHT_RESERVED [ lang_name ] } `
1609
1642
break ;
1610
1643
case "unlicensed" :
1611
- blogContentLicenseText = `除特别声明外,本博客上的内容属于公有领域,这意味着你可以不受限制地使用和加工它们。 `
1644
+ blogContentLicenseText = `${ langdata . COPYRIGHT_UNLICENSED [ lang_name ] } `
1612
1645
break ;
1613
1646
case "cc-by-nc-sa-4.0" :
1614
- blogContentLicenseText = `除特别声明外,本博客上的内容采用 <a href="https://creativecommons.org/licenses/by-nc-sa/4.0/deed.zh" target="_blank">CC BY-NC-SA 4.0 许可协议</a> 授权。转载请注明出处! `
1647
+ blogContentLicenseText = `${ langdata . COPYRIGHT_CC_BY_NC_SA_FOUR_DOT_ZERO [ lang_name ] } `
1615
1648
break ;
1616
1649
default :
1617
1650
blogContentLicenseText = `${ blog [ "全站内容授权协议" ] } ` ;
@@ -1626,7 +1659,7 @@ <h5 class="alert-heading">版权声明</h5>
1626
1659
importHighlightCSSFile ( cdn_path + "/[email protected] /styles/tomorrow.css" ) ;
1627
1660
1628
1661
1629
- lang_name = blog [ "网站语言" ] ;
1662
+
1630
1663
articleListPageLength = Math . ceil ( blog [ "文章列表" ] . length / blog [ "文章列表中每页的文章数为" ] ) ; // 从1开始数
1631
1664
1632
1665
if ( blog [ "全局评论设置" ] [ "valine设置" ] [ "是否使用bbg公共评论服务" ] ) {
0 commit comments