1234567891011121314151617181920212223242526272829303132333435363738 |
- {{ partial "header.html" . }}
- <main id="content" role="main">
- <div class="postindex">
- {{ range where .Paginator.Pages "Type" "posts" }}
- <article class="h-entry post-text" itemscope itemtype="http://schema.org/Blog">
- <header>
- <h1 class="p-name entry-title" itemprop="headline">
- <a href="{{ .RelPermalink }}" class="u-url">{{ .Title }}</a>
- </h1>
- </header>
- <div class="e-content entry-content">
- {{ .Content }}
- </div>
- <small class="dateline">Posted: <time class="published dt-published" itemprop="datePublished" datetime="{{ .Date.Format "2006-01-02" }}">{{ .Date.Format "2006-01-02" }}</time></small>
- | <small class="commentline"><a href="{{ .RelPermalink }}#isso-thread">Comments</a></small>
- </article>
- </article>
- {{ end }}
- </div>
- <nav class="postindexpager">
- <ul class="pager clearfix">
- {{ if .Paginator.HasPrev }}
- <li class="previous">
- <a href="{{ .Paginator.Prev.URL }}">← Newer posts</a>
- </li>
- {{ end }}
- {{ if .Paginator.HasNext }}
- <li class="next">
- <a href="{{ .Paginator.Next.URL }}">Older posts →</a>
- </li>
- {{ end }}
- </ul>
- </nav>
- </main>
- {{ partial "footer.html" . }}
|