Skip to content

Commit 71ba286

Browse files
Make blog pages responsive
1 parent b89eafd commit 71ba286

File tree

4 files changed

+146
-264
lines changed

4 files changed

+146
-264
lines changed
Lines changed: 24 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -1,30 +1,34 @@
11
---
22
layout: main
33
---
4-
<main>
5-
<div id="post-title">
6-
<h3 id="post-date">
7-
{{ page.date | date: '%B %d, %Y' }}
8-
</h3>
9-
<h1 id="main-title">{{ page.title }}</h1>
4+
<main class="container">
5+
<header>
6+
<h1 class="post-title">{{ page.title }}</h1>
7+
<div class="byline">
8+
<time class="date">
9+
<i class="far fa-calendar-alt"></i>
10+
{{ page.date | date: "%Y-%m-%d" }}
11+
</time>
12+
<span class="author">
13+
<i class="fas fa-pen-nib"></i>
14+
{{ page.author }}
15+
</span>
16+
</div>
1017
{% if page.subTitle %}
11-
<h2 id="sub-title">{{ page.subTitle }}</h2>
18+
<div class="subtitle">
19+
{{ page.subTitle }}
20+
</div>
1221
{% endif %}
13-
</div>
22+
</header>
1423

15-
<div id="blog-post-container">
16-
{{ content }}
17-
</div>
24+
{{ content }}
1825

19-
{% if page.author %}
20-
<div id="post-footer">
21-
{% if page.authorImg %}
22-
<img id="author-image" src="{{ site.baseurl }}/{{ page.authorImg }}">
23-
{% endif %}
24-
<span id="post-author">
25-
{% if page.authorImg == null %}- {% endif %}{{ page.author }}
26+
{% if page.author and page.authorImg %}
27+
<footer>
28+
<img id="author-img" src="{{ site.baseurl }}/{{ page.authorImg }}">
29+
<span id="author-signature">
30+
{{ page.author }}
2631
</span>
27-
</div>
32+
</footer>
2833
{% endif %}
29-
3034
</main>

0 commit comments

Comments
 (0)