initial commit

This commit is contained in:
Robert Kaussow 2020-01-12 15:33:02 +01:00
commit b710cfda80
98 changed files with 9669 additions and 0 deletions

28
layouts/posts/list.html Normal file
View file

@ -0,0 +1,28 @@
{{ define "main" }}
{{ $dateFormat := default "January 2, 2006" .Site.Params.GeekdocDateFormat }}
{{ $paginator := .Paginate (where .Pages "Params.hidden" "ne" true) }}
{{ range sort .Paginator.Pages }}
<article class="gdoc-markdown gdoc-post">
<header>
<h1 class="gdoc-post__title">
<a href="{{ .RelPermalink }}">{{ .Title }}</a>
</h1>
</header>
<h5>
<strong>{{ .Date.Format $dateFormat }}</strong>
</h5>
<section>
{{ .Summary }}
{{ if .Truncated }}
<a class="gdoc-post__readmore" title="Read full post" href="{{ .RelPermalink }}">
Read more
</a>
{{ end }}
</section>
</article>
{{ end }}
<!-- TODO: FIXME -->
{{ template "_internal/pagination.html" . }}
{{ end }}

10
layouts/posts/single.html Normal file
View file

@ -0,0 +1,10 @@
{{ define "main" }}
{{ $dateFormat := default "January 2, 2006" .Site.Params.GeekdocDateFormat }}
<article class="gdoc-markdown">
<h1>{{ .Title }}</h1>
<h5>
<strong>{{ .Date.Format $dateFormat }}</strong>
</h5>
{{ .Content }}
</article>
{{ end }}