-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
1e08709
commit 253290f
Showing
8 changed files
with
77 additions
and
73 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -14,6 +14,7 @@ author: | |
email: [email protected] | ||
|
||
paginate: 5 | ||
paginate_path: "/blog/page:num/" | ||
|
||
# Custom vars | ||
social: | ||
|
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,54 @@ | ||
--- | ||
layout: default | ||
--- | ||
|
||
<div class="posts"> | ||
{% for post in paginator.posts %} | ||
<div class="post"> | ||
<h1 class="post-title"> | ||
<a href="{{ post.url }}" class="titular"> | ||
{{ post.title }} | ||
</a> | ||
</h1> | ||
|
||
<span class="post-date">{{ post.date | date_to_string }}</span> | ||
|
||
{% if post.excerptShowsAll %} | ||
{{ post.content }} | ||
{% else %} | ||
{% assign BREAK_SIZE = 50 %} | ||
|
||
{% assign con = post.content | strip_html | lstrip %} | ||
{{ con | markdownify | truncatewords: BREAK_SIZE }} | ||
<!-- {% assign pars = con | newline_to_br | split: "<br />" %} | ||
{% assign firstP = pars.first %} | ||
{% assign shortFirst = firstP | truncatewords: BREAK_SIZE %} | ||
{% if shortFirst != firstP %} | ||
{{ con | markdownify | truncatewords: BREAK_SIZE }} | ||
{% else %} | ||
{{ firstP }} | ||
{% endif %} --> | ||
{% endif %} | ||
|
||
</div> | ||
{% endfor %} | ||
</div> | ||
|
||
|
||
<div class="pagination"> | ||
{% if paginator.next_page %} | ||
<a class="pagination-item older" href="{{ site.baseurl }}/blog/page{{paginator.next_page}}">Older</a> | ||
{% else %} | ||
<span class="pagination-item older">Older</span> | ||
{% endif %} | ||
{% if paginator.previous_page %} | ||
{% if paginator.page == 2 %} | ||
<a class="pagination-item newer" href="{{ site.baseurl }}/blog/">Newer</a> | ||
{% else %} | ||
<a class="pagination-item newer" href="{{ site.baseurl }}/blog/page{{paginator.previous_page}}">Newer</a> | ||
{% endif %} | ||
{% else %} | ||
<span class="pagination-item newer">Newer</span> | ||
{% endif %} | ||
</div> |
This file was deleted.
Oops, something went wrong.
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,4 @@ | ||
--- | ||
layout: blogfeed_layout | ||
title: Blog Posts | ||
--- |
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