diff --git a/_layouts/frontpage.html b/_layouts/frontpage.html index 8c716ac..89b5368 100644 --- a/_layouts/frontpage.html +++ b/_layouts/frontpage.html @@ -10,75 +10,98 @@ format: blog-index +{% comment %} +* +* First check, if widget is empty or not by checking if there is a title +* +{% endcomment %}
+ {% if page.widget-1.title %}
{% if page.widget-1.image %}{% endif %}{% if page.widget-1.video %}{{ page.widget-1.video }}{% endif %}

{{ page.widget-1.title }}

{{ page.widget-1.text }}

{{ site.data.language.more }}

+ {% endif %} + {% if page.widget-2.title %}
{% if page.widget-2.image %}{% endif %}{% if page.widget-2.video %}{{ page.widget-2.video }}{% endif %}

{{ page.widget-2.title }}

{{ page.widget-2.text }}

{{ site.data.language.more }}

+ {% endif %} + {% if page.widget-3.title %}
- {% if page.widget-3.image %}{% endif %}{% if page.widget-3.video %}{{ page.widget-3.video }}{% endif %} + {% if page.widget-3.image %}{% endif %}{% if page.widget-3.video %}{{ page.widget-3.video }}{% endif %}

{{ page.widget-3.title }}

{{ page.widget-3.text }}

Download @ GitHub ›

+ {% endif %}
+{% comment %} +* +* First check, if there are any posts at all +* +{% endcomment %} -
-
- {% for post in site.posts limit:1 %} - {% if post.image.homepage %} -

- {{ page.title escape_once }} -

+{% unless site.posts == empty %} +
+
+ {% for post in site.posts limit:1 %} + {% if post.image.homepage %} +

+ {{ page.title escape_once }} +

- {% if post.image.url && post.image.credit %} -

- {{ post.image.credit }} -

- {% endif %} - {% elsif post.image.homepage == NULL %} -

{{ site.data.language.new_blog_entries }}

- {% endif %} - {% endfor %} -
-
+ {% if post.image.url && post.image.credit %} +

+ {{ post.image.credit }} +

+ {% endif %} + {% elsif post.image.homepage == NULL %} +

{{ site.data.language.new_blog_entries }}

+ {% endif %} + {% endfor %} +
+
- -
-
- {% for post in site.posts limit:1 %} -

{% if post.subheadline %}{{ post.subheadline }}{% endif %}

-

{{ post.title }}

-

- {% if post.meta_description %}{{ post.meta_description | strip_html | escape }}{% elsif post.teaser %}{{ post.teaser | strip_html | escape }}{% endif %} - {{ site.data.language.read_more }} -

- {% endfor %} -
+
+
+ {% for post in site.posts limit:1 %} + {% if post.subheadline %}

{{ post.subheadline }}

{% endif %} +

{{ post.title }}

+

+ {% if post.meta_description %}{{ post.meta_description | strip_html | escape }}{% elsif post.teaser %}{{ post.teaser | strip_html | escape }}{% endif %} + {{ site.data.language.read_more }} +

+ {% endfor %} +
-
-

{{ site.data.language.more_articles }}

- {% include list-posts.html entries='3' offset='1' %} -
-
+
+

{{ site.data.language.more_articles }}

+ {% include list-posts.html entries='3' offset='1' %} +
+
+{% endunless %} +{% comment %} +* +* Finally, if there is content, spit it out. +* +{% endcomment %} +
{{ content }}
diff --git a/_posts/design/2015-02-10-header-with-text.md b/_posts/design/2015-02-10-header-with-text.md index 24fde00..ea444af 100644 --- a/_posts/design/2015-02-10-header-with-text.md +++ b/_posts/design/2015-02-10-header-with-text.md @@ -17,6 +17,13 @@ header: --- +## Front Matter Code + +~~~ +header: + title: header with text + image_fullwidth: unsplash_brooklyn-bridge_header.jpg +~~~ ### All Header-Styles {: .t60 }