Skip to content

Commit

Permalink
Duplicate list as index to see if it will work
Browse files Browse the repository at this point in the history
  • Loading branch information
Alex Ezell committed Apr 24, 2022
1 parent abb88d6 commit b28f033
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 1 deletion.
20 changes: 20 additions & 0 deletions layouts/_default/index.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
{{ define "main" }}
<div class="posts h-feed">

{{ $paginator := .Paginate (where .Data.Pages.ByDate.Reverse "Type" "post") (index .Site.Params "archive-paginate" | default 25) }}
{{ range $paginator.Pages }}

<div class="post">
<a href="{{ .Permalink }}" class="post-date u-url"><time class="dt-published" datetime="{{ .Date.Format "2006-01-02 15:04:05 -0700" }}">{{ .Date.Format "2 Jan 2006" }}</time></a>
{{ if .Title }}
<h1 class="page-title"><a href="{{ .Permalink }}">{{ .Title }}</a></h1>
{{ end }}
<div class="e-content">
{{ .Content }}
</div>
</div>

{{ end }}

</div>
{{ end }}
2 changes: 1 addition & 1 deletion plugin.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"version": "1.0",
"version": "1.0.1",
"title": "Vapor1994 theme",
"description": "Changes your blog to use the Vapor1994 theme."
}

0 comments on commit b28f033

Please sign in to comment.