blog.trnck.dev

layout logic bug fixes

+31 -45
+2
_includes/header.html
··· 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 %}
+17 -13
_layouts/sidebar.html
··· 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 %}
+6 -4
_layouts/stacked.html
··· 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>
+1
_posts/2019-01-29-hello-world.md
··· 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.
+5 -27
_site/index.html
··· 4 4 5 5 6 6 7 + 8 + 7 9 <!doctype html> 8 10 <html> 9 11 <head> ··· 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 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 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
-1
index.html
··· 1 1 --- 2 2 layout: sidebar 3 3 --- 4 - I have stuff to say here.