Created
April 15, 2016 08:53
-
-
Save jbub/407f84823e83db6de917569be6d9364f to your computer and use it in GitHub Desktop.
Hugo ghostwriter theme index layout override
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{{ 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