From 62800c066653c7da132d36bfb1022d1a7c2a016c Mon Sep 17 00:00:00 2001 From: sValo Date: Sun, 6 Mar 2016 01:22:35 +0100 Subject: [PATCH] Completes table code considering the order of fields --- pelicanconf.py | 12 ++++++----- themes/nest/templates/tables.html | 36 ++++++++++++++++++++----------- 2 files changed, 31 insertions(+), 17 deletions(-) diff --git a/pelicanconf.py b/pelicanconf.py index 97727a1..35ff1fd 100644 --- a/pelicanconf.py +++ b/pelicanconf.py @@ -60,10 +60,12 @@ PLUGINS = ['langmenu'] MD_EXTENSIONS = ['toc'] TALKS = { - 1: { 'Relat@' : 'ciccio', - 'Titolo': 'quanto è bello l''ha''ing', - 'Abstract': 'dio ''ane quanto è bello l''asinello', - 'Stanza': 'Quella piccola', - 'Orario': '19:00 - 6:00', + u'1': { u'Speaker' : u'ciccio', + u'Title': u'quanto è bello l''ha''ing', + u'Abstract': u'dio \'ane quanto è bello l''asinello', + u'Room': u'Quella piccola', + u'Schedule': u'19:00 - 6:00', + u'Day':'Venerday', } } + diff --git a/themes/nest/templates/tables.html b/themes/nest/templates/tables.html index 3449f62..3e732b1 100644 --- a/themes/nest/templates/tables.html +++ b/themes/nest/templates/tables.html @@ -5,14 +5,17 @@ # + + Giorno + Orario - Relat + Titolo - Titolo + Relatore/Relatrice/i Abstract @@ -20,22 +23,31 @@ Stanza - - {{ TALKS }} - - {% for talk_num, talk in TALKS %} + {% for talk_num, talk in TALKS.iteritems() %} {# Write description of the talk #} - talk_num: {{ talk_num }} - {% for col, cont in talk %} - - {{ talk.col }} - - {% endfor %} + + {{ talk.Day }} + + + {{ talk.Schedule }} + + + {{ talk.Title }} + + + {{ talk.Speaker }} + + + {{ talk.Abstract }} + + + {{ talk.Room }} + {% endfor %}