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

github.com/kritoke/darksimplicity.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--config.toml31
-rw-r--r--layouts/_default/list.html6
-rw-r--r--layouts/index.html3
3 files changed, 35 insertions, 5 deletions
diff --git a/config.toml b/config.toml
new file mode 100644
index 0000000..6b3983b
--- /dev/null
+++ b/config.toml
@@ -0,0 +1,31 @@
+languageCode = "en-us"
+title = "Dark Simplicity"
+baseurl = "http://example.org/"
+theme = "darksimplicity"
+min_version = 0.45
+contentdir = "content"
+layoutdir = "layouts"
+publishdir = "public"
+builddrafts = false
+canonifyurls = true
+
+[params]
+description = "A Dark Minimalist Theme for Hugo utilizing the Lost Grid Framework"
+copyright = "&copy Copyright 2017, 2018. Matt Rhone and Dark Simplicity."
+#google_analytics_id=""
+#disqus_shortname=""
+
+[taxonomies]
+tag = "tags"
+
+[menu]
+ [[menu.top]]
+ name = "Twitter"
+ pre = ""
+ weight = -100
+ url = "http://www.twitter.com/Username"
+ [[menu.top]]
+ name = "RSS"
+ pre = ""
+ weight = -90
+ url = "index.xml"
diff --git a/layouts/_default/list.html b/layouts/_default/list.html
index eb16c30..b285b02 100644
--- a/layouts/_default/list.html
+++ b/layouts/_default/list.html
@@ -1,6 +1,6 @@
{{ partial "header.html" . }}
-{{ range (.Paginator 5).Pages }}{{ if eq .Type "post"}}
-<div class="empty">&nbsp;</div>
+{{ $paginator := .Paginate ( where .Data.Pages "Type" "in" (or "posts" "post")) 5 }}
+{{ range $paginator.Pages }}<div class="empty">&nbsp;</div>
<div class="post-title">
<a class="post-title-link" href="{{ .Permalink }}">{{ .Title }}</a>
</div>{{ if isset .Params "tags" }}
@@ -8,4 +8,4 @@
{{ range .Params.tags }}<a class="tag-link" href="{{ "/tags/" | relLangURL }}{{ . | urlize }}">{{ . }} </a>{{ end }}
</div>
<div class="content-tags"><p>{{.Summary}}</p></div>{{ else }}
- <div class="content-full"><p>{{.Summary}}</p></div> {{ end }}{{ end }}{{ end }}{{ partial "pagination.html" . }}{{ partial "footer.html" . }}
+ <div class="content-full"><p>{{.Summary}}</p></div> {{ end }}{{ end }}{{ partial "pagination.html" . }}{{ partial "footer.html" . }}
diff --git a/layouts/index.html b/layouts/index.html
index a81f507..b7e619a 100644
--- a/layouts/index.html
+++ b/layouts/index.html
@@ -1,6 +1,5 @@
-
{{ partial "header.html" . }}
-{{ $paginator := .Paginate (where .Data.Pages "Type" "post") 5 }}
+{{ $paginator := .Paginate ( where .Data.Pages "Type" "in" (or "posts" "post")) 5 }}
{{ range $paginator.Pages }}
<div class="post-title">
<a class="post-title-link" href="{{ .Permalink }}">{{ .Title }}</a>