Fix talk date formatting

This commit is contained in:
Jez Cope 2020-10-21 17:11:57 +01:00
parent 7363381fb8
commit 9fc89384fe
4 changed files with 74 additions and 63 deletions

View File

@ -14,6 +14,7 @@ nbconvert = "~=5.6.1"
coconut = "*"
pygments = "*"
ruamel-yaml = "*"
arrow = "*"
[dev-packages]
aiohttp = "*"

9
Pipfile.lock generated
View File

@ -1,7 +1,7 @@
{
"_meta": {
"hash": {
"sha256": "e1a4f3850f44220cfbca93a8daea410277e5fa709b4fdb053fd92df615f6b258"
"sha256": "c334e4e5876ca317665ba2ca58a9dcb536b1cce0ae281654e20f9356551673cc"
},
"pipfile-spec": 6,
"requires": {},
@ -34,6 +34,13 @@
],
"version": "==20.1.0"
},
"arrow": {
"hashes": [
"sha256:e098abbd9af3665aea81bdd6c869e93af4feb078e98468dd351c383af187aac5",
"sha256:ff08d10cda1d36c68657d6ad20d74fbea493d980f8b2d45344e00d6ed2bf6ed4"
],
"version": "==0.17.0"
},
"attrs": {
"hashes": [
"sha256:26b54ddbbb9ee1d34d5d3668dd37d6cf74990ab23c828c2888dccdceee395594",

View File

@ -9,7 +9,7 @@ data: data/talks.yaml
Here is a selection of talks that I've given.
{{% template %}}
<%! import datetime %>
<%! import arrow %>
<table>
<thead>
<tr>
@ -22,7 +22,8 @@ Here is a selection of talks that I've given.
<tr>
<td>
% if 'date' in talk:
${talk['date'].strftime('%a')}
<% date = arrow.get(talk['date']) %>
${date.format('ddd d MMM YYYY')}
% endif
</td>
<td>

View File

@ -1,71 +1,73 @@
attrs==19.3.0
Babel==2.8.0
backcall==0.1.0
bleach==3.1.0
-i https://pypi.python.org/simple
argon2-cffi==20.1.0
arrow==0.17.0
attrs==20.2.0; python_version >= '2.7' and python_version not in '3.0, 3.1, 3.2, 3.3'
babel==2.8.0; python_version >= '2.7' and python_version not in '3.0, 3.1, 3.2, 3.3'
backcall==0.2.0
bleach==3.2.1; python_version >= '2.7' and python_version not in '3.0, 3.1, 3.2, 3.3, 3.4'
blinker==1.4
certifi==2019.11.28
certifi==2020.6.20
cffi==1.14.3
chardet==3.0.4
cloudpickle==1.2.2
cloudpickle==1.6.0; python_version >= '3.5'
coconut==1.4.3
cPyparsing==2.4.5.0.1.1
decorator==4.4.1
defusedxml==0.6.0
docutils==0.16
doit==0.32.0
entrypoints==0.3
idna==2.8
importlib-metadata==1.4.0
ipykernel==5.1.3
ipython==7.11.1
cpyparsing==2.4.5.0.1.1; platform_python_implementation == 'CPython'
decorator==4.4.2
defusedxml==0.6.0; python_version >= '2.7' and python_version not in '3.0, 3.1, 3.2, 3.3, 3.4'
docutils==0.16; python_version >= '2.7' and python_version not in '3.0, 3.1, 3.2, 3.3, 3.4'
doit==0.33.1; python_version >= '3.5'
entrypoints==0.3; python_version >= '2.7'
idna==2.10; python_version >= '2.7' and python_version not in '3.0, 3.1, 3.2, 3.3'
importlib-metadata==2.0.0; python_version < '3.8'
ipykernel==5.3.4; python_version >= '3.5'
ipython-genutils==0.2.0
jedi==0.15.2
Jinja2==2.10.3
ipython==7.18.1; python_version >= '3.7'
jedi==0.17.2; python_version >= '2.7' and python_version not in '3.0, 3.1, 3.2, 3.3, 3.4'
jinja2==2.11.2
jsonschema==3.2.0
jupyter-client==5.3.4
jupyter-core==4.6.1
Logbook==1.5.3
lxml==4.4.2
Mako==1.1.0
Markdown==3.1.1
MarkupSafe==1.1.1
jupyter-client==6.1.7; python_version >= '3.5'
jupyter-core==4.6.3; python_version >= '2.7' and python_version not in '3.0, 3.1, 3.2, 3.3, 3.4'
lxml==4.6.1; python_version >= '2.7' and python_version not in '3.0, 3.1, 3.2, 3.3, 3.4'
mako==1.1.3; python_version >= '2.7' and python_version not in '3.0, 3.1, 3.2, 3.3'
markdown==3.1.1
markupsafe==1.1.1; python_version >= '2.7' and python_version not in '3.0, 3.1, 3.2, 3.3'
mistune==0.8.4
more-itertools==8.1.0
natsort==7.0.0
natsort==7.0.1; python_version >= '3.4'
nbconvert==5.6.1
nbformat==5.0.3
Nikola==8.0.3
notebook==6.0.2
nbformat==5.0.8; python_version >= '3.5'
nikola==8.1.1
notebook==6.1.4
packaging==20.4; python_version >= '2.7' and python_version not in '3.0, 3.1, 3.2, 3.3'
pandocfilters==1.4.2
parso==0.5.2
pexpect==4.7.0
parso==0.7.1; python_version >= '2.7' and python_version not in '3.0, 3.1, 3.2, 3.3'
pexpect==4.8.0; sys_platform != 'win32'
pickleshare==0.7.5
piexif==1.1.3
Pillow==7.0.0
prometheus-client==0.7.1
prompt-toolkit==3.0.2
ptyprocess==0.6.0
Pygments==2.5.2
pyinotify==0.9.6
pyrsistent==0.15.7
PyRSS2Gen==1.1
python-dateutil==2.8.1
python-magic==0.4.15
pytz==2019.3
pyzmq==18.1.1
requests==2.22.0
ruamel.yaml==0.16.5
ruamel.yaml.clib==0.2.0
s3cmd==2.0.2
Send2Trash==1.5.0
six==1.14.0
terminado==0.8.3
piexif==1.1.3; python_version >= '2.7' and python_version not in '3.0, 3.1, 3.2, 3.3, 3.4'
pillow==8.0.0; python_version >= '3.6'
prometheus-client==0.8.0
prompt-toolkit==3.0.8; python_version >= '3'
ptyprocess==0.6.0; os_name != 'nt'
pycparser==2.20; python_version >= '2.7' and python_version not in '3.0, 3.1, 3.2, 3.3'
pygments==2.7.1
pyinotify==0.9.6; sys_platform == 'linux'
pyparsing==2.4.7; python_version >= '2.6' and python_version not in '3.0, 3.1, 3.2, 3.3'
pyrsistent==0.17.3; python_version >= '3.5'
pyrss2gen==1.1
python-dateutil==2.8.1; python_version >= '2.7' and python_version not in '3.0, 3.1, 3.2, 3.3'
pytz==2020.1
pyzmq==19.0.2; python_version >= '2.7' and python_version not in '3.0, 3.1, 3.2, 3.3'
requests==2.24.0; python_version >= '2.7' and python_version not in '3.0, 3.1, 3.2, 3.3, 3.4'
ruamel-yaml==0.16.12
ruamel.yaml.clib==0.2.2; python_version < '3.9' and platform_python_implementation == 'CPython'
send2trash==1.5.0
six==1.15.0; python_version >= '2.7' and python_version not in '3.0, 3.1, 3.2, 3.3'
terminado==0.9.1; python_version >= '3.6'
testpath==0.4.4
tornado==6.0.3
traitlets==4.3.3
Unidecode==1.1.1
urllib3==1.25.7
wcwidth==0.1.8
tornado==6.0.4; python_version >= '3.5'
traitlets==5.0.5; python_version >= '3.7'
unidecode==1.1.1
urllib3==1.25.11; python_version >= '2.7' and python_version not in '3.0, 3.1, 3.2, 3.3, 3.4' and python_version < '4'
wcwidth==0.2.5
webencodings==0.5.1
ws4py==0.5.1
Yapsy==1.12.2
zipp==1.0.0
yapsy==1.12.2
zipp==3.3.1; python_version >= '3.6'