Skip to content

Instantly share code, notes, and snippets.

@cfjedimaster
Created May 31, 2016 16:16
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save cfjedimaster/7bfe77aeb847b9e4ca6fe91c064375f8 to your computer and use it in GitHub Desktop.
Save cfjedimaster/7bfe77aeb847b9e4ca6fe91c064375f8 to your computer and use it in GitHub Desktop.
<section id="main">
{{ $paginator := .Paginate ((first 50 (where .Site.Pages "Type" "post"))) }}
{{ range $paginator.Pages }}
<article class="article article-type-post" itemscope="" itemprop="blogPost">
<div class="article-inner">
{{ if and (isset .Params "banner") (not (eq .Params.banner "")) }}
<a href="{{ .Permalink }}" itemprop="url">
<img src="https://static.raymondcamden.com{{ .Params.banner }}" class="article-banner"> {{ end }}
</a>
{{ partial "article_header" . }}
<div class="article-entry" itemprop="articleBody">
<p>
{{ printf "%s" .Summary | markdownify }}
<br>
</p>
<p class="article-more-link">
<a href="{{ .Permalink }}">
{{with .Site.Data.l10n.articles.read_more}}{{.}}{{end}}
</a>
</p>
</div>
{{ partial "article_footer" . }}
</div>
</article>
{{ end }}
{{ partial "pagination" . }}
</section>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment