Add separate code page with link to private git server.

This commit is contained in:
Ian Adam Naval 2014-05-22 02:15:31 -07:00
parent 85eaec2d92
commit 998228db84
3 changed files with 18 additions and 2 deletions

View File

@ -15,5 +15,11 @@ def labs():
return render_template('labs.html')
@app.route('/code')
def code():
return render_template('code.html')
if __name__ == '__main__':
app.run(debug=True)
app.run(debug=True)

View File

@ -22,7 +22,7 @@
<li><a href="{{ url_for('home') }}#portfolio">Portfolio</a></li>
<li><a href="{{ url_for('home') }}#contact">Contact</a></li>
<li><a href="{{ url_for('labs') }}">Labs</a></li>
<li><a href="http://www.github.com/ianonavy">Code</a></li>
<li><a href="{{ url_for('code') }}">Code</a></li>
</ul>
</nav>
</header>

10
src/templates/code.html Normal file
View File

@ -0,0 +1,10 @@
{% extends "base.html" %}
{% block title %} | Labs{% endblock %}
{% block main %}
<div class="section">
<h2>Code</h2>
<p>You can find samples of my code on <a target="_blank" href="http://github.com/ianonavy">my GitHub</a> and <a target="_blank" href="https://git.ianonavy.com/public">my private Git server</a>.</p>
</div>
{% endblock main %}