diff --git a/config.toml b/config.toml index 6716df9..59e7ef2 100644 --- a/config.toml +++ b/config.toml @@ -30,7 +30,7 @@ disqusShortname = "foodogsquared" [params.blog.contact.gitlab] name = "GitLab" - link = "https://github.com/foo-dogsquared" + link = "https://gitlab.com/foo-dogsquared/" [params.blog.contact.twitter] name = "Twitter" diff --git a/layouts/_default/list.html b/layouts/_default/list.html index 0df44ca..cd39b16 100644 --- a/layouts/_default/list.html +++ b/layouts/_default/list.html @@ -1,12 +1,10 @@ {{ define "main" }} {{ .Content }}
- {{ $isntDefault := not (or (eq (trim $.Site.Params.contentTypeName " ") "posts") (eq (trim $.Site.Params.contentTypeName " ") "")) }} - {{ $contentTypeName := cond $isntDefault (string $.Site.Params.contentTypeName) "posts" }} - {{ $paginator := .Paginate (where .Data.Pages "Type" $contentTypeName) }} - - {{ $blogIcons := "blog-icons.svg" | absURL }} - {{ range .Data.Pages }} + {{ $blogIcons := "blog-icons.svg" | absURL }} + {{ $isHomePage := eq .File.Dir "" }} + {{ $pages := cond ($isHomePage) (.Paginate .Site.Sections).Pages .Data.Pages }} + {{ range $pages }}