Skip to content

Instantly share code, notes, and snippets.

@jbub
Created April 15, 2016 08:53
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 jbub/407f84823e83db6de917569be6d9364f to your computer and use it in GitHub Desktop.
Save jbub/407f84823e83db6de917569be6d9364f to your computer and use it in GitHub Desktop.
Hugo ghostwriter theme index layout override
{{ partial "header.html" . }}
<div id="post-index" class="container" itemscope="" itemtype="http://schema.org/Blog">
{{ if .Site.Params.intro }}
<header class="post-header">
<h1 class="post-title" itemprop="name">{{ .Site.Params.headline }}</h1>
<p>{{ .Site.Params.description }}</p>
</header>
{{ end }}
<ol class="post-list">
{{ $pag := .Paginate (where .Data.Pages "Type" "post") 3 }}
{{ range $pag.Pages }}
{{ partial "post-stub.html" . }}
{{ end }}
</ol>
<div class="post-navigation">
{{ partial "pagination.html" . }}
</div>
</div>
{{ partial "footer.html" . }}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment