Added Near, Under, Far, new category, and urls to composition pages.
This commit is contained in:
parent
1a58b23df6
commit
274f2efb2e
@ -12,8 +12,12 @@ class CompositionListing extends BaseWebViewComponent {
|
||||
this.composition = composition
|
||||
}
|
||||
|
||||
String renderDate() {
|
||||
String getCompositionDate() {
|
||||
composition.date.format(DateTimeFormatter.ofPattern('yyyy'))
|
||||
}
|
||||
|
||||
String getCompositionUrl() {
|
||||
'/compositions/' + composition.slug
|
||||
}
|
||||
|
||||
}
|
||||
|
@ -3,7 +3,7 @@ package com.jessebrault.site.composition
|
||||
---
|
||||
<div class="composition-listing">
|
||||
<div class="info-row-1">
|
||||
<h4 class="title">$composition.title</h4>
|
||||
<h4 class="title"><a href={compositionUrl}>$composition.title</a></h4>
|
||||
<WhenNotNull item={composition.subTitle} render={<h5 class="sub-title">$it</h5>} />
|
||||
<WhenNotNull item={composition.version} render={<span class="version">$it</span>} />
|
||||
</div>
|
||||
@ -14,6 +14,6 @@ package com.jessebrault.site.composition
|
||||
<div class="info-row-3"><span class="short-info">$composition.shortInfo</span></div>
|
||||
} />
|
||||
<div class="date-column">
|
||||
<span class="date">${renderDate()}</span>
|
||||
<span class="date">$compositionDate</span>
|
||||
</div>
|
||||
</div>
|
||||
|
@ -15,7 +15,7 @@ build {
|
||||
globals {
|
||||
siteTagLine = 'Conductor and Composer'
|
||||
menuItems = ['Biography', 'Compositions']
|
||||
compositionCategories = ['Chamber']
|
||||
compositionCategories = ['Chamber', 'Solo']
|
||||
}
|
||||
objectFactoryBuilder.configure {
|
||||
configureRegistry {
|
||||
|
10
texts/compositions/NearUnderFar.md
Normal file
10
texts/compositions/NearUnderFar.md
Normal file
@ -0,0 +1,10 @@
|
||||
---
|
||||
title: Near, Under, Far
|
||||
slug: near-under-far
|
||||
instrumentation: For solo cello.
|
||||
shortInfo: Based on <em>Die blaue Eiche</em> by Luc Tuymans.
|
||||
date: 2021-03-01
|
||||
categories:
|
||||
- Solo
|
||||
---
|
||||
Information about _Near, Under, Far_.
|
Loading…
Reference in New Issue
Block a user