forked from autonomic-cooperative/sophie-lewis-hugo
writing: add accordion functionality
This commit is contained in:
@ -1,6 +1,8 @@
|
||||
<h2>{{ .year }}</h2>
|
||||
{{ range where .essays "year" .year }}
|
||||
<div class="writing-item">
|
||||
<p>{{ .year }}. <a href={{ .url }}><strong>{{ .title }}</strong></a>, <em>{{ .publication }}</em>, {{ .date }}.</p>
|
||||
</div>
|
||||
{{ end }}
|
||||
<button class="accordion">{{ .year }}</button>
|
||||
<div class="acc-panel">
|
||||
{{ range where .essays "year" .year }}
|
||||
<div class="writing-item">
|
||||
<p><a href={{ .url }}><strong>{{ .title }}</strong></a>, <em>{{ .publication }}</em>, {{ .date }}.</p>
|
||||
</div>
|
||||
{{ end }}
|
||||
</div>
|
||||
Reference in New Issue
Block a user