Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 0 additions & 9 deletions blog.md

This file was deleted.

38 changes: 36 additions & 2 deletions _layouts/blog.html → blog/index.html
Original file line number Diff line number Diff line change
@@ -1,3 +1,12 @@
---
layout: null
title: Blog
description: Segui il nostro blog per restare informato sulle attività dello Squadrone, per aggiornarti con le guide pubblicate e per conoscere gli eventi nella Galassia.
sitemap:
priority: 1.0
lastmod: 2017-11-02
changefreq: weekly
---
<!DOCTYPE HTML>
<!--
Massively by HTML5 UP
Expand Down Expand Up @@ -51,7 +60,7 @@ <h2><a href="#">Importance of Blogs</a></h2>
</article>
<!-- Post -->
<section class="posts">
{% for post in site.posts %}
{% for post in paginator.posts %}
{% assign mod3 = forloop.index | modulo: 3 %}
<article>
<header>
Expand Down Expand Up @@ -79,7 +88,32 @@ <h2><a href="#">Sponsored</a></h2>
</div>

<!-- Footer -->
{% include foot.html %}
<footer>
<!-- pagination -->
{% if paginator.total_pages > 1 %}
<div class="pagination">
{% if paginator.previous_page %}
<a href="{{ paginator.previous_page_path | prepend: site.baseurl | replace: '//', '/' }}" class="previous">Prev</a>
{% endif %}

{% for page in (1..paginator.total_pages) %}
{% if page == paginator.page %}
<span class="page active">{{ page }}</span>
{% elsif page == 1 %}
<a href="/">{{ page }}</a>
{% else %}
<a href="{{ site.paginate_path | prepend: site.baseurl | replace: '//', '/' | replace: ':num', page }}" class="page">{{ page }}</a>
{% endif %}
{% endfor %}

{% if paginator.next_page %}
<a href="{{ paginator.next_page_path | prepend: site.baseurl | replace: '//', '/' }}" class="next">Next</a>
{% endif %}
</div>
{% endif %}
</footer>
</div>
{% include foot.html %}

</div>

Expand Down