mirror of
https://github.com/foo-dogsquared/website.git
synced 2025-01-31 04:58:26 +00:00
Fix the list template and the config
This commit is contained in:
parent
c5155fde00
commit
989397db23
@ -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"
|
||||
|
@ -1,12 +1,10 @@
|
||||
{{ define "main" }}
|
||||
{{ .Content }}
|
||||
<div class="posts">
|
||||
{{ $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 }}
|
||||
{{ $isHomePage := eq .File.Dir "" }}
|
||||
{{ $pages := cond ($isHomePage) (.Paginate .Site.Sections).Pages .Data.Pages }}
|
||||
{{ range $pages }}
|
||||
<div class="post on-list">
|
||||
<div class="post-header-wrapper">
|
||||
<h1 class="post-title">
|
||||
|
Loading…
Reference in New Issue
Block a user