initial commit
This commit is contained in:
commit
ab7f027048
86 changed files with 4742 additions and 0 deletions
31
layouts/_default/list.html
Normal file
31
layouts/_default/list.html
Normal file
|
@ -0,0 +1,31 @@
|
|||
{{ define "stylesheet" }}{{ $scss := resources.Get "scss/_default/list.scss" }}{{ $style := $scss | resources.ToCSS }}
|
||||
<link rel="stylesheet" href="{{ $style.Permalink }}" type="text/css" media="screen" />
|
||||
{{ end }}
|
||||
|
||||
{{ define "main" }}
|
||||
<main class="container">
|
||||
<section>
|
||||
<header>
|
||||
<h1>{{ .Params.heading }}</h1>
|
||||
<span class="subtitle">{{.Params.subheading}}</span>
|
||||
</header>
|
||||
{{ .Content }}
|
||||
</section>
|
||||
<section class="section-articles">
|
||||
{{ range .Pages }}
|
||||
<a href="{{ .Permalink }}">
|
||||
<article>
|
||||
<h1>{{ .Title }}</h1>
|
||||
<p class="meta" title="{{ .Date.Format "2 Jan 2006, 15:04 MST" }}"><span class="date">{{ .Date.Format "2 January 2006" }}</span> <span class="author">by {{ .Params.author }}</span></p>
|
||||
{{ with .Description }}
|
||||
<p>{{ . }}</p>
|
||||
{{ end }}
|
||||
{{ with .Params.featured_image }}
|
||||
<img src="{{ . | relURL }}">
|
||||
{{ end }}
|
||||
</article>
|
||||
</a>
|
||||
{{ end }}
|
||||
</section>
|
||||
</main>
|
||||
{{ end }}
|
Loading…
Add table
Add a link
Reference in a new issue