Skip to main content

max / makenotwork

1.6 KB · 44 lines History Blame Raw
1 {% extends "base.html" %}
2 {%- import "partials/_ui.html" as ui -%}
3
4 {% block title %}Blog - {{ project.title }}{% endblock %}
5 {% block body_attrs %} class="padded-page project-blog-page"{% endblock %}
6
7 {% block head %}
8 <link rel="alternate" type="application/rss+xml" title="{{ project.title }} - Blog RSS" href="/p/{{ project_slug }}/blog/feed.xml">
9 {% endblock %}
10
11 {% block content %}
12 {% include "partials/site_header.html" %}
13
14 <div class="container">
15 <header class="blog-header">
16 <h1 class="blog-title">{{ project.title }} Blog<span class="dot">.</span></h1>
17 <div class="blog-meta">
18 by <a href="/u/{{ creator_username }}">{{ creator_username }}</a> &middot;
19 <a href="/p/{{ project_slug }}">View project</a>
20 </div>
21 <div class="blog-actions">
22 <a href="/p/{{ project_slug }}/blog/feed.xml" class="btn-secondary btn-link">RSS Feed</a>
23 </div>
24 </header>
25
26 <section class="posts-list">
27 {% if posts.is_empty() %}
28 {% call ui::empty_state("", "No blog posts yet.") %}
29 {% else %}
30 {% for post in posts %}
31 <div class="post-entry">
32 <h2 class="post-title"><a href="/p/{{ project_slug }}/blog/{{ post.slug }}">{{ post.title }}</a></h2>
33 <div class="post-date">{{ post.published_at }}</div>
34 </div>
35 {% endfor %}
36 {% endif %}
37 </section>
38
39 <footer class="project-blog-footer">
40 <p>Powered by <a href="/">Makenot<span class="dot">.</span>work</a></p>
41 </footer>
42 </div>
43 {% endblock %}
44