From 1fde55b59a6b1c7457aef9ff8b2ecc7632f1bb46 Mon Sep 17 00:00:00 2001 From: desmukh Date: Tue, 27 Dec 2022 12:31:51 +0500 Subject: [PATCH] writing: style collective section and refactor --- content/writing/_index.md | 2 +- layouts/partials/collective-accordion.html | 20 ++++++++++++++++++++ layouts/partials/collective-section.html | 12 ++++++++++++ layouts/partials/essay-section.html | 1 - layouts/writing/list.html | 12 ++---------- 5 files changed, 35 insertions(+), 12 deletions(-) create mode 100644 layouts/partials/collective-accordion.html create mode 100644 layouts/partials/collective-section.html diff --git a/content/writing/_index.md b/content/writing/_index.md index e959cdf..8c86e7c 100644 --- a/content/writing/_index.md +++ b/content/writing/_index.md @@ -171,7 +171,7 @@ collective: blurb: as part of ecological writing collective publication: Out of the Woods puburl: https://twitter.com/out_woods - year: June 2020 + year: 2020 - title: "End/And: Feminization in Unending Times" blurb: as part of feminist film criticism platform publication: "Blind Field: A Journal of Cultural Inquiry" diff --git a/layouts/partials/collective-accordion.html b/layouts/partials/collective-accordion.html new file mode 100644 index 0000000..ca71346 --- /dev/null +++ b/layouts/partials/collective-accordion.html @@ -0,0 +1,20 @@ +
+
+
{{ .year }}
+
+
+
+ + + +
+
+
+
+
+ {{ range where .collective "year" .year }} +

{{ .title}}, {{ .blurb }} {{ .publication }}.

+ {{ end }} +
+
\ No newline at end of file diff --git a/layouts/partials/collective-section.html b/layouts/partials/collective-section.html new file mode 100644 index 0000000..2dd62e6 --- /dev/null +++ b/layouts/partials/collective-section.html @@ -0,0 +1,12 @@ +
+
+
+ +
COLLECTIVE WRITING
+
+
+ {{ partial "collective-accordion" (dict "collective" .Params.Collective "year" 2020)}} + {{ partial "collective-accordion" (dict "collective" .Params.Collective "year" 2017)}} +
+
+
\ No newline at end of file diff --git a/layouts/partials/essay-section.html b/layouts/partials/essay-section.html index d0a8072..e28dee9 100644 --- a/layouts/partials/essay-section.html +++ b/layouts/partials/essay-section.html @@ -10,7 +10,6 @@ {{ 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"}} \ No newline at end of file diff --git a/layouts/writing/list.html b/layouts/writing/list.html index dcdd643..e92046d 100644 --- a/layouts/writing/list.html +++ b/layouts/writing/list.html @@ -3,16 +3,8 @@
{{ partial "essay-section" . }} {{ partial "books-section" . }} -
-
COLLECTIVE WRITING
- {{ range .Params.Collective }} -
-

{{ .title}}, {{ .blurb }} {{ .publication }}.

-

Published in {{ .year }}

-
- {{ end }} -
+ {{ partial "collective-section" . }} + {{ partial "accordion-script"}}
{{ end }} \ No newline at end of file