Imported old code.
This commit is contained in:
parent
b35b040120
commit
89d94c38b6
243 changed files with 26457 additions and 0 deletions
45
news/index.html
Normal file
45
news/index.html
Normal file
|
|
@ -0,0 +1,45 @@
|
|||
---
|
||||
layout: default
|
||||
title: News
|
||||
metasub: news
|
||||
---
|
||||
|
||||
<h2>News <a title="Atom" href="/{{ page.metasub }}/atom.xml"><span class="feed">Atom</span></a></h2>
|
||||
|
||||
{% for post in paginator.posts %}
|
||||
<h3><a href="{{ post.url }}">{{ post.date | date_to_string }} - {{ post.title }}</a></h3>
|
||||
|
||||
{{ post.content }}
|
||||
{% endfor %}
|
||||
|
||||
<div id="post-pagination" class="pagination">
|
||||
{% if paginator.previous_page %}
|
||||
{% if paginator.previous_page == 1 %}
|
||||
<a href="/news/">Previous</a>
|
||||
{% else %}
|
||||
<a href="{{ paginator.previous_page_path }}/">Previous</a>
|
||||
{% endif %}
|
||||
{% else %}
|
||||
<span>Previous</span>
|
||||
{% endif %}
|
||||
|
||||
{% if paginator.page == 1 %}
|
||||
<span class="current-page">1</span>
|
||||
{% else %}
|
||||
<a href="/news/">1</a>
|
||||
{% endif %}
|
||||
|
||||
{% for count in (2..paginator.total_pages) %}
|
||||
{% if count == paginator.page %}
|
||||
<span class="current-page">{{ count }}</span>
|
||||
{% else %}
|
||||
<a href="/news/page{{ count }}/">{{ count }}</a>
|
||||
{% endif %}
|
||||
{% endfor %}
|
||||
|
||||
{% if paginator.next_page %}
|
||||
<a href="{{ paginator.next_page_path }}/">Next</a>
|
||||
{% else %}
|
||||
<span>Next</span>
|
||||
{% endif %}
|
||||
</div>
|
||||
Loading…
Add table
Add a link
Reference in a new issue