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

github.com/hauke96/hugo-theme-hamburg.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--README.md8
-rw-r--r--images/website_desktop.pngbin0 -> 768217 bytes
-rw-r--r--images/website_mobile.pngbin0 -> 351419 bytes
-rw-r--r--layouts/index.html3
4 files changed, 10 insertions, 1 deletions
diff --git a/README.md b/README.md
index 6cd7434..6d176c9 100644
--- a/README.md
+++ b/README.md
@@ -2,6 +2,14 @@
Hamburg is a simple and clean blog theme for [Hugo](http://gohugo.io/) based on the [vienna-theme](https://github.com/keichi/vienna) from [keichi](https://github.com/keichi).
+# Screenshots
+
+## Desktop
+![Beautiful on desktop devices](https://github.com/hauke96/hugo-theme-hamburg/blob/dev/images/website_desktop.png)
+
+## Mobile
+![Also beautiful on mobile devices](https://github.com/hauke96/hugo-theme-hamburg/blob/dev/images/website_mobile.png)
+
# Overview
Notable features I would tell somebody are:
diff --git a/images/website_desktop.png b/images/website_desktop.png
new file mode 100644
index 0000000..087cc84
--- /dev/null
+++ b/images/website_desktop.png
Binary files differ
diff --git a/images/website_mobile.png b/images/website_mobile.png
new file mode 100644
index 0000000..38cd46c
--- /dev/null
+++ b/images/website_mobile.png
Binary files differ
diff --git a/layouts/index.html b/layouts/index.html
index f24966c..65d8284 100644
--- a/layouts/index.html
+++ b/layouts/index.html
@@ -1,6 +1,7 @@
{{ partial "header.html" . }}
<div class="article-list">
- {{ range $index, $page := where .Site.RegularPages "Type" "in" .Site.Params.mainSections }}
+ {{ $paginator := .Paginate (where .Site.RegularPages "Type" "in" .Site.Params.mainSections) }}
+ {{ range $index, $page := $paginator.Pages }}
{{ if ne $index 0 }}
<div class="delimiter"></div>
{{ end }}