summaryrefslogtreecommitdiff
path: root/build-programs.py
diff options
context:
space:
mode:
authorKévin Le Gouguec <kevin.legouguec@gmail.com>2021-03-18 18:32:49 +0100
committerKévin Le Gouguec <kevin.legouguec@gmail.com>2021-03-18 18:32:49 +0100
commit86dc323c1a2d697a62d7b51dc3f0fb8161e81d78 (patch)
tree2c6949549cbed4273af1371879d94705eae3b85a /build-programs.py
parent0ffbcb12218886d6b24f22fc8edf1ef24c3c569e (diff)
downloadquatuorbellefeuille.com-86dc323c1a2d697a62d7b51dc3f0fb8161e81d78.tar.xz
Tweak program structure
So that we can add icons for duration and piece list.
Diffstat (limited to 'build-programs.py')
-rwxr-xr-xbuild-programs.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/build-programs.py b/build-programs.py
index 8d46bf0..2df6dbd 100755
--- a/build-programs.py
+++ b/build-programs.py
@@ -11,6 +11,7 @@ from sys import argv
PROGRAM_RE = re.compile('\n'.join((
r'NOM : (?P<name>[^\n]+)',
r'COMPOSITEURS : (?P<composers>[^\n]+)',
+ r'DUR[ÉE]E : (?P<duration>[^\n]+)',
'DESCRIPTION :',
'(?P<description>.+?)',
'MORCEAUX :',
@@ -30,8 +31,9 @@ BLOCK_TEMPLATE = '''\
<img class="button open" src="{imgdir}/chevron-down.svg">
<img class="button close" src="{imgdir}/chevron-up.svg">
</summary>
+<p class="info duration">{duration}</p>
{description}
-<ol class="pieces">
+<ol class="info pieces">
{pieces}
</ol>
</details>