Updated website to support a snippet archive.
This commit is contained in:
parent
9224212d49
commit
ef7818e10e
12 changed files with 66 additions and 24 deletions
17
templates/snippets/index.html
Normal file
17
templates/snippets/index.html
Normal file
|
|
@ -0,0 +1,17 @@
|
|||
{% extends "snippets/layout.html" %}
|
||||
{% block title %}Snippets Archive{% endblock %}
|
||||
{% block body %}
|
||||
<p>
|
||||
Welcome to the Flask snippet archive. This is the place where anyone
|
||||
can drop helpful pieces of code for others to use.
|
||||
<p>
|
||||
In order to add snippets to this page or to add comments, all you need
|
||||
is an <a href=http://en.wikipedia.org/wiki/OpenID>OpenID</a> account.
|
||||
<form action=/snippets/search/ method=get>
|
||||
<p>
|
||||
Search snippets:
|
||||
<input type=text name=q size=30>
|
||||
<input type=submit value=Search>
|
||||
</form>
|
||||
<h2>Snippets by Category</h2>
|
||||
{% endblock %}
|
||||
11
templates/snippets/layout.html
Normal file
11
templates/snippets/layout.html
Normal file
|
|
@ -0,0 +1,11 @@
|
|||
{% extends "layout.html" %}
|
||||
{% block head %}
|
||||
{{ super() }}
|
||||
<style type=text/css>
|
||||
h1 { margin: 0 0 30px 0; background: url(/static/snippets.png) no-repeat center; height: 165px; }
|
||||
h1 span { display: none; }
|
||||
</style>
|
||||
{% endblock %}
|
||||
{% block body_title %}
|
||||
<h1><span>Flask Snippets</span></h1>
|
||||
{% endblock %}
|
||||
Loading…
Add table
Add a link
Reference in a new issue