mirror of
https://github.com/mindoc-org/mindoc.git
synced 2026-01-18 20:01:26 +08:00
新增了在每篇文档标题下显示原始作者、创建时间和最后更新时间的功能。
This commit is contained in:
@@ -417,7 +417,8 @@ table>tbody>tr:hover{
|
||||
}
|
||||
.manual-article .article-head {
|
||||
position: relative;
|
||||
zoom:1;padding: 10px 20px
|
||||
zoom: 1;
|
||||
padding: 10px 20px
|
||||
}
|
||||
.manual-reader .book-title{
|
||||
color: #333333;
|
||||
@@ -430,7 +431,7 @@ table>tbody>tr:hover{
|
||||
.manual-article .article-head h1 {
|
||||
margin: 0;
|
||||
font-size: 20px;
|
||||
font-weight: 200;
|
||||
font-weight: 300;
|
||||
text-align: center;
|
||||
line-height: 30px;
|
||||
overflow: hidden;
|
||||
@@ -438,6 +439,17 @@ table>tbody>tr:hover{
|
||||
white-space: nowrap;
|
||||
color: #444
|
||||
}
|
||||
.manual-article .article-head h3 {
|
||||
margin: 0;
|
||||
font-size: 12px;
|
||||
font-weight: 200;
|
||||
text-align: center;
|
||||
line-height: 18px;
|
||||
overflow: hidden;
|
||||
text-overflow: ellipsis;
|
||||
white-space: nowrap;
|
||||
color: #444
|
||||
}
|
||||
.manual-article .article-content{
|
||||
min-width: 980px;
|
||||
max-width: 98%;
|
||||
|
||||
@@ -33,6 +33,7 @@ function loadDocument($url,$id,$callback) {
|
||||
var body = res.data.body;
|
||||
var doc_title = res.data.doc_title;
|
||||
var title = res.data.title;
|
||||
var doc_info = res.data.doc_info;
|
||||
|
||||
$body = body;
|
||||
if (typeof $callback === "function" ){
|
||||
@@ -41,6 +42,7 @@ function loadDocument($url,$id,$callback) {
|
||||
$("#page-content").html($body);
|
||||
$("title").text(title);
|
||||
$("#article-title").text(doc_title);
|
||||
$("#article-info").text(doc_info);
|
||||
|
||||
events.data('body_' + $id,body);
|
||||
events.data('title_' + $id,title);
|
||||
|
||||
Reference in New Issue
Block a user