update prev&next

This commit is contained in:
3xxx 2024-04-28 22:05:23 +08:00
parent f38a063b4b
commit edbbb88382
19 changed files with 218 additions and 1684 deletions

File diff suppressed because one or more lines are too long

View File

@ -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 {

1
uploads/.gitignore vendored
View File

@ -1 +0,0 @@
# Created by .ignore support plugin (hsz.mobi)

Binary file not shown.

Before

Width:  |  Height:  |  Size: 372 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 37 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 28 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 367 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 71 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 282 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 230 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 558 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 25 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 3.9 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 3.9 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 136 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 74 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.8 KiB

Binary file not shown.

View File

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