Simplify layout logic
This commit is contained in:
parent
097a32a680
commit
b6543ef41e
|
|
@ -1,8 +1,17 @@
|
||||||
---
|
---
|
||||||
layout: page
|
layout: default
|
||||||
---
|
---
|
||||||
|
|
||||||
<div class="row">
|
<div class="post">
|
||||||
|
|
||||||
|
<header class="post-header">
|
||||||
|
{% assign name = site.title | split: ' ' %}
|
||||||
|
<h1 class="post-title"><span class="font-weight-bold">{{ name | first }}</span> {{ name | last }}</h1>
|
||||||
|
<p class="post-description">{{ page.description }}</p>
|
||||||
|
</header>
|
||||||
|
|
||||||
|
<article>
|
||||||
|
<div class="row">
|
||||||
<div class="col">
|
<div class="col">
|
||||||
{{ content }}
|
{{ content }}
|
||||||
</div>
|
</div>
|
||||||
|
|
@ -18,15 +27,18 @@ layout: page
|
||||||
{% endif %}
|
{% endif %}
|
||||||
</div>
|
</div>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
{% if page.news %}
|
{% if page.news %}
|
||||||
{% include news.html %}
|
{% include news.html %}
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
|
||||||
{% if page.social %}
|
{% if page.social %}
|
||||||
<div class="social">
|
<div class="social">
|
||||||
{% include social.html %}
|
{% include social.html %}
|
||||||
<div class="contact-note">{{ site.contact_note }}</div>
|
<div class="contact-note">{{ site.contact_note }}</div>
|
||||||
|
</div>
|
||||||
|
{% endif %}
|
||||||
|
</article>
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
{% endif %}
|
|
||||||
|
|
|
||||||
|
|
@ -4,12 +4,7 @@ layout: default
|
||||||
<div class="post">
|
<div class="post">
|
||||||
|
|
||||||
<header class="post-header">
|
<header class="post-header">
|
||||||
{% if page.title == 'about' %}
|
|
||||||
{% assign name = site.title | split: ' ' %}
|
|
||||||
<h1 class="post-title"><span class="font-weight-bold">{{ name | first }}</span> {{ name | last }}</h1>
|
|
||||||
{% else %}
|
|
||||||
<h1 class="post-title">{{ page.title }}</h1>
|
<h1 class="post-title">{{ page.title }}</h1>
|
||||||
{% endif %}
|
|
||||||
<p class="post-description">{{ page.description }}</p>
|
<p class="post-description">{{ page.description }}</p>
|
||||||
</header>
|
</header>
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue