Skip to content

Commit

Permalink
update prev&next
Browse files Browse the repository at this point in the history
  • Loading branch information
3xxx committed Apr 28, 2024
1 parent f38a063 commit edbbb88
Show file tree
Hide file tree
Showing 19 changed files with 218 additions and 1,684 deletions.
1,894 changes: 217 additions & 1,677 deletions conf/app.conf.example

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion controllers/DocumentController.go
Original file line number Diff line number Diff line change
Expand Up @@ -281,7 +281,7 @@ func (c *DocumentController) Read() {
c.Data["Model"] = bookResult
c.Data["Result"] = template.HTML(tree)
c.Data["Title"] = doc.DocumentName
c.Data["Content"] = template.HTML(doc.Release)
c.Data["Content"] = template.HTML(doc.Release + "<div class='wiki-bottom-left'>上一篇: <a href='/docs/" + PrevPath + "' rel='prev'>" + PrevName + "</a><br />下一篇: <a href='/docs/" + NextPath + "' rel='next'>" + NextName + "</a><br /></div>")
c.Data["ViewCount"] = doc.ViewCount
c.Data["FoldSetting"] = "closed"
if bookResult.Editor == EditorCherryMarkdown {
Expand Down
1 change: 0 additions & 1 deletion uploads/.gitignore

This file was deleted.

Binary file removed uploads/20170501203542.png
Binary file not shown.
Binary file removed uploads/20170501203619.png
Binary file not shown.
Binary file removed uploads/20170501203637.png
Binary file not shown.
Binary file removed uploads/20170501203656.png
Binary file not shown.
Binary file removed uploads/20170501203854.png
Binary file not shown.
Binary file removed uploads/20170501204438.png
Binary file not shown.
Binary file removed uploads/20170501204609.png
Binary file not shown.
Binary file removed uploads/20170501204651.png
Binary file not shown.
Binary file removed uploads/20170501204710.png
Binary file not shown.
Binary file removed uploads/202404/cover_17c7b192553a5fc0.png
Binary file not shown.
Binary file removed uploads/202404/cover_17c7b193ed8a6724.png
Binary file not shown.
Binary file removed uploads/202404/cover_17c8260e47e06f18_small.png
Binary file not shown.
Binary file removed uploads/202404/cover_17c8286be57a8600_small.png
Binary file not shown.
Binary file removed uploads/202404/cover_17c829abdef5fdc8.png
Binary file not shown.
Binary file removed uploads/books/2/book.zip
Binary file not shown.
5 changes: 0 additions & 5 deletions views/document/default_read.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -189,7 +189,6 @@
<div class="article-content">
<div class="article-body {{if eq .Model.Editor "markdown"}}markdown-body editormd-preview-container{{else}}editor-content{{end}}" id="page-content">
{{.Content}}
<!-- <div class="wiki-bottom-left">上一篇: <a href='/docs/{{.PrevPath}}' rel='prev'>{{.PrevName}}</a><br />下一篇: <a href='/docs/{{.NextPath}}' rel='next'>{{.NextName}}</a><br /></div> -->
</div>

{{if .Model.IsDisplayComment}}
Expand Down Expand Up @@ -367,10 +366,6 @@ $(function () {
if (!window.IS_DOCUMENT_INDEX && IS_DISPLAY_COMMENT) {
pageClicked(-1, parseInt($('#doc_id').val()));
}
$("div.wiki-bottom").after("<div class='wiki-bottom-left'>上一篇: <a href='/docs/{{.PrevPath}}' rel='prev'>{{.PrevName}}</a><br />下一篇: <a href='/docs/{{.NextPath}}' rel='next'>{{.NextName}}</a><br /></div>");
});
</script>
{{.Scripts}}
Expand Down

0 comments on commit edbbb88

Please sign in to comment.