diff options
Diffstat (limited to 'layouts/partials/classic_index.html')
-rwxr-xr-x | layouts/partials/classic_index.html | 42 |
1 files changed, 42 insertions, 0 deletions
diff --git a/layouts/partials/classic_index.html b/layouts/partials/classic_index.html new file mode 100755 index 0000000..64b88bb --- /dev/null +++ b/layouts/partials/classic_index.html @@ -0,0 +1,42 @@ +<!-- Partial for classic index page --> + +<div id="main"> + <div id="content"> + <div class="blog-index"> + {{ $paginator := .Paginate (where .Data.Pages "Type" "post") }} + {{ range $paginator.Pages }} + <article> + + {{ .Scratch.Set "isHome" true }} + {{ partial "post_header.html" . }} + + {{ if eq .Site.Params.truncate false }} + {{ .Content }} + {{ else if .Description }} + {{ .Description }} + <footer> + <a href="{{ .Permalink }}" rel="full-article">{{ with .Site.Params.continueReadingText }}{{ . | markdownify }}{{ else }}Read On →{{ end }}</a> + </footer> + {{ else }} + <p>{{ .Summary }}</p> + + {{ if .Truncated }} + <footer> + <a href="{{ .Permalink }}" rel="full-article">{{ with .Site.Params.continueReadingText }}{{ . | markdownify }}{{ else }}Read On →{{ end }}</a> + </footer> + {{ end }} + + {{ end }} + + </article> + {{ end }} + <!-- {{ template "_internal/pagination.html" . }} default pagination --> + {{ partial "pagination.html" . }} <!-- use custom pagination --> + + </div> + + {{ partial "sidebar.html" . }} <!-- sidebar --> + </div> + </div> + + {{ partial "footer.html" . }} <!-- footer -->
\ No newline at end of file |