Skip to content

Commit

Permalink
try to include teasers on main page like mmistakes/minimal-mistakes#1717
Browse files Browse the repository at this point in the history
  • Loading branch information
DiGyt committed Nov 1, 2020
1 parent f462e95 commit 51287d2
Show file tree
Hide file tree
Showing 2 changed files with 25 additions and 3 deletions.
4 changes: 2 additions & 2 deletions _config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ minimal_mistakes_skin : "dirt" # "air", "aqua", "contrast", "dark", "dirt", "

# Site Settings
locale : "en-US"
title : "BaBahtdwt"
title : "DiGyt's Blog"
title_separator : "-"
subtitle : # site tagline that appears below site title in masthead
name : "Dirk Gütlin"
Expand Down Expand Up @@ -272,7 +272,7 @@ defaults:
share: true
related: true
header:
image: assets/images/standard_background.jpg
overlay_image: assets/images/standard_background.jpg
overlay_filter: 0.5
teaser: "/assets/images/standard_background.jpg"
# _pages
Expand Down
24 changes: 23 additions & 1 deletion index.html
Original file line number Diff line number Diff line change
@@ -1,4 +1,26 @@
---
layout: home
layout: archive
author_profile: true
---

{% if page.name == 'index.html' and insta_image != true %}
<div id="IG_top">
<h1 class="archive__subtitle IG_top">Instagram Feed</h1>
<figure class="sixth" id="IG_topFigure"></figure>
</div>
{% endif %}

<h1 class="archive__subtitle">{{ site.data.ui-text[site.locale].recent_posts | default: "Recent Posts" }}</h1>

{% for post in paginator.posts %}
{% include archive-single-main.html %}
{% endfor %}

{% if page.url == '/' and insta_image != true and site.url == 'fake.url' %}
<h1 class="archive__subtitle">Instagram Feed</h1>
<div id="IG_bottom">
<figure class="sixth" id="IG_bottomFigure"></figure>
</div>
{% endif %}

{% include paginator.html %}

0 comments on commit 51287d2

Please sign in to comment.