File tree Expand file tree Collapse file tree 6 files changed +31
-45
lines changed Expand file tree Collapse file tree 6 files changed +31
-45
lines changed Original file line number Diff line number Diff line change 4
4
{% assign icon_color = "#24292e" %}
5
5
{% endif %}
6
6
7
+ {% assign content = page.content | strip_newlines %}
8
+
7
9
{% assign posts_total = site.posts | size %}
8
10
9
11
{% assign user = site.github.owner %}
Original file line number Diff line number Diff line change @@ -39,25 +39,29 @@ <h1 class="{% if site.style == 'dark' %}text-white{% endif %} mb-2 lh-condensed"
39
39
< div class ="col-md-7 col-lg-8 col-xl-9 px-4 py-6 px-lg-7 ">
40
40
< div class ="mx-auto " style ="max-width: 900px; ">
41
41
42
- < div class ="f4 {% if site.style == 'dark' %}text-white{% endif %} mb-6 ">
43
- {% if page.is_post %}
44
- < div class ="f4 {% if site.style == 'dark' %}text-white{% endif %} ">
45
- < 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 >
46
- < h1 class ="f00-light lh-condensed "> {{ page.title }}</ h1 >
47
- < p class ="mb-5 "> Published {{ page.date | date: "%b %d, %Y"}}</ p >
42
+ {% unless content == "" %}
43
+ < div class ="f4 {% if site.style == 'dark' %}text-white{% endif %} mb-6 ">
44
+ {% if page.is_post %}
45
+ < div class ="f4 {% if site.style == 'dark' %}text-white{% endif %} ">
46
+ < 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 >
47
+ < h1 class ="f00-light lh-condensed "> {{ page.title }}</ h1 >
48
+ < p class ="mb-5 "> Published {{ page.date | date: "%b %d, %Y"}}</ p >
49
+ {{ content }}
50
+ </ div >
51
+ {% else %}
48
52
{{ content }}
49
- </ div >
50
- {% else %}
51
- {{ content }}
52
- {% endif %}
53
- </ div >
53
+ {% endif %}
54
+ </ div >
55
+ {% endunless %}
54
56
55
57
{% unless page.is_post %}
56
58
{% include projects.html %}
57
59
58
- {% include interests.html %}
60
+ {% if site.topics %}
61
+ {% include interests.html %}
62
+ {% endif %}
59
63
60
- {% unless post_size == 0 %}
64
+ {% unless posts_total == 0 %}
61
65
{% include thoughts.html %}
62
66
{% endunless %}
63
67
{% endunless %}
Original file line number Diff line number Diff line change @@ -51,11 +51,13 @@ <h1 class="f00-light lh-condensed">{{ page.title }}</h1>
51
51
{% include projects.html %}
52
52
</ div >
53
53
54
- < div class ="my-6 ">
55
- {% include interests.html %}
56
- </ div >
54
+ {% if site.topics %}
55
+ < div class ="my-6 ">
56
+ {% include interests.html %}
57
+ </ div >
58
+ {% endif %}
57
59
58
- {% unless post_size == 0 %}
60
+ {% unless posts_total == 0 %}
59
61
< div class ="my-6 ">
60
62
{% include thoughts.html %}
61
63
</ div >
Original file line number Diff line number Diff line change 1
1
---
2
2
title : " Welcome to Jekyll!"
3
+ published : false
3
4
---
4
5
5
6
** Hello world** , this is my first Jekyll blog post.
Original file line number Diff line number Diff line change 4
4
5
5
6
6
7
+
8
+
7
9
<!doctype html>
8
10
< html >
9
11
< head >
@@ -44,12 +46,7 @@ <h1 class=" mb-2 lh-condensed">Sophie Shepherd</h1>
44
46
< div class ="col-md-7 col-lg-8 col-xl-9 px-4 py-6 px-lg-7 ">
45
47
< div class ="mx-auto " style ="max-width: 900px; ">
46
48
47
- < div class ="f4 mb-6 ">
48
-
49
- I have stuff to say here.
50
-
51
-
52
- </ div >
49
+
53
50
54
51
55
52
< h2 > My Projects</ h2 >
@@ -171,7 +168,8 @@ <h1 class="f4 lh-condensed mb-1">
171
168
</ div >
172
169
173
170
174
- < h2 > My Interests</ h2 >
171
+
172
+ < h2 > My Interests</ h2 >
175
173
< p class ="f4 mb-4 text-gray "> Topics that I want to learn more about.</ p >
176
174
< div class ="d-flex flex-wrap gutter-condensed mb-4 ">
177
175
@@ -221,27 +219,7 @@ <h2 >My Interests</h2>
221
219
222
220
</ div >
223
221
224
-
225
222
226
- < h2 > My Thoughts</ h2 >
227
- < p class ="f4 mb-4 text-gray "> Articles I've written.</ p >
228
- < div class ="d-sm-flex flex-wrap gutter-condensed mb-4 ">
229
-
230
- < div class ="col-sm-6 col-md-12 col-lg-6 col-xl-4 mb-3 ">
231
- < div class ="height-full text-left border border-gray-light bg-white rounded-1 p-3 ">
232
- < div class ="d-flex flex-justify-between flex-items-start mb-1 ">
233
- < h1 class ="f4 lh-condensed mb-1 ">
234
- < a href ="/2019/01/29/hello-world/ ">
235
- Welcome to Jekyll!
236
- </ a >
237
- </ h1 >
238
- </ div >
239
- < div class ="text-gray mb-2 ws-normal "> Jan 29, 2019</ div >
240
- </ div >
241
-
242
- </ div >
243
-
244
- </ div >
245
223
246
224
247
225
Original file line number Diff line number Diff line change 1
1
---
2
2
layout: sidebar
3
3
---
4
- I have stuff to say here.
You can’t perform that action at this time.
0 commit comments