diff --git a/layouts/_partials/work.html b/layouts/_partials/work.html deleted file mode 100644 index da2c30e..0000000 --- a/layouts/_partials/work.html +++ /dev/null @@ -1,36 +0,0 @@ -{{- $work := .work }} -{{- $works := .works }} -{{- $creators := .creators }} -{{- /* This is really ugly, but alas, it is precisely what we need. */ -}} -
{{ $work.title }} by - {{ range $k, $author := $work.authors }} - {{- if index $creators $author }}{{ $author | markdownify }}{{ else }}{{ $author | markdownify }}{{ end }} - {{- if ne (add $k 1) ($work.authors | len) }}, {{ end }} - {{- end }} - {{- range $contributor := $work.contributors }}, - {{ if index $creators $contributor }}{{ $contributor | markdownify }}{{ else }}{{ $contributor | markdownify }}{{ end }} - (contributor) - {{- end }} -
-
-{{ $work.description | markdownify }} - -{{- $subworks := where $works "parent" "eq" $work.title }} -{{- if gt (len $subworks) 0 }} -

Associated works

-
- {{- range $subwork := where $works "parent" "eq" $work.title }} - {{ partial "work.html" (dict "work" $subwork "works" $works "creators" $creators) }} - {{- end }} -
-{{- end }} -
diff --git a/layouts/_shortcodes/works.html b/layouts/_shortcodes/works.html deleted file mode 100644 index 2a823cd..0000000 --- a/layouts/_shortcodes/works.html +++ /dev/null @@ -1,22 +0,0 @@ -{{- $works := index hugo.Data (.Get "corpus") }} -{{- $collections := index hugo.Data (.Get "collections") }} -{{- $creators := index hugo.Data (.Get "creators") }} -
- -
- {{- range $work := sort (where (where $works "collection" nil) "parent" nil) "title" "asc" }} - {{ partial "work.html" (dict "work" $work "works" $works "creators" $creators) }} - {{- end }} -
- - {{- range $collection := $collections }} -

{{ $collection.title }}

- -
- {{- range $work := where $works "collection" $collection.id }} - {{ partial "work.html" (dict "work" $work "works" $works "creators" $creators) }} - {{- end }} -
- {{- end }} - -
diff --git a/static/css/post-self.css b/static/css/post-self.css index 78127a3..4fc3d01 100644 --- a/static/css/post-self.css +++ b/static/css/post-self.css @@ -200,36 +200,11 @@ main.story .author, main.story .character, main.story h3 { margin-left: 1.5rem; } -.works { - text-align: left; -} .works dt { - background: rgba(127, 127, 127, 0.2); background: linear-gradient(135deg, transparent 0.5rem, rgba(127, 127, 127, 0.2) 0) top left; - margin: 0; - padding: 0 0 0.25rem 1rem; - text-decoration: none; - position: relative; -} -.works .author { - font-size: 14pt; - font-style: italic; - opacity: 0.75; } .works dd { - background-color: rgba(127, 127, 127, 0.1); background: linear-gradient(315deg, transparent 0.5rem, rgba(127, 127, 127, 0.1) 0) bottom right; - margin: 0 0 2rem 0; - padding: 0.25rem 1rem 0.25rem 2rem; - font-size: 16pt; -} -.works h2 { - margin-top: 4rem; -} -.works .meta { - font-size: 14pt; - list-style-type: none; - padding-top: 0.5rem; } @media only screen and (max-width: 960px) { diff --git a/themes/maddybook b/themes/maddybook index 4ecbb59..818f87b 160000 --- a/themes/maddybook +++ b/themes/maddybook @@ -1 +1 @@ -Subproject commit 4ecbb595ec3c04ff6be7df297816c4054762308d +Subproject commit 818f87bddae72c2f8effb8a34f44c781969d45b1