Skip to content

Commit 22fa36a

Browse files
committed
styles for .article body content; published: false
1 parent 59c4896 commit 22fa36a

File tree

3 files changed

+12
-3
lines changed

3 files changed

+12
-3
lines changed

_layouts/post.html

+3-1
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,9 @@ <h1 class="f00-light lh-condensed">{{ page.title }}</h1>
2424
<p class="f5"><a href="/" class="d-flex flex-items-center {% if site.style == 'dark' %}text-white{% endif %}">{% octicon chevron-left height:16 class:"mr-2 v-align-middle" fill:{{ icon_color }} aria-label:Home %}Home</a></p>
2525
<h1 class="f00-light lh-condensed">{{ page.title }}</h1>
2626
<p class="{% if site.style == 'dark' %}text-white{% else %}text-gray{% endif %} mb-5">Published {{ page.date | date: "%b %d, %Y"}}</p>
27-
{{ content }}
27+
<div class="article">
28+
{{ content }}
29+
</div>
2830
</div>
2931
</div>
3032
</div>

_posts/2019-01-29-hello-world.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
---
22
title: "Welcome to Jekyll!"
3-
published: true
3+
published: false
44
---
55

66
**Hello world**, this is my first Jekyll blog post.
@@ -72,4 +72,4 @@ body {
7272
one: Mark McGwire
7373
two: Sammy Sosa
7474
three: Ken Griffey
75-
```
75+
```

assets/styles.scss

+7
Original file line numberDiff line numberDiff line change
@@ -21,3 +21,10 @@ body {
2121
top: 2px;
2222
width: 12px;
2323
}
24+
25+
.article {
26+
h1, h2, h3, h4,
27+
.highlight {
28+
margin-bottom: 16px;
29+
}
30+
}

0 commit comments

Comments
 (0)