SEO优化 · CodTeam/BookStack@fd02431 · GitHub
Skip to content

Commit fd02431

Browse files
committed
SEO优化
1 parent a29201c commit fd02431

4 files changed

Lines changed: 19 additions & 19 deletions

File tree

change.md

Lines changed: 12 additions & 12 deletions

controllers/DocumentController.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -214,7 +214,7 @@ func (this *DocumentController) Read() {
214214
}
215215
}
216216
if alt, _ := contentSelection.Attr("alt"); alt == "" {
217-
contentSelection.SetAttr("alt", doc.DocumentName+"-图"+fmt.Sprint(i+1))
217+
contentSelection.SetAttr("alt", doc.DocumentName+" - 图"+fmt.Sprint(i+1))
218218
}
219219
})
220220
html, err := query.Html()

static/css/bookstack.css

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1305,7 +1305,7 @@ li.L1, li.L3, li.L5, li.L7, li.L9{background-color: transparent;}
13051305
.markdown-toc{
13061306
position: fixed;background-color: #fff;
13071307
right: 15px;z-index: 99;
1308-
top: 70px;transition: width 0.5s;
1308+
top: 115px;transition: width 0.5s;
13091309
width: 230px;max-height: 360px;overflow-y: auto;
13101310
border:1px solid #EEEEEE;border-radius: 3px;border-top-left-radius: 0px;
13111311
}
@@ -1334,7 +1334,7 @@ li.L1, li.L3, li.L5, li.L7, li.L9{background-color: transparent;}
13341334
}
13351335
.markdown-toc a.active,.markdown-toc a:hover{color: #008cff;}
13361336
.article-toggle{
1337-
position: fixed;right: 212px;top:71px;cursor: pointer;transition: right 0.5s;
1337+
position: fixed;right: 212px;top:116px;cursor: pointer;transition: right 0.5s;
13381338
border: 0px;background-color: #fff; padding:5px 5px;
13391339
}
13401340
.article-menu-hide .article-toggle{

views/document/default_read.html

Lines changed: 4 additions & 4 deletions

0 commit comments

Comments
 (0)