Ver código fonte

changing structure of conversations and making

main
Simon Bowie 1 ano atrás
pai
commit
84ba48768a
6 arquivos alterados com 29 adições e 5 exclusões
  1. +2
    -2
      web/app/conversations.py
  2. +3
    -3
      web/app/making.py
  3. +0
    -0
      web/app/templates/conversations-overview.html
  4. +12
    -0
      web/app/templates/conversations-text.html
  5. +0
    -0
      web/app/templates/making-overview.html
  6. +12
    -0
      web/app/templates/making-text.html

+ 2
- 2
web/app/conversations.py Ver arquivo

@@ -15,7 +15,7 @@ def index():
with open('content/section_2/conversations.md', 'r') as f:
text = f.read()
text = markdown.markdown(text)
return render_template('conversations.html', text=text)
return render_template('conversations-overview.html', text=text)

# route for Martha Gowans page
@conversations.route('/conversations/martha')
@@ -23,4 +23,4 @@ def martha():
with open('content/section_2/I-Martha-gowans.md', 'r') as f:
text = f.read()
text = markdown.markdown(text)
return render_template('conversations.html', text=text)
return render_template('conversations-text.html', text=text)

+ 3
- 3
web/app/making.py Ver arquivo

@@ -16,7 +16,7 @@ def index():
with open('content/section_3/making.md', 'r') as f:
text = f.read()
text = markdown.markdown(text)
return render_template('making.html', text=text)
return render_template('making-overview.html', text=text)

# route for interface design essay
@making.route('/making/interface/')
@@ -24,7 +24,7 @@ def interface():
with open('content/section_3/on-interface-design.md', 'r') as f:
text = f.read()
text = markdown.markdown(text)
return render_template('making.html', text=text)
return render_template('making-text.html', text=text)

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

web/app/templates/conversations.html → web/app/templates/conversations-overview.html Ver arquivo


+ 12
- 0
web/app/templates/conversations-text.html Ver arquivo

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

{% block content %}

{{ text|safe }}

{% endblock %}

</div>

web/app/templates/making.html → web/app/templates/making-overview.html Ver arquivo


+ 12
- 0
web/app/templates/making-text.html Ver arquivo

@@ -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>

Carregando…
Cancelar
Salvar