Skip to content

Commit 973c9c9

Browse files
committed
updated blog body styling
1 parent 7855731 commit 973c9c9

File tree

3 files changed

+32
-8
lines changed

3 files changed

+32
-8
lines changed

static/css/styles.css

+14-2
Original file line numberDiff line numberDiff line change
@@ -136,11 +136,23 @@ article {
136136
/* Blog display-specific styling */
137137
.blog-display {
138138
width: 80%;
139+
text-align: left;
140+
}
141+
.blog-display-go-back {
142+
opacity: 0.5;
139143
}
140144

141-
.blog-display h2 {
142-
font-family: "Playwrite DE Grund", sans-serif;
145+
.blog-display-title {
146+
text-align: center;
143147
margin-top: 1rem;
148+
border: 1px solid var(--pico-primary);
149+
padding: 2rem;
150+
padding-bottom: 0;
151+
box-shadow: 15px 20px 0 rgba(0, 0, 0, 0.331);
152+
}
153+
.blog-display-footer {
154+
font-size: 0.8rem;
155+
opacity: 0.5;
144156
}
145157

146158
.blog-display-content {

templates/blog-display.html

+13-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,19 @@
11
{% extends "base.html" %} {% block content %}
22
<center>
33
<div class="blog-display" }>
4-
<h2 class="center">{{ page.title }}</h2>
4+
<a class="blog-display-go-back" href="/blogs"><<< Go Back</a>
5+
<div class="blog-display-title">
6+
<h2>{{ page.title }}</h2>
7+
<p>{{ page.description }}</p>
8+
<p class="blog-display-footer">
9+
<i class="fa-solid fa-hourglass-half"></i>
10+
Published: {{ page.date | date(format="%b %d, %Y") }} |
11+
<i class="fa-solid fa-user"></i> Author:
12+
<a href="https://github.com/{{ page.authors[0] }}"
13+
>{{ page.authors[0] }}</a
14+
>
15+
</p>
16+
</div>
517
<hr />
618
<div class="blog-display-content pico-color-pumpkin-500">
719
{{ page.content | safe }}

templates/blogs.html

+5-5
Original file line numberDiff line numberDiff line change
@@ -26,12 +26,12 @@ <h1>
2626

2727
{% endfor %} {% endif %}
2828

29+
<br /><br />
30+
2931
{% if paginator.previous %}
30-
<a href="{{ paginator.previous }}">&laquo; Previous</a> |
31-
{% endif %}
32-
Page {{ paginator.current_index }} of {{ paginator.number_pagers }}
33-
{% if paginator.next %}
34-
| <a href="{{ paginator.next }}">Next &raquo;</a>
32+
<a href="{{ paginator.previous }}">&laquo; Previous</a> | {% endif %} Page
33+
{{ paginator.current_index }} of {{ paginator.number_pagers }} {% if
34+
paginator.next %} | <a href="{{ paginator.next }}">Next &raquo;</a>
3535
{% endif %}
3636
</center>
3737

0 commit comments

Comments
 (0)