Imported old code.

This commit is contained in:
Johannes Findeisen 2023-08-22 03:14:43 +02:00
commit 89d94c38b6
243 changed files with 26457 additions and 0 deletions

27
news/atom.xml Normal file
View file

@ -0,0 +1,27 @@
---
layout: nil
---
<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
<title>Linspector - News Feed - linspector.org</title>
<link href="http://linspector.org/news/atom.xml" rel="self"/>
<link href="http://linspector.org"/>
<updated>{{ site.time | date_to_xmlschema }}</updated>
<id>http://linspector.org/</id>
<author>
<name>The Linspector Team (Johannes Findeisen)</name>
<email>hanez@linspector.org</email>
</author>
{% for post in site.posts %}
<entry>
<title>{{ post.title }}</title>
<link href="http://linspector.org{{ post.url }}"/>
<updated>{{ post.date | date_to_xmlschema }}</updated>
<id>http://linspector.org{{ post.id }}</id>
<content type="html">{{ post.content | xml_escape }}</content>
</entry>
{% endfor %}
</feed>

45
news/index.html Normal file
View 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>