mirror of
https://github.com/rottenwheel/revuo-weekly.git
synced 2025-05-15 05:02:26 -04:00
Periodical #3
This commit is contained in:
parent
cd1bd25b18
commit
2c33e8fa08
14 changed files with 531 additions and 9 deletions
|
@ -1,5 +1,5 @@
|
|||
---
|
||||
layout: default
|
||||
layout: revuo-period
|
||||
---
|
||||
<article id="page">
|
||||
|
||||
|
|
11
_layouts/post-period.md
Normal file
11
_layouts/post-period.md
Normal file
|
@ -0,0 +1,11 @@
|
|||
---
|
||||
layout: default
|
||||
---
|
||||
<article id="post-page">
|
||||
<h2>{{ page.title }}</h2>
|
||||
<div class="content">
|
||||
|
||||
{{ content }}
|
||||
|
||||
</div>
|
||||
</article>
|
73
_layouts/revuo-period.html
Normal file
73
_layouts/revuo-period.html
Normal file
|
@ -0,0 +1,73 @@
|
|||
<!DOCTYPE html>
|
||||
<html>
|
||||
|
||||
{% include head.html %}
|
||||
|
||||
<body>
|
||||
<div id="wrap">
|
||||
<div id="periodical">
|
||||
|
||||
<!-- Navigation -->
|
||||
{% include menu.html %}
|
||||
|
||||
<!-- Icon menu -->
|
||||
<a {% if site.reverse == true %}id="nav-menu-left"{% else %}id="nav-menu"{% endif %}>
|
||||
<div id="menu"></div>
|
||||
</a>
|
||||
|
||||
<!-- Header -->
|
||||
{% if site.custom_header == true %}
|
||||
{% include header-custom.html %}
|
||||
{% else %}
|
||||
{% include header.html %}
|
||||
{% endif %}
|
||||
|
||||
<!-- Main content -->
|
||||
<div id="container">
|
||||
|
||||
<main>
|
||||
|
||||
{{ content }}
|
||||
|
||||
</main>
|
||||
|
||||
<!-- Pagination links -->
|
||||
{% if paginator.total_pages > 1 %}
|
||||
<div class="pagination">
|
||||
{% if paginator.previous_page == 1 %}
|
||||
<a href="{{ '/' | prepend: site.baseurl | replace: '//', '/' }}" class="page-item">«</a>
|
||||
{% elsif paginator.previous_page%}
|
||||
<a href="{{ paginator.previous_page_path | prepend: site.baseurl | replace: '//', '/' }}" class="page-item">«</a>
|
||||
{% else %}
|
||||
<span class="page-item">«</span>
|
||||
{% endif %}
|
||||
|
||||
{% for page in (1..paginator.total_pages) %}
|
||||
{% if page == paginator.page %}
|
||||
<span class="page-item">{{ page }}</span>
|
||||
{% elsif page == 1 %}
|
||||
<a href="{{ '/' | prepend: site.baseurl | replace: '//', '/' }}" class="page-item">{{ page }}</a>
|
||||
{% else %}
|
||||
<a href="{{ site.paginate_path | prepend: site.baseurl | replace: '//', '/' | replace: ':num', page }}" class="page-item">{{ page }}</a>
|
||||
{% endif %}
|
||||
{% endfor %}
|
||||
|
||||
{% if paginator.next_page %}
|
||||
<a href="{{ paginator.next_page_path | prepend: site.baseurl | replace: '//', '/' }}" class="page-item">»</a>
|
||||
{% else %}
|
||||
<span class="page-item">»</span>
|
||||
{% endif %}
|
||||
</div>
|
||||
{% endif %}
|
||||
|
||||
</div>
|
||||
|
||||
<!-- Footer -->
|
||||
{% include footer.html %}
|
||||
|
||||
<!-- Script -->
|
||||
{% include script.html %}
|
||||
</div>
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
73
_layouts/revuo-weekly.html
Normal file
73
_layouts/revuo-weekly.html
Normal file
|
@ -0,0 +1,73 @@
|
|||
<!DOCTYPE html>
|
||||
<html>
|
||||
|
||||
{% include head.html %}
|
||||
|
||||
<body>
|
||||
<div id="wrap">
|
||||
<div id="weekly">
|
||||
|
||||
<!-- Navigation -->
|
||||
{% include menu.html %}
|
||||
|
||||
<!-- Icon menu -->
|
||||
<a {% if site.reverse == true %}id="nav-menu-left"{% else %}id="nav-menu"{% endif %}>
|
||||
<div id="menu"></div>
|
||||
</a>
|
||||
|
||||
<!-- Header -->
|
||||
{% if site.custom_header == true %}
|
||||
{% include header-custom.html %}
|
||||
{% else %}
|
||||
{% include header.html %}
|
||||
{% endif %}
|
||||
|
||||
<!-- Main content -->
|
||||
<div id="container">
|
||||
|
||||
<main>
|
||||
|
||||
{{ content }}
|
||||
|
||||
</main>
|
||||
|
||||
<!-- Pagination links -->
|
||||
{% if paginator.total_pages > 1 %}
|
||||
<div class="pagination">
|
||||
{% if paginator.previous_page == 1 %}
|
||||
<a href="{{ '/' | prepend: site.baseurl | replace: '//', '/' }}" class="page-item">«</a>
|
||||
{% elsif paginator.previous_page%}
|
||||
<a href="{{ paginator.previous_page_path | prepend: site.baseurl | replace: '//', '/' }}" class="page-item">«</a>
|
||||
{% else %}
|
||||
<span class="page-item">«</span>
|
||||
{% endif %}
|
||||
|
||||
{% for page in (1..paginator.total_pages) %}
|
||||
{% if page == paginator.page %}
|
||||
<span class="page-item">{{ page }}</span>
|
||||
{% elsif page == 1 %}
|
||||
<a href="{{ '/' | prepend: site.baseurl | replace: '//', '/' }}" class="page-item">{{ page }}</a>
|
||||
{% else %}
|
||||
<a href="{{ site.paginate_path | prepend: site.baseurl | replace: '//', '/' | replace: ':num', page }}" class="page-item">{{ page }}</a>
|
||||
{% endif %}
|
||||
{% endfor %}
|
||||
|
||||
{% if paginator.next_page %}
|
||||
<a href="{{ paginator.next_page_path | prepend: site.baseurl | replace: '//', '/' }}" class="page-item">»</a>
|
||||
{% else %}
|
||||
<span class="page-item">»</span>
|
||||
{% endif %}
|
||||
</div>
|
||||
{% endif %}
|
||||
|
||||
</div>
|
||||
|
||||
<!-- Footer -->
|
||||
{% include footer.html %}
|
||||
|
||||
<!-- Script -->
|
||||
{% include script.html %}
|
||||
</div>
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
Loading…
Add table
Add a link
Reference in a new issue