Browse Source

Revert "Pagination Support (#8)" (#9)

This reverts commit 951f1fec69.
pull/10/head
Matúš Námešný 2 years ago
parent
commit
d25a000063

+ 0
- 0
LICENSE.md View File


+ 0
- 0
README.md View File


+ 0
- 0
archetypes/default.md View File


+ 0
- 0
exampleSite/config.toml View File


+ 0
- 0
exampleSite/content/about.md View File


+ 0
- 0
exampleSite/content/post/creating-a-new-theme.md View File


+ 0
- 0
exampleSite/content/post/goisforlovers.md View File


+ 0
- 0
exampleSite/content/post/hugoisforlovers.md View File


+ 0
- 0
exampleSite/content/post/migrate-from-jekyll.md View File


+ 0
- 0
exampleSite/static/profile.jpg View File


+ 0
- 0
images/about.png View File


BIN
images/index.png View File


+ 0
- 0
images/posts.png View File


+ 0
- 0
images/screenshot.png View File


+ 0
- 0
images/tn.png View File


+ 0
- 0
layouts/404.html View File


+ 1
- 2
layouts/_default/list.html View File

@@ -16,7 +16,7 @@
16 16
 				</div>
17 17
 			</div>
18 18
 			<ul id="post-list">
19
-                {{ range .Paginator.Pages }}
19
+				{{ range .Data.Pages }}
20 20
 				<li>
21 21
 					<div class="post-list-item">
22 22
 						<div class="post-header">
@@ -32,7 +32,6 @@
32 32
 				{{ end }}
33 33
 
34 34
 			</ul>
35
-            {{ partial "pagination" . }}
36 35
 			<div class="push"></div>
37 36
 		</div>
38 37
 		{{ partial "footer.html" . }}

+ 0
- 0
layouts/_default/single.html View File


+ 0
- 0
layouts/index.html View File


+ 0
- 0
layouts/partials/footer.html View File


+ 0
- 0
layouts/partials/head.html View File


+ 0
- 0
layouts/partials/header.html View File


+ 0
- 30
layouts/partials/pagination.html View File

@@ -1,30 +0,0 @@
1
-{{ $pag := $.Paginator }}
2
-{{ if gt $pag.TotalPages 1 }}
3
-<div class="pagination-wrapper text-center">
4
-  <ul class="pagination">
5
-      {{ with $pag.First }}
6
-      <li>
7
-          <a href="{{ .URL }}" aria-label="First"><span aria-hidden="true">&laquo;&laquo;</span></a>
8
-      </li>
9
-      {{ end }}
10
-      <li
11
-      {{ if not $pag.HasPrev }}class="disabled"{{ end }}>
12
-          <a href="{{ if $pag.HasPrev }}{{ $pag.Prev.URL }}{{ end }}" aria-label="Previous"><span aria-hidden="true">&laquo;</span></a>
13
-      </li>
14
-      {{ range $pag.Pagers }}
15
-      <li
16
-      {{ if eq . $pag }}class="active"{{ end }}><a href="{{ .URL }}">{{ .PageNumber }}</a></li>
17
-      {{ end }}
18
-      <li
19
-      {{ if not $pag.HasNext }}class="disabled"{{ end }}>
20
-          <a href="{{ if $pag.HasNext }}{{ $pag.Next.URL }}{{ end }}" aria-label="Next"><span aria-hidden="true">&raquo;</span></a>
21
-      </li>
22
-      {{ with $pag.Last }}
23
-      <li>
24
-          <a href="{{ .URL }}" aria-label="Last"><span aria-hidden="true">&raquo;&raquo;</span></a>
25
-      </li>
26
-      {{ end }}
27
-    </ul>
28
-</div>
29
-{{ end }}
30
-

+ 0
- 0
static/css/nix.css View File


+ 0
- 0
theme.toml View File


Loading…
Cancel
Save