Browse Source

Joana changes to making pages

main
Simon Bowie 2 years ago
parent
commit
1fbed017fb
2 changed files with 14 additions and 2 deletions
  1. +2
    -2
      web/app/making.py
  2. +12
    -0
      web/app/templates/making.html

+ 2
- 2
web/app/making.py View File

@@ -21,7 +21,7 @@ def interface():
with open('content/section_5/on-interface-design.md', 'r') as f:
text = f.read()
text = markdown.markdown(text)
return render_template('text.html', text=text)
return render_template('making.html', text=text)

# route for databases essay
@making.route('/making/databases/')
@@ -29,4 +29,4 @@ def databases():
with open('content/section_5/on-combining-databases-and-books.md', 'r') as f:
text = f.read()
text = markdown.markdown(text)
return render_template('text.html', text=text)
return render_template('making.html', text=text)

+ 12
- 0
web/app/templates/making.html View File

@@ -0,0 +1,12 @@
<div class="making">
<a href="/contents/" class="arrow-back h1 text-left" title="back to index"> ⇽ </a>
{% extends "base.html" %}

{% block content %}

{{ text|safe }}

{% endblock %}

</div>

Loading…
Cancel
Save