fix: pagination

master
韦鸿昊 2 years ago
parent 4202f3cac6
commit 940fd5500e
  1. 6
      betterhealthwhileaging/details.html
  2. 25
      betterhealthwhileaging/index.html
  3. 24
      howtogeek/index.html

@ -622,14 +622,14 @@
</div>
</article>
<div class="article-page">
<div style="padding-top: 20px;">
{{ if .Prev }}
<div class="hidden-text oneLine">
<div class="oneLine" style="padding-top: 20px;">
Prev:<a href="{{.Prev.Url}}">{{.Prev.Title}}</a>
</div>
{{ end }}
{{ if .Next }}
<div class="hidden-text oneLine">
<div class="oneLine" style="padding-top: 20px;">
Next:<a href="{{.Next.Url}}">{{.Next.Title}}</a>
</div>
{{ end }}

@ -625,6 +625,31 @@
</article>
{{end}}
</div>
<!-- 上一页 -->
<div style="display: flex; justify-content: space-between;padding-top: 20px;">
{{$pulen := len .PrevUrl}}
{{ if ne $pulen 0 }}
<div>
<a href="{{.PrevUrl}}">Prev</a>
</div>
{{else}}
<div style="pointer-events: none;color: gray">
Prev
</div>
{{ end }}
<!-- 下一页 -->
{{$nulen := len .NextUrl}}
{{ if ne $nulen 0 }}
<div>
<a href="{{.NextUrl}}">Next</a>
</div>
{{else}}
<div style="pointer-events: none;color: gray">
Next
</div>
{{ end }}
</div>
</section>
</div>
</main>

@ -6008,6 +6008,7 @@
</div>
</article>
{{end}}
<style>
body #content #primary #post-networkbox a {
text-decoration: underline;
@ -6081,6 +6082,29 @@
</div>
<div style="clear:both;padding-top:20px;"></div>
</main><!-- #main -->
<div style="display: flex; justify-content: space-between;padding-top: 20px;">
{{$pulen := len .PrevUrl}}
{{ if ne $pulen 0 }}
<div>
<a href="{{.PrevUrl}}">Prev</a>
</div>
{{else}}
<div style="pointer-events: none;color: gray">
Prev
</div>
{{ end }}
<!-- 下一页 -->
{{$nulen := len .NextUrl}}
{{ if ne $nulen 0 }}
<div>
<a href="{{.NextUrl}}">Next</a>
</div>
{{else}}
<div style="pointer-events: none;color: gray">
Next
</div>
{{ end }}
</div>
</div><!-- #primary -->
<style>
#secondary {

Loading…
Cancel
Save