Creator links, improved author listings
This commit is contained in:
3
data/creators.yml
Normal file
3
data/creators.yml
Normal file
@ -0,0 +1,3 @@
|
||||
Madison Rye Progress: https://wiki.post-self.ink/wiki/Madison_Rye_Progress
|
||||
Samantha Yule Fireheart: https://wiki.post-self.ink/wiki/Samantha_Yule_Fireheart
|
||||
"Krzysztof \"Tomash\" Drewniak": https://wiki.post-self.ink/wiki/User:Tomash
|
||||
@ -27,7 +27,7 @@
|
||||
- title: Coffee Leak
|
||||
url: /stories/coffee-leak
|
||||
authors:
|
||||
- Krzystof "Tomash" Drewniak
|
||||
- Krzysztof "Tomash" Drewniak
|
||||
type: short story
|
||||
years:
|
||||
- 2299
|
||||
@ -135,7 +135,7 @@
|
||||
- 2323
|
||||
characters:
|
||||
- Scout At The Party III
|
||||
description: The Party *never* stops. Therei s a dog in this one~
|
||||
description: The Party *never* stops. There is a dog in this one~
|
||||
|
||||
- title: To — in the days after her death
|
||||
url: /stories/to---in-the-days-after-her-death
|
||||
@ -340,6 +340,7 @@
|
||||
- 2346–2355
|
||||
characters:
|
||||
- The Bălan clade
|
||||
description: Selected correspondences of the Bălan clade systime 222–232.
|
||||
|
||||
##############
|
||||
# Motes Played
|
||||
@ -434,8 +435,9 @@
|
||||
collection: hashichzur
|
||||
authors:
|
||||
- Madison Rye Progress
|
||||
- Samantha Yule Fireheart (contributor)
|
||||
- Krzysztof "Tomash" Drewniak (contributor)
|
||||
contributors:
|
||||
- Samantha Yule Fireheart
|
||||
- Krzysztof "Tomash" Drewniak
|
||||
type: novel
|
||||
years:
|
||||
- 2403
|
||||
@ -476,7 +478,8 @@
|
||||
collection: hashichzur
|
||||
authors:
|
||||
- Madison Rye Progress
|
||||
- Samantha Yule Fireheart (contributor)
|
||||
contributors:
|
||||
- Samantha Yule Fireheart
|
||||
type: novel
|
||||
years:
|
||||
- 2401
|
||||
@ -572,7 +575,7 @@
|
||||
- 2401
|
||||
characters:
|
||||
- Scout At The Party V
|
||||
decription: It may stumble, but nothing stops The Party.
|
||||
description: It may stumble, but nothing stops The Party.
|
||||
|
||||
- title: A Well-Trained Eye
|
||||
url: https://marsh.post-self.ink/stories/a-well-trained-eye/
|
||||
|
||||
@ -4,7 +4,16 @@
|
||||
|
||||
<dl>
|
||||
{{- range $work := sort (where (where $works "collection" nil) "parent" nil) "title" "asc" }}
|
||||
<dt><a href="{{ $work.url }}">{{ $work.title }}</a> <span class="author">by {{ delimit $work.authors ", " }}</span></dt>
|
||||
<dt><a href="{{ $work.url }}">{{ $work.title }}</a> <span class="author">by
|
||||
{{ range $k, $author := $work.authors }}
|
||||
{{- if index hugo.Data.creators $author }}<a href="{{ index hugo.Data.creators $author }}" target="_blank">{{ $author | markdownify }}</a>{{ else }}{{ $author | markdownify }}{{ end }}
|
||||
{{- if ne (add $k 1) ($work.authors | len) }}, {{ end }}
|
||||
{{- end }}
|
||||
{{- range $contributor := $work.contributors }},
|
||||
{{ if index hugo.Data.creators $contributor }}<a href="{{ index hugo.Data.creators $contributor }}" target="_blank">{{ $contributor | markdownify }}</a>{{ else }}{{ $contributor | markdownify }}{{ end }}
|
||||
<small>(contributor)</small>
|
||||
{{- end }}
|
||||
</span></dt>
|
||||
<dd>
|
||||
{{ $work.description | markdownify }}
|
||||
<ul class="meta">
|
||||
@ -22,7 +31,16 @@
|
||||
<h3>Associated works</h3>
|
||||
<dl>
|
||||
{{- range $subwork := where $works "parent" "eq" $work.title }}
|
||||
<dt><a href="{{ $subwork.url }}">{{ $subwork.title }}</a> <span class="author">by {{ delimit $subwork.authors ", " }}</span></dt>
|
||||
<dt><a href="{{ $subwork.url }}">{{ $subwork.title }}</a> <span class="author">by
|
||||
{{ range $k, $author := $subwork.authors }}
|
||||
{{- if index hugo.Data.creators $author }}<a href="{{ index hugo.Data.creators $author }}" target="_blank">{{ $author | markdownify }}</a>{{ else }}{{ $author | markdownify }}{{ end }}
|
||||
{{- if ne (add $k 1) ($work.authors | len) }}, {{ end }}
|
||||
{{- end }}
|
||||
{{- range $contributor := $subwork.contributors }},
|
||||
{{ if index hugo.Data.creators $contributor }}<a href="{{ index hugo.Data.creators $contributor }}" target="_blank">{{ $contributor | markdownify }}</a>{{ else }}{{ $contributor | markdownify }}{{ end }}
|
||||
<small>(contributor)</small>
|
||||
{{- end }}
|
||||
</span></dt>
|
||||
<dd>
|
||||
{{ $subwork.description | markdownify }}
|
||||
<ul class="meta">
|
||||
@ -48,16 +66,25 @@
|
||||
|
||||
<dl>
|
||||
{{- range $work := where $works "collection" $collection.id }}
|
||||
<dt><a href="{{ $work.url }}">{{ $work.title }}</a> <span class="author">by {{ delimit $work.authors ", " }}</span></dt>
|
||||
<dt><a href="{{ $work.url }}">{{ $work.title }}</a> <span class="author">by
|
||||
{{ range $k, $author := $work.authors }}
|
||||
{{- if index hugo.Data.creators $author }}<a href="{{ index hugo.Data.creators $author }}" target="_blank">{{ $author | markdownify }}</a>{{ else }}{{ $author | markdownify }}{{ end }}
|
||||
{{- if ne (add $k 1) ($work.authors | len) }}, {{ end }}
|
||||
{{- end }}
|
||||
{{- range $contributor := $work.contributors }},
|
||||
{{ if index hugo.Data.creators $contributor }}<a href="{{ index hugo.Data.creators $contributor }}" target="_blank">{{ $contributor | markdownify }}</a>{{ else }}{{ $contributor | markdownify }}{{ end }}
|
||||
<small>(contributor)</small>
|
||||
{{- end }}
|
||||
</span></dt>
|
||||
<dd>
|
||||
{{ $work.description | markdownify }}
|
||||
<ul class="meta">
|
||||
<li><em>Type:</em> {{ $work.type }}</li>
|
||||
<li><em>Characters and dates:</em> <ul>
|
||||
<li><em>Characters and dates:</em>
|
||||
{{- range $k, $v := $work.years }}
|
||||
<li>{{ index $work.characters $k }} — {{ $v }}</li>
|
||||
{{- end }}
|
||||
</ul></li>
|
||||
{{ index $work.characters $k }} — {{ $v }}
|
||||
{{- if ne (add $k 1) ($work.years | len) }}, {{- end }}
|
||||
{{- end }}</li>
|
||||
{{- if $work.cw }}<li><em>CWs:</em> {{ $work.cw }}</li>{{- end }}
|
||||
{{- if $work.spoilers }}<li><em>Spoilers:</em> {{ $work.spoilers | markdownify }}</li>{{- end }}
|
||||
</ul>
|
||||
@ -66,7 +93,16 @@
|
||||
<h3>Associated works</h3>
|
||||
<dl>
|
||||
{{- range $subwork := where $works "parent" "eq" $work.title }}
|
||||
<dt><a href="{{ $subwork.url }}">{{ $subwork.title }}</a> <span class="author">by {{ delimit $subwork.authors ", " }}</span></dt>
|
||||
<dt><a href="{{ $subwork.url }}">{{ $subwork.title }}</a> <span class="author">by
|
||||
{{ range $k, $author := $subwork.authors }}
|
||||
{{- if index hugo.Data.creators $author }}<a href="{{ index hugo.Data.creators $author }}" target="_blank">{{ $author | markdownify }}</a>{{ else }}{{ $author | markdownify }}{{ end }}
|
||||
{{- if ne (add $k 1) ($work.authors | len) }}, {{ end }}
|
||||
{{- end }}
|
||||
{{- range $contributor := $subwork.contributors }},
|
||||
{{ if index hugo.Data.creators $contributor }}<a href="{{ index hugo.Data.creators $contributor }}" target="_blank">{{ $contributor | markdownify }}</a>{{ else }}{{ $contributor | markdownify }}{{ end }}
|
||||
<small>(contributor)</small>
|
||||
{{- end }}
|
||||
</span></dt>
|
||||
<dd>
|
||||
{{ $subwork.description | markdownify }}
|
||||
<ul class="meta">
|
||||
@ -90,6 +126,3 @@
|
||||
|
||||
</section>
|
||||
{{- end }}
|
||||
|
||||
<style>
|
||||
</style>
|
||||
|
||||
@ -200,6 +200,9 @@ 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;
|
||||
@ -211,13 +214,13 @@ main.story .author, main.story .character, main.story h3 {
|
||||
.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;
|
||||
text-align: left;
|
||||
font-size: 16pt;
|
||||
}
|
||||
.works h2 {
|
||||
|
||||
Reference in New Issue
Block a user