1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
{% extends 'main/layout.html' %}
{% block title %}{{ blog_user.blog_title|default:blog_user.username }}{% endblock %}
{% block meta_description %}{{ blog_user.blog_byline|default:"" }}{% endblock %}
{% block head_extra %}
<link rel="alternate" type="application/rss+xml" title="RSS" href="{% url 'rss_feed' %}">
<link rel="alternate" type="application/atom+xml" title="Atom" href="{% url 'atom_feed' %}">
{% if blog_user.blog_byline %}
<meta name="description" content="{{ blog_user.blog_byline_as_text }}">
{% endif %}
{% endblock head_extra %}
{% block head_rsl_license %}
{% include 'partials/rsl_license_head.html' %}
{% endblock head_rsl_license %}
{% block content %}
<nav>
<a href="{% url 'index' %}">Home</a>
{% if blog_user.show_posts_in_nav or pages %}
|
{% if blog_user.show_posts_in_nav %}
<a href="{% url 'post_list' %}">{% if blog_user.posts_page_title %}{{ blog_user.posts_page_title }}{% else %}Posts{% endif %}</a>
{% if pages %}
|
{% endif %}
{% endif %}
{% for page in pages %}
<a href="{% url 'page_detail' page.slug %}">{{ page.title }}</a>
{% if not forloop.last %}
|
{% endif %}
{% endfor %}
{% endif %}
</nav>
<main class="blog" itemscope itemtype="http://schema.org/Blog">
{% if blog_user.blog_title %}
<h1 itemprop="name">{{ blog_user.blog_title }}</h1>
{% endif %}
{% if blog_user.blog_byline %}
<div class="byline" itemprop="about">
{{ blog_user.blog_byline_as_html|safe }}
</div>
{% endif %}
{% if blog_user.blog_index_content %}
<div itemprop="about">
{{ blog_user.blog_index_content_as_html|safe }}
</div>
{% endif %}
{% if blog_user.show_posts_on_homepage %}
{% if request.user.is_authenticated and request.subdomain == request.user.username and drafts %}
<div class="drafts">
<strong>
Drafts
</strong>
<ul>
{% for d in drafts %}
<li>
<a href="{% url 'post_detail' d.slug %}">{{ d.title }}</a>
</li>
{% endfor %}
</ul>
</div>
{% endif %}
<ul class="posts">
{% for p in posts %}
{% if p.published_at %}
<li>
<a href="{% url 'post_detail' p.slug %}">{{ p.title }}</a>
<small>
—
<time datetime="{{ p.published_at|date:'Y-m-d' }}" itemprop="datePublished">
{{ p.published_at|date:'F j, Y' }}
</time>
{% if not p.is_published %}
— SCHEDULED
{% endif %}
</small>
</li>
{% endif %}
{% endfor %}
</ul>
{% endif %}
</main>
{% include 'partials/webring.html' %}
{% include 'partials/footer_blog.html' %}
{% endblock content %}