Migrate to Zola #1
@ -5,7 +5,7 @@ description = "A modern XMPP client"
|
||||
compile_sass = false
|
||||
build_search_index = false
|
||||
generate_feed = true
|
||||
feed_filename = "atom.xml"
|
||||
feed_filename = "feed.xml"
|
||||
|
||||
[extra]
|
||||
heroText = "An experimental and modern XMPP client"
|
||||
|
@ -1,5 +1,3 @@
|
||||
+++
|
||||
template = "index.html"
|
||||
|
||||
sort_by = "date"
|
||||
+++
|
@ -1,5 +1,4 @@
|
||||
+++
|
||||
title = "Developer Information"
|
||||
template = "developers.html"
|
||||
date = "2024-01-13"
|
||||
+++
|
@ -5,7 +5,7 @@
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
||||
<link href="{{ get_url(path="css/index.css") }}" rel="stylesheet" />
|
||||
<link rel="shortcut icon" href="{{ get_url(path="img/favicon.ico") }}" sizes="32x32" />
|
||||
<link href="{{ get_url(path="atom.xml", trailing_slash=false) }}" type="application/atom+xml" rel="alternate" title="Moxxy Blog" />
|
||||
<link href="{{ get_url(path="feed.xml", trailing_slash=false) }}" type="application/atom+xml" rel="alternate" title="Moxxy Blog" />
|
||||
|
||||
{% if page %}
|
||||
<meta property="og:description" content="{{ page.description }}" />
|
||||
|
@ -6,7 +6,7 @@
|
||||
<div class="flex flex-row items-center gap-x-3">
|
||||
<h1 class="text-3xl">Blog posts</h1>
|
||||
|
||||
<a href="{{ get_url(path="atom.xml", trailing_slash=false) }}">
|
||||
<a href="{{ get_url(path="feed.xml", trailing_slash=false) }}">
|
||||
<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24" stroke-width="1.5" stroke="currentColor" class="w-6 h-6">
|
||||
<path stroke-linecap="round" stroke-linejoin="round" d="M12.75 19.5v-.75a7.5 7.5 0 00-7.5-7.5H4.5m0-6.75h.75c7.87 0 14.25 6.38 14.25 14.25v.75M6 18.75a.75.75 0 11-1.5 0 .75.75 0 011.5 0z" />
|
||||
</svg>
|
||||
|
40
templates/feed.xml
Normal file
40
templates/feed.xml
Normal file
@ -0,0 +1,40 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<rss xmlns:atom="http://www.w3.org/2005/Atom" version="2.0">
|
||||
<channel>
|
||||
<title>{{ config.title }}
|
||||
{%- if term %} - {{ term.name }}
|
||||
{%- elif section.title %} - {{ section.title }}
|
||||
{%- endif -%}
|
||||
</title>
|
||||
<link>
|
||||
{%- if section -%}
|
||||
{{ section.permalink | escape_xml | safe }}
|
||||
{%- else -%}
|
||||
{{ config.base_url | escape_xml | safe }}
|
||||
{%- endif -%}
|
||||
</link>
|
||||
<description>{{ config.description }}</description>
|
||||
<generator>Zola</generator>
|
||||
<language>{{ lang }}</language>
|
||||
<atom:link href="{{ feed_url | safe }}" rel="self" type="application/rss+xml"/>
|
||||
<lastBuildDate>{{ last_updated | date(format="%a, %d %b %Y %H:%M:%S %z") }}</lastBuildDate>
|
||||
{%- for page in pages %}
|
||||
<item>
|
||||
<title>{{ page.title }}</title>
|
||||
<pubDate>{{ page.date | date(format="%a, %d %b %Y %H:%M:%S %z") }}</pubDate>
|
||||
<author>
|
||||
{%- if page.authors -%}
|
||||
{{ page.authors[0] }}
|
||||
{%- elif config.author -%}
|
||||
{{ config.author }}
|
||||
{%- else -%}
|
||||
Unknown
|
||||
{%- endif -%}
|
||||
</author>
|
||||
<link>{{ page.permalink | escape_xml | safe }}</link>
|
||||
<guid>{{ page.permalink | escape_xml | safe }}</guid>
|
||||
<description xml:base="{{ page.permalink | escape_xml | safe }}">{{ page.content }}</description>
|
||||
</item>
|
||||
{%- endfor %}
|
||||
</channel>
|
||||
</rss>
|
Loading…
Reference in New Issue
Block a user