Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/EmielH/tale-hugo.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEmiel Hollander <EmielH@users.noreply.github.com>2018-07-28 17:24:25 +0300
committerEmiel Hollander <EmielH@users.noreply.github.com>2018-07-28 17:24:25 +0300
commita937ee7487a4ddc6a981149638c34a085e86450e (patch)
treec82f6536f5785390a46685d78f681cc1df6c7d7b /layouts/index.html
Initial commit
Diffstat (limited to 'layouts/index.html')
-rw-r--r--layouts/index.html33
1 files changed, 33 insertions, 0 deletions
diff --git a/layouts/index.html b/layouts/index.html
new file mode 100644
index 0000000..edfc24e
--- /dev/null
+++ b/layouts/index.html
@@ -0,0 +1,33 @@
+{{ partial "header.html" . }}
+
+<main>
+ <div class="catalogue">
+ {{ range (.Paginate (where .Pages "Type" "post")).Pages }}
+ <a href="{{ .Permalink }}" class="catalogue-item">
+ <div>
+ <time datetime="{{ .PublishDate }}" class="catalogue-time">{{ .PublishDate.Format "January 2, 2006" }}</time>
+ <h1 class="catalogue-title">{{ .Title }}</h1>
+ <div class="catalogue-line"></div>
+
+ <p>
+ {{ .Summary }}
+ </p>
+
+ </div>
+ </a>
+ {{ end }}
+ </div>
+
+ <div class="pagination">
+ {{ if .Paginator.HasPrev }}
+ <a href="{{ .Paginator.Prev.URL }}" class="left arrow">&#8592;</a>
+ {{ end }}
+ {{ if .Paginator.HasNext }}
+ <a href="{{ .Paginator.Next.URL }}" class="right arrow">&#8594;</a>
+ {{ end }}
+
+ <span>{{ .Paginator.PageNumber }}</span>
+ </div>
+</main>
+
+{{ partial "footer.html" . }} \ No newline at end of file