ソースを参照

changing structure of conversations and making

main
Simon Bowie 1年前
コミット
84ba48768a
6個のファイルの変更29行の追加5行の削除
  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 ファイルの表示

@@ -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 ファイルの表示

@@ -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 ファイルの表示


+ 12
- 0
web/app/templates/conversations-text.html ファイルの表示

@@ -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 ファイルの表示


+ 12
- 0
web/app/templates/making-text.html ファイルの表示

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

読み込み中…
キャンセル
保存