init
This commit is contained in:
commit
68b6a87b14
25 changed files with 871 additions and 0 deletions
31
theme/default/templates/index.tmpl
Normal file
31
theme/default/templates/index.tmpl
Normal file
|
|
@ -0,0 +1,31 @@
|
|||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
{% include 'meta.tmpl' %}
|
||||
</head>
|
||||
<body>
|
||||
{% include 'header.tmpl' %}
|
||||
|
||||
<main>
|
||||
{% for post in posts %}
|
||||
<article class="post">
|
||||
<div class="post-meta">{{ post.date }}</div>
|
||||
<h2 class="post-title">
|
||||
{% if post.type == 'long' %}
|
||||
<a href="{{ post.url }}">{{ post.title }}</a>
|
||||
{% else %}
|
||||
{{ post.title }}
|
||||
{% endif %}
|
||||
</h2>
|
||||
{% if post.type == 'short' %}
|
||||
<div class="post-content">
|
||||
{{ post.content | safe }}
|
||||
</div>
|
||||
{% endif %}
|
||||
</article>
|
||||
{% endfor %}
|
||||
</main>
|
||||
|
||||
{% include 'footer.tmpl' %}
|
||||
</body>
|
||||
</html>
|
||||
Loading…
Add table
Add a link
Reference in a new issue