Initial commit
This commit is contained in:
28
layouts/projects/list.html
Normal file
28
layouts/projects/list.html
Normal file
@@ -0,0 +1,28 @@
|
||||
{{ define "header" }}
|
||||
{{ partialCached "header.html" . }}
|
||||
{{ end }}
|
||||
|
||||
{{ define "main" }}
|
||||
<main class="site-main section-inner thin animated fadeIn faster">
|
||||
<h1>{{ .Title }}</h1>
|
||||
{{- if .Content }}
|
||||
<div class="content">
|
||||
{{ .Content }}
|
||||
</div>
|
||||
{{- end }}
|
||||
{{- range .Pages }}
|
||||
<article class="content" style="border-bottom: 2px solid $text;{{/* TODO move to stylesheet */}}">
|
||||
<h2 class="title">{{.Title}}</h2>
|
||||
<ul>
|
||||
{{ with .Params.source }}<li><a href="{{ . }}">Source code</a></li>{{ end }}
|
||||
{{ with .Params.demo }}<li><a href="{{ . }}">Demo</a></li>{{ end }}
|
||||
</ul>
|
||||
<p>{{.Content}}</p>
|
||||
</article>
|
||||
{{- end }}
|
||||
</main>
|
||||
{{ end }}
|
||||
|
||||
{{ define "footer" }}
|
||||
{{ partialCached "footer.html" . }}
|
||||
{{ end }}
|
||||
Reference in New Issue
Block a user