Skip to content

Commit 9a07a50

Browse files
committed
Style and layout updates for blog posts
1 parent 9bbedd5 commit 9a07a50

File tree

3 files changed

+4
-5
lines changed

3 files changed

+4
-5
lines changed

_layouts/post.html

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,11 +13,11 @@
1313

1414
<header class="page-header_post-layout">
1515

16-
<p class="post-meta"><span class="post-date">{{ page.date | date: '%B %-d, %Y' }}</span>{% if page.category %}<span class="post-category">{{ page.category }}</span>{% endif %}</p>
16+
<p class="post-meta"><span class="post-date">{{ page.date | date: '%B %-d, %Y' }}</span>{% if page.categories %}{% for category in page.categories %}<span class="post-category">{{ category }}</span>{% endfor %}{% endif %}</p>
1717

1818
<h1 class="page-title_post-layout">{{ page.title }}</h1>
1919

20-
{% if page.author %}<h3 class="page-subtitle_post-layout"><a href="{{page.ahandle}}">{{ page.author }}</a></h3>{% endif %}
20+
{% if page.author %}<p class="post-meta">{{ page.author }} - <a href="https://twitter.com/{{page.ahandle}}">@{{ page.ahandle }}</a></p>{% endif %}
2121

2222
{% if page.img %}<img class="post-img" src="{{ site.url }}{{ site.baseurl }}/img/posts/{{ page.img }}" alt="{{ page.title }}">{% endif %}
2323

@@ -30,7 +30,7 @@ <h1 class="page-title_post-layout">{{ page.title }}</h1>
3030

3131
{% if page.ahandle %}
3232
<hr>
33-
{% assign bio = "authors/" + page.ahandle + ".html" %}
33+
{% assign bio = "authors/" | append: page.ahandle | append: ".html" %}
3434
{% include {{ bio }} %}
3535
{% endif %}
3636

_sass/code.scss

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ samp {
66
font-size: 1em;
77
}
88

9-
.highlight { background: #ffffff; }
9+
.highlight { background: #e3f6ff; padding: 1em; }
1010
.highlight .c { color: #999988; font-style: italic } /* Comment */
1111
.highlight .err { color: #a61717; background-color: #e3d2d2 } /* Error */
1212
.highlight .k { font-weight: bold } /* Keyword */

_sass/navigation.scss

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -223,7 +223,6 @@ a.current {
223223
.page-parent-link {
224224
@extend %page-sub-nav-link;
225225
display: inline-block;
226-
margin-bottom: 2rem;
227226

228227
&-icon {
229228
display: inline-block;

0 commit comments

Comments
 (0)