Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
syui committed May 12, 2024
1 parent b2b6e87 commit fc93162
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 0 deletions.
1 change: 1 addition & 0 deletions layouts/_default/single.html
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ <h1>{{ .Title }}</h1>
</div>
</article>

{{ partial "next.html" . }}
{{ partial "comment.html" . }}

</div>
Expand Down
16 changes: 16 additions & 0 deletions layouts/partials/next.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
<nav id="article-nav">
<div class="previnsection">
<!--
{{ if .PrevInSection }}
<p><i class="fa-solid fa-circle-chevron-left"></i> <a href="{{ .PrevInSection.Permalink }}" id="article-nav-older" class="article-nav-link-wrap">
{{ .PrevInSection.Title }}
</a></p>
{{ end }}
-->
{{ if .NextInSection }}
<p><i class="fa-solid fa-circle-chevron-right"></i> <a href="{{ .NextInSection.Permalink }}" id="article-nav-newer" class="article-nav-link-wrap">
{{ .NextInSection.Title }}
</a></p>
{{ end }}
</div>
</nav>

0 comments on commit fc93162

Please sign in to comment.