forked from autonomic-cooperative/sophie-lewis-hugo
writing: refactor content as yaml and new layout
This commit is contained in:
39
layouts/writing/list.html
Normal file
39
layouts/writing/list.html
Normal file
@ -0,0 +1,39 @@
|
||||
{{ define "main"}}
|
||||
<div id="content" class="section writing">
|
||||
<div>
|
||||
<div class="writing-section">
|
||||
<div class="thead">ESSAYS</div>
|
||||
{{ range .Params.Essays }}
|
||||
<div class="writing-item">
|
||||
<p>{{ .year }}. <a href={{ .url }}><strong>{{ .title }}</strong></a>, <em>{{ .publication }}</em>, {{ .date }}.</p>
|
||||
</div>
|
||||
{{ end }}
|
||||
</div>
|
||||
<div class="flex-row-books">
|
||||
<div class="thead">BOOKS</div>
|
||||
{{ range .Params.Books }}
|
||||
<div class="book-cell">
|
||||
<h6>{{ .title }}</h6>
|
||||
<div class="book-cover">
|
||||
<a href={{ .path }}>
|
||||
<img src={{ .imgsrc }} alt={{ .title }}>
|
||||
</a>
|
||||
</div>
|
||||
<p class="book-stats"><i><a href={{ .path }}>Details</a></i></p>
|
||||
<p class="book-stats"><b>{{ .body }}</b></p>
|
||||
</div>
|
||||
{{ end}}
|
||||
</div>
|
||||
<div class="writing-section">
|
||||
<div class="thead">COLLECTIVE WRITING</div>
|
||||
{{ range .Params.Collective }}
|
||||
<div class="writing-item">
|
||||
<p><strong><a href={{ .url }}>{{ .title}}</a></strong>, {{ .blurb }} <em><a
|
||||
href={{ .puburl}}>{{ .publication }}</a></em>.</p>
|
||||
<p><i>Published in {{ .year }}</i></p>
|
||||
</div>
|
||||
{{ end }}
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
{{ end }}
|
Reference in New Issue
Block a user