Skip to content

Commit b9b0911

Browse files
authored
Add span to more items (#270)
1 parent eb19fc9 commit b9b0911

File tree

6 files changed

+28
-25
lines changed

6 files changed

+28
-25
lines changed

src/ablog/templates/ablog/catalog.html

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,16 +11,17 @@
1111
{% if collection %}
1212
<div class="section ablog__catalog_header">
1313
<h2>
14-
{{ header }}
14+
<span>{{ header }}
1515
<a href="{{ pathto(collection.docname) }}">{{ collection }}</a>
16+
</span>
1617
</h2>
1718
{% for post in collection %}
1819
<div class="section ablog__catalog_post">
1920
<p>
2021
{% if post.published %}
21-
{{ post.date.strftime(ablog.post_date_format) }}
22+
<span>{{ post.date.strftime(ablog.post_date_format) }}</span>
2223
{% else %}
23-
Draft
24+
<span>Draft</span>
2425
{% endif %}
2526
-
2627
<a href="{{ postlink(post) }}"

src/ablog/templates/ablog/collection.html

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -13,21 +13,22 @@ <h1>
1313
<a href="{{ pathto(collection.path, 1) }}/atom.xml">
1414
<i class="fa fa-rss fa-rotate-270"></i></a>
1515
{% endif %}
16-
{{ header }}
16+
<span>{{ header }}
1717
{% if collection.href %}
1818
<a href="{{ collection.href }}">{{ collection }}</a>
1919
{% else %}
2020
{{ collection }}
2121
{% endif %}
22+
</span>
2223
</h1>
2324
{% if ablog.blog_archive_titles %}
2425
{% for post in collection %}
2526
<div class="section ablog__collection_meta">
2627
<p>
2728
{% if post.published %}
28-
{{ post.date.strftime(ablog.post_date_format) }}
29+
<span>{{ post.date.strftime(ablog.post_date_format) }}</span>
2930
{% else %}
30-
Draft
31+
<span>Draft</span>
3132
{% endif %}
3233
-
3334
<a href="{{ postlink(post) }}">{{ post.title }}</a>
@@ -46,15 +47,15 @@ <h2 class="ablog-post-title">
4647
{% if fa %}
4748
<i class="fa fa-calendar"></i>
4849
{% endif %}
49-
{{ post.date.strftime(ablog.post_date_format) }}
50+
<span>{{ post.date.strftime(ablog.post_date_format) }}</span>
5051
{% else %}
5152
{% if fa %}
5253
<i class="fa fa-pencil"></i>
5354
{% endif %}
5455
{% if post.date %}
55-
{{ post.date.strftime(ablog.post_date_format) }}
56+
<span>{{ post.date.strftime(ablog.post_date_format) }}</span>
5657
{% else %}
57-
Draft
58+
<span>Draft</span>
5859
{% endif %}
5960
{% endif %}
6061
</li>

src/ablog/templates/ablog/postcard.html

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,15 +7,15 @@ <h2>
77
{% if fa %}
88
<i class="fa fa-calendar"></i>
99
{% endif %}
10-
{{ post.date.strftime(ablog.post_date_format) }}
10+
<span>{{ post.date.strftime(ablog.post_date_format) }}</span>
1111
{% else %}
1212
{% if fa %}
1313
<i class="fa fa-pencil"></i>
1414
{% endif %}
1515
{% if post.date %}
16-
{{ post.date.strftime(ablog.post_date_format) }}
16+
<span>{{ post.date.strftime(ablog.post_date_format) }}</span>
1717
{% else %}
18-
Draft
18+
<span>Draft</span>
1919
{% endif %}
2020
{% endif %}
2121
</h2>

src/ablog/templates/catalog.html

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -12,16 +12,16 @@
1212
{% if collection %}
1313
<div class="section ablog__catalog_header">
1414
<h2>
15-
{{ header }}
16-
<a href="{{ pathto(collection.docname) }}">{{ collection }}</a>
15+
<span>{{ header }}
16+
<a href="{{ pathto(collection.docname) }}">{{ collection }}</a></span>
1717
</h2>
1818
{% for post in collection %}
1919
<div class="section ablog__catalog_post">
2020
<p>
2121
{% if post.published %}
22-
{{ post.date.strftime(ablog.post_date_format) }}
22+
<span>{{ post.date.strftime(ablog.post_date_format) }}</span>
2323
{% else %}
24-
Draft
24+
<span>Draft</span>
2525
{% endif %}
2626
-
2727
<a href="{{ postlink(post) }}"

src/ablog/templates/collection.html

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -15,21 +15,22 @@ <h1>
1515
<a href="{{ pathto(collection.path, 1) }}/atom.xml">
1616
<i class="fa fa-rss fa-rotate-270"></i></a>
1717
{% endif %}
18-
{{ header }}
18+
<span>{{ header }}
1919
{% if collection.href %}
2020
<a href="{{ collection.href }}">{{ collection }}</a>
2121
{% else %}
2222
{{ collection }}
2323
{% endif %}
24+
</span>
2425
</h1>
2526
{% if ablog.blog_archive_titles %}
2627
{% for post in collection %}
2728
<div class="section ablog__collection_meta">
2829
<p>
2930
{% if post.published %}
30-
{{ post.date.strftime(ablog.post_date_format) }}
31+
<span>{{ post.date.strftime(ablog.post_date_format) }}</span>
3132
{% else %}
32-
Draft
33+
<span>Draft</span>
3334
{% endif %}
3435
-
3536
<a href="{{ postlink(post) }}">{{ post.title }}</a>
@@ -48,15 +49,15 @@ <h2 class="ablog-post-title">
4849
{% if fa %}
4950
<i class="fa fa-calendar"></i>
5051
{% endif %}
51-
{{ post.date.strftime(ablog.post_date_format) }}
52+
<span>{{ post.date.strftime(ablog.post_date_format) }}</span>
5253
{% else %}
5354
{% if fa %}
5455
<i class="fa fa-pencil"></i>
5556
{% endif %}
5657
{% if post.date %}
57-
{{ post.date.strftime(ablog.post_date_format) }}
58+
<span>{{ post.date.strftime(ablog.post_date_format) }}</span>
5859
{% else %}
59-
Draft
60+
<span>Draft</span>
6061
{% endif %}
6162
{% endif %}
6263
</li>

src/ablog/templates/postcard.html

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,15 +8,15 @@ <h2>
88
{% if fa %}
99
<i class="fa fa-calendar"></i>
1010
{% endif %}
11-
{{ post.date.strftime(ablog.post_date_format) }}
11+
<span>{{ post.date.strftime(ablog.post_date_format) }}</span>
1212
{% else %}
1313
{% if fa %}
1414
<i class="fa fa-pencil"></i>
1515
{% endif %}
1616
{% if post.date %}
17-
{{ post.date.strftime(ablog.post_date_format) }}
17+
<span>{{ post.date.strftime(ablog.post_date_format) }}</span>
1818
{% else %}
19-
Draft
19+
<span>Draft</span>
2020
{% endif %}
2121
{% endif %}
2222
</h2>

0 commit comments

Comments
 (0)