this repo has no description

ft: style Atom feed for accidental openings

Changed files
+122 -1
content
static
templates
+1 -1
content/post/who-watches-watchmen-i.md
···
description = """
A lot of application use systems like Kubernetes for their deployment. In my
-
humble opinion it is often overkill as system ,that offers most of the stuff such
+
humble opinion it is often overkill as system, that offers most of the stuff such
thing provide, is already present in your OS. In this article I will try to
present how to utilise the most popular system supervisor from Elixir
applications.
+81
static/atom-style.xml
···
+
<?xml version="1.0" encoding="utf-8"?>
+
<xsl:stylesheet version="3.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:itunes="http://www.itunes.com/dtds/podcast-1.0.dtd">
+
<xsl:output method="html" encoding="UTF-8" />
+
<xsl:template match="/atom:feed">
+
<html lang="en" dir="ltr">
+
<head>
+
<title><xsl:value-of select="atom:title"/> - RSS Feed</title>
+
<meta charset="UTF-8" />
+
<meta http-equiv="x-ua-compatible" content="IE=edge,chrome=1" />
+
<meta http-equiv="content-language" content="en_US" />
+
<meta name="viewport" content="width=device-width,minimum-scale=1,initial-scale=1,shrink-to-fit=no" />
+
<meta name="referrer" content="none" />
+
+
<!-- FAVICONS CAN GO HERE -->
+
<style type="text/css">
+
body {
+
color: #222;
+
font-family: apple-system, system-ui, sans-serif;
+
}
+
.container {
+
align-item: center;
+
display: flex;
+
justify-content: center;
+
}
+
.item {
+
max-width: 768px;
+
}
+
a {
+
color: #4166f5;
+
text-decoration: none;
+
}
+
a:visited {
+
color: #3f00ff;
+
}
+
a:hover {
+
text-decoration: underline;
+
}
+
</style>
+
</head>
+
<body>
+
<div class="container">
+
<div class="item">
+
<header>
+
<h1>RSS Feed</h1>
+
<h2>
+
<xsl:value-of select="atom:title"/>
+
</h2>
+
<p>
+
<xsl:value-of select="atom:subtitle"/>
+
</p>
+
<a hreflang="en" target="_blank">
+
<xsl:attribute name="href">
+
<xsl:value-of select="atom:link[@rel='related']/@href"/>
+
</xsl:attribute>
+
Visit Website &#x2192;
+
</a>
+
</header>
+
<main>
+
<h2>Recent Posts</h2>
+
<xsl:for-each select="atom:entry">
+
<article>
+
<h3>
+
<a hreflang="en" target="_blank">
+
<xsl:attribute name="href">
+
<xsl:value-of select="atom:link/@href"/>
+
</xsl:attribute>
+
<xsl:value-of select="atom:title"/>
+
</a>
+
</h3>
+
<p>
+
<xsl:value-of select="atom:summary"/>
+
</p>
+
</article>
+
</xsl:for-each>
+
</main>
+
</div>
+
</div>
+
</body>
+
</html>
+
</xsl:template>
+
</xsl:stylesheet>
+40
templates/atom.xml
···
+
<?xml version="1.0" encoding="UTF-8"?>
+
<?xml-stylesheet type="text/xsl" href="/atom-style.xml"?>
+
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="{{ lang }}">
+
<title>{{ config.title }}
+
{%- if term %} - {{ term.name }}
+
{%- elif section.title %} - {{ section.title }}
+
{%- endif -%}
+
</title>
+
{%- if config.description %}
+
<subtitle>{{ config.description }}</subtitle>
+
{%- endif %}
+
<link href="{{ feed_url | safe }}" rel="self" type="application/atom+xml"/>
+
<link href="
+
{%- if section -%}
+
{{ section.permalink | escape_xml | safe }}
+
{%- else -%}
+
{{ config.base_url | escape_xml | safe }}
+
{%- endif -%}
+
" rel="related"/>
+
<generator uri="https://www.getzola.org/">Zola</generator>
+
<updated>{{ last_updated | date(format="%+") }}</updated>
+
<id>{{ feed_url | safe }}</id>
+
{%- for page in pages %}
+
<entry xml:lang="{{ page.lang }}">
+
<title>{{ page.title }}</title>
+
<published>{{ page.date | date(format="%+") }}</published>
+
<updated>{{ page.updated | default(value=page.date) | date(format="%+") }}</updated>
+
<link href="{{ page.permalink | safe }}" type="text/html"/>
+
<id>{{ page.permalink | safe }}</id>
+
<summary>
+
{%- if page.description -%}
+
{{ page.description }}
+
{%- elif page.summary -%}
+
{{ page.summary | safe }}
+
{%- endif -%}
+
</summary>
+
<content type="html">{{ page.content }}</content>
+
</entry>
+
{%- endfor %}
+
</feed>