You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
39 lines
640 B
39 lines
640 B
{% extends "layouts/app.html" %} |
|
{% block title %} |
|
|
|
{% if member %} |
|
{{ member.name |
|
| lisp: (lambda (name) (title! (format nil "~A San's blog" name))) |
|
}} |
|
{% else %} |
|
|
|
{% lisp (title! "Member blog") %} |
|
|
|
{% endif %} |
|
{% endblock %} |
|
|
|
{% block content %} |
|
|
|
<h1>{% lisp (title!) %}</h1> |
|
|
|
{% if user %} |
|
<div class="toolbar"> |
|
<a href="/entries/new">Write blog</a> |
|
</div> |
|
{% endif %} |
|
|
|
{% if entries %} |
|
{% for entry in entries %} |
|
|
|
<h2>{{entry.title}}</h2> |
|
<p>{{ entry.body | truncatechars: 80 }}</p> |
|
<a href="/entries/{{entry.id}}">More</a> |
|
|
|
{% include "entries/footer.html" %} |
|
{% endfor %} |
|
{% else %} |
|
|
|
<p>No entries</p> |
|
|
|
{% endif %} |
|
{% endblock %}
|
|
|