generated from sylhare/Type-on-Strap
-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #44 from netz39/rearrange-landingpage
Rearrange landingpage
- Loading branch information
Showing
8 changed files
with
77 additions
and
17 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,41 @@ | ||
<div class="posts"> | ||
{% unless site.posts %} | ||
<article><section class="post-content"><p>There are no blog posts</p></section></article> | ||
{% endunless %} | ||
{% for post in site.posts limit:3 %} | ||
<div class="post-teaser"> | ||
{% if post.thumbnail %} | ||
<div class="post-img"> | ||
<a aria-label="{{ post.title }}" href="{{ post.url | relative_url }}"> | ||
<img alt="{{ post.title }}" src="{{ post.thumbnail | relative_url }}"> | ||
</a> | ||
</div> | ||
{% endif %} | ||
<span> | ||
<header> | ||
<h2> | ||
<a aria-label="{{ post.title }}" class="post-link" href="{{ post.url | relative_url }}"> | ||
{{ post.title }} | ||
</a> | ||
</h2> | ||
{% include blog/post_info.liquid author=post.author date=post.date %} | ||
</header> | ||
{% if site.excerpt or site.theme_settings.excerpt %} | ||
<div class="excerpt"> | ||
{% if site.excerpt == "truncate" %} | ||
{{ post.content | strip_html | truncate: '250' | escape }} | ||
{% else %} | ||
{{ post.excerpt | strip_html | escape }} | ||
{% endif %} | ||
</div> | ||
{% endif %} | ||
</span> | ||
</div> | ||
{% endfor %} | ||
<center> | ||
<a aria-label="{{ site.data.language.str_more_blog_entries | default: 'More blog entries' }}" href="/blog" | ||
{% unless site.posts %}style="visibility:hidden"{% endunless %} class="button"> | ||
{{ site.data.language.str_more_blog_entries | default: 'More blog entries' }} | ||
</a> | ||
</center> | ||
</div> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
--- | ||
layout: default | ||
--- | ||
|
||
<div class="home"> | ||
<div class="blog-links"> | ||
{% include blog/blog.liquid %} | ||
</div> | ||
</div> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
--- | ||
layout: full_blog | ||
title: Blog | ||
--- | ||
|
||
<!-- this is needed for pagination plugin working correctly --> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
--- | ||
layout: full_blog | ||
title: Blog | ||
permalink: /blog | ||
pagination: true | ||
--- |
This file was deleted.
Oops, something went wrong.