Fix missing index.html links on frontpage

This commit is contained in:
Thomas Schwery 2018-11-12 20:16:41 +01:00
parent 6061b7a539
commit eb90b5ebdf

12
layouts/index.html Normal file
View file

@ -0,0 +1,12 @@
{{ partial "header.html" . }}
<main role="main">
{{ range (where .Data.Pages ".Params.hidefromhome" "!=" "true") }}
<article itemscope itemtype="http://schema.org/Blog">
<h2 class="entry-title" itemprop="headline"><a href="{{ .RelPermalink }}index.html">{{ .Title }}</a></h2>
<span class="entry-meta"><time itemprop="datePublished" datetime="{{ .Date.Format "2006-01-02" }}">{{ .Date.Format "January 02, 2006" }}</time></span>
</article>
{{ end }}
</main>
{{ partial "footer.html" . }}