diff --git a/app/routes.py b/app/routes.py index 49799b8..c2a34fd 100644 --- a/app/routes.py +++ b/app/routes.py @@ -24,7 +24,13 @@ for capitulum in capitula: def llpsi(): return render_template('index.html', capitula=capitula) -@app.route('/llpsi/') +@app.route('/llpsi/') +def capitulum(capitulum_id): + filename = app.root_path + '/templates/Capitula/' + capitulum_id + '.html' + with open(filename, 'r') as file: + return render_template('Capitulum.html', capitulum_title=capitulum_id.replace('_', ' '), capitulum_content=file.read()) + +@app.route('/llpsi/pensa/') def pensum(pensum_id): filename = app.root_path + '/templates/Pensa/' + pensum_id + '.html' with open(filename, 'r') as file: diff --git a/app/static/css/LLPSI.css b/app/static/css/LLPSI.css index e4ccd38..bf583b9 100644 --- a/app/static/css/LLPSI.css +++ b/app/static/css/LLPSI.css @@ -30,10 +30,18 @@ h2 { display: inline; } -#pensum_content { +.pensum_content { font-size: 2vw; } +.capitulum_content { + font-size: 2vw; +} + +p.capitulum_content { + text-indent: 1em; +} + span { display: inline-block; } diff --git a/app/templates/Pensum_cloze.html b/app/templates/Pensum_cloze.html index 27954dd..cc5a194 100644 --- a/app/templates/Pensum_cloze.html +++ b/app/templates/Pensum_cloze.html @@ -7,7 +7,7 @@