mirror of
https://github.com/foo-dogsquared/website.git
synced 2025-01-31 07:58:02 +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]
|
[params.blog.contact.gitlab]
|
||||||
name = "GitLab"
|
name = "GitLab"
|
||||||
link = "https://github.com/foo-dogsquared"
|
link = "https://gitlab.com/foo-dogsquared/"
|
||||||
|
|
||||||
[params.blog.contact.twitter]
|
[params.blog.contact.twitter]
|
||||||
name = "Twitter"
|
name = "Twitter"
|
||||||
|
@ -1,12 +1,10 @@
|
|||||||
{{ define "main" }}
|
{{ define "main" }}
|
||||||
{{ .Content }}
|
{{ .Content }}
|
||||||
<div class="posts">
|
<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 }}
|
{{ $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 on-list">
|
||||||
<div class="post-header-wrapper">
|
<div class="post-header-wrapper">
|
||||||
<h1 class="post-title">
|
<h1 class="post-title">
|
||||||
|
Loading…
Reference in New Issue
Block a user