mirror of
https://github.com/simplex-chat/simplex-chat.git
synced 2024-12-17 17:20:21 +01:00
9fa93e40cb
* website: add atom feeds for blogs * update front-matter * website: add atom and rss feeds for blogs * include full blog content --------- Co-authored-by: Evgeny Poberezkin <2769109+epoberezkin@users.noreply.github.com>
37 lines
1.6 KiB
Plaintext
37 lines
1.6 KiB
Plaintext
---
|
|
permalink: feed.atom
|
|
eleventyExcludeFromCollections: true
|
|
metadata:
|
|
title: SimpleX Chat Blog
|
|
subtitle: It allows you to stay up to date with the latest Blogs from SimpleX Chat.
|
|
language: en
|
|
url: https://simplex.chat/,
|
|
author:
|
|
name: SimpleX Chat
|
|
email: chat@simplex.chat
|
|
---
|
|
<?xml version="1.0" encoding="utf-8"?>
|
|
<feed xmlns="http://www.w3.org/2005/Atom" xml:base="{{ metadata.url }}">
|
|
<title>{{ metadata.title }}</title>
|
|
<subtitle>{{ metadata.subtitle }}</subtitle>
|
|
<link href="{{ permalink | absoluteUrl(metadata.url) }}" rel="self"/>
|
|
<link href="{{ metadata.url }}"/>
|
|
<updated>{{ collections.blogs | getNewestCollectionItemDate | dateToRfc3339 }}</updated>
|
|
<id>{{ metadata.url }}</id>
|
|
<author>
|
|
<name>{{ metadata.author.name }}</name>
|
|
<email>{{ metadata.author.email }}</email>
|
|
</author>
|
|
{%- for blog in collections.blogs | reverse %}
|
|
{%- set absolutePostUrl = blog.url | absoluteUrl(metadata.url) %}
|
|
<entry>
|
|
<title>{{ blog.data.title }}</title>
|
|
<link href="{{ absolutePostUrl }}"/>
|
|
{# <updated>{{ blog.date | dateToRfc3339 }}</updated> #}
|
|
<updated>{{ blog.data.date.toUTCString().split(' ').slice(1, 4).join(' ') }}</updated>
|
|
<id>{{ absolutePostUrl }}</id>
|
|
<content xml:lang="{{ metadata.language }}" type="html">{{ blog.templateContent | htmlToAbsoluteUrls(absolutePostUrl) }}</content>
|
|
{# <content xml:lang="{{ metadata.language }}" type="html">{{ blog.templateContent | striptags | truncate(200) }}</content> #}
|
|
</entry>
|
|
{%- endfor %}
|
|
</feed> |