writing: refactor essay section as partial
This commit is contained in:
parent
eede62d12d
commit
1ca227186a
16
layouts/partials/essay-section.html
Normal file
16
layouts/partials/essay-section.html
Normal file
@ -0,0 +1,16 @@
|
||||
<div class="writing-section">
|
||||
<div class="columns">
|
||||
<div class="column is-one-fifth" >
|
||||
<div class="thead">ESSAYS</div>
|
||||
</div>
|
||||
<div class="column">
|
||||
{{ partial "essay-accordion" (dict "essays" .Params.Essays "year" 2022)}}
|
||||
{{ partial "essay-accordion" (dict "essays" .Params.Essays "year" 2021)}}
|
||||
{{ partial "essay-accordion" (dict "essays" .Params.Essays "year" 2020)}}
|
||||
{{ partial "essay-accordion" (dict "essays" .Params.Essays "year" 2019)}}
|
||||
{{ partial "essay-accordion" (dict "essays" .Params.Essays "year" 2018)}}
|
||||
{{ partial "essay-accordion" (dict "essays" .Params.Essays "year" 2017)}}
|
||||
{{ partial "accordion-script"}}
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
@ -1,22 +1,7 @@
|
||||
{{ define "main"}}
|
||||
<div id="writing-page" class="section writing">
|
||||
<div>
|
||||
<div class="writing-section">
|
||||
<div class="columns">
|
||||
<div class="column is-one-fifth" >
|
||||
<div class="thead">ESSAYS</div>
|
||||
</div>
|
||||
<div class="column">
|
||||
{{ partial "essay-accordion" (dict "essays" .Params.Essays "year" 2022)}}
|
||||
{{ partial "essay-accordion" (dict "essays" .Params.Essays "year" 2021)}}
|
||||
{{ partial "essay-accordion" (dict "essays" .Params.Essays "year" 2020)}}
|
||||
{{ partial "essay-accordion" (dict "essays" .Params.Essays "year" 2019)}}
|
||||
{{ partial "essay-accordion" (dict "essays" .Params.Essays "year" 2018)}}
|
||||
{{ partial "essay-accordion" (dict "essays" .Params.Essays "year" 2017)}}
|
||||
{{ partial "accordion-script"}}
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
{{ partial "essay-section" . }}
|
||||
<div class="flex-row-books">
|
||||
<div class="thead">BOOKS</div>
|
||||
{{ range .Params.Books }}
|
||||
|
Reference in New Issue
Block a user