29 lines
No EOL
699 B
HTML
29 lines
No EOL
699 B
HTML
{% extends "base.html" %}
|
|
|
|
{% block title %}Home{% endblock %}
|
|
|
|
{% block container %}container{% endblock %}
|
|
|
|
{% block page %}
|
|
<div class="index">
|
|
<h1>{{ site_name }}</h1>
|
|
<section>
|
|
<form action="{{ url }}/posts" method="get">
|
|
<input type="text" name="search" />
|
|
<button>Search</button>
|
|
</form>
|
|
</section>
|
|
|
|
<section>
|
|
<p>
|
|
Currently hosting <b>{{ posts_count }}</b>
|
|
|
|
{% if posts_count == 1 -%}
|
|
post.
|
|
{% else -%}
|
|
posts.
|
|
{% endif -%}
|
|
</p>
|
|
</section>
|
|
</div>
|
|
{% endblock %} |