My personal blog hauleth.dev
blog
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

ft: style Atom feed for accidental openings

+122 -1
+1 -1
content/post/who-watches-watchmen-i.md
··· 4 4 5 5 description = """ 6 6 A lot of application use systems like Kubernetes for their deployment. In my 7 - humble opinion it is often overkill as system ,that offers most of the stuff such 7 + humble opinion it is often overkill as system, that offers most of the stuff such 8 8 thing provide, is already present in your OS. In this article I will try to 9 9 present how to utilise the most popular system supervisor from Elixir 10 10 applications.
+81
static/atom-style.xml
··· 1 + <?xml version="1.0" encoding="utf-8"?> 2 + <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"> 3 + <xsl:output method="html" encoding="UTF-8" /> 4 + <xsl:template match="/atom:feed"> 5 + <html lang="en" dir="ltr"> 6 + <head> 7 + <title><xsl:value-of select="atom:title"/> - RSS Feed</title> 8 + <meta charset="UTF-8" /> 9 + <meta http-equiv="x-ua-compatible" content="IE=edge,chrome=1" /> 10 + <meta http-equiv="content-language" content="en_US" /> 11 + <meta name="viewport" content="width=device-width,minimum-scale=1,initial-scale=1,shrink-to-fit=no" /> 12 + <meta name="referrer" content="none" /> 13 + 14 + <!-- FAVICONS CAN GO HERE --> 15 + <style type="text/css"> 16 + body { 17 + color: #222; 18 + font-family: apple-system, system-ui, sans-serif; 19 + } 20 + .container { 21 + align-item: center; 22 + display: flex; 23 + justify-content: center; 24 + } 25 + .item { 26 + max-width: 768px; 27 + } 28 + a { 29 + color: #4166f5; 30 + text-decoration: none; 31 + } 32 + a:visited { 33 + color: #3f00ff; 34 + } 35 + a:hover { 36 + text-decoration: underline; 37 + } 38 + </style> 39 + </head> 40 + <body> 41 + <div class="container"> 42 + <div class="item"> 43 + <header> 44 + <h1>RSS Feed</h1> 45 + <h2> 46 + <xsl:value-of select="atom:title"/> 47 + </h2> 48 + <p> 49 + <xsl:value-of select="atom:subtitle"/> 50 + </p> 51 + <a hreflang="en" target="_blank"> 52 + <xsl:attribute name="href"> 53 + <xsl:value-of select="atom:link[@rel='related']/@href"/> 54 + </xsl:attribute> 55 + Visit Website &#x2192; 56 + </a> 57 + </header> 58 + <main> 59 + <h2>Recent Posts</h2> 60 + <xsl:for-each select="atom:entry"> 61 + <article> 62 + <h3> 63 + <a hreflang="en" target="_blank"> 64 + <xsl:attribute name="href"> 65 + <xsl:value-of select="atom:link/@href"/> 66 + </xsl:attribute> 67 + <xsl:value-of select="atom:title"/> 68 + </a> 69 + </h3> 70 + <p> 71 + <xsl:value-of select="atom:summary"/> 72 + </p> 73 + </article> 74 + </xsl:for-each> 75 + </main> 76 + </div> 77 + </div> 78 + </body> 79 + </html> 80 + </xsl:template> 81 + </xsl:stylesheet>
+40
templates/atom.xml
··· 1 + <?xml version="1.0" encoding="UTF-8"?> 2 + <?xml-stylesheet type="text/xsl" href="/atom-style.xml"?> 3 + <feed xmlns="http://www.w3.org/2005/Atom" xml:lang="{{ lang }}"> 4 + <title>{{ config.title }} 5 + {%- if term %} - {{ term.name }} 6 + {%- elif section.title %} - {{ section.title }} 7 + {%- endif -%} 8 + </title> 9 + {%- if config.description %} 10 + <subtitle>{{ config.description }}</subtitle> 11 + {%- endif %} 12 + <link href="{{ feed_url | safe }}" rel="self" type="application/atom+xml"/> 13 + <link href=" 14 + {%- if section -%} 15 + {{ section.permalink | escape_xml | safe }} 16 + {%- else -%} 17 + {{ config.base_url | escape_xml | safe }} 18 + {%- endif -%} 19 + " rel="related"/> 20 + <generator uri="https://www.getzola.org/">Zola</generator> 21 + <updated>{{ last_updated | date(format="%+") }}</updated> 22 + <id>{{ feed_url | safe }}</id> 23 + {%- for page in pages %} 24 + <entry xml:lang="{{ page.lang }}"> 25 + <title>{{ page.title }}</title> 26 + <published>{{ page.date | date(format="%+") }}</published> 27 + <updated>{{ page.updated | default(value=page.date) | date(format="%+") }}</updated> 28 + <link href="{{ page.permalink | safe }}" type="text/html"/> 29 + <id>{{ page.permalink | safe }}</id> 30 + <summary> 31 + {%- if page.description -%} 32 + {{ page.description }} 33 + {%- elif page.summary -%} 34 + {{ page.summary | safe }} 35 + {%- endif -%} 36 + </summary> 37 + <content type="html">{{ page.content }}</content> 38 + </entry> 39 + {%- endfor %} 40 + </feed>