Skip to content

Commit 92114be

Browse files
committed
Apply markdown rendering to all pages - posts list, home, excerpts
1 parent f9d3c3c commit 92114be

3 files changed

Lines changed: 22 additions & 2 deletions

File tree

portfolio/static/all-posts.css

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -81,9 +81,16 @@ ul {
8181
line-height: 1.3;
8282
}
8383

84-
.post__content p {
84+
.post__content p,
85+
.post__content .excerpt,
86+
.post__content .excerpt p {
8587
font-size: 0.85rem;
8688
color: #4a4a4a;
8789
margin: 0;
8890
line-height: 1.4;
91+
}
92+
93+
.post__content .excerpt a {
94+
color: #390281;
95+
text-decoration: underline;
8996
}

portfolio/static/home.css

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -157,3 +157,15 @@ body {
157157
.post h3 {
158158
margin: 0.25rem 0;
159159
}
160+
161+
.post .excerpt,
162+
.post .excerpt p {
163+
font-size: 0.9rem;
164+
color: #666;
165+
margin: 0.5rem 0 0 0;
166+
line-height: 1.4;
167+
}
168+
169+
.post .excerpt a {
170+
color: #390281;
171+
}

portfolio/templates/portfolio/includes/post_slug.html

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
{% load static %}
2+
{% load markdown_extras %}
23

34
<li>
45
<article class="post">
@@ -8,7 +9,7 @@
89
{% endif %}
910
<div class="post__content">
1011
<h3>{{ post.title }}</h3>
11-
<p>{{ post.excerpt }}</p>
12+
<div class="excerpt">{{ post.excerpt|markdown }}</div>
1213
</div>
1314
</a>
1415
</article>

0 commit comments

Comments
 (0)