add gemini feed
This commit is contained in:
parent
fdf7df9f21
commit
f41d45b48d
|
@ -174,6 +174,7 @@ class PostController extends PageController
|
|||
'post' => $entity->getId(),
|
||||
'slug' => $entity->getSlug(),
|
||||
], UrlGeneratorInterface::ABSOLUTE_URL),
|
||||
'linkGemini' => sprintf('gemini://deblan.io/posts/%d.gmi', $entity->getId()),
|
||||
];
|
||||
}
|
||||
|
||||
|
|
|
@ -9,7 +9,10 @@
|
|||
{% for item in items %}
|
||||
<item>
|
||||
<title><![CDATA[{{ item.title|raw }}]]></title>
|
||||
<link>{{ item.link }}</link>
|
||||
<link href="{{ item.link }}" type="text/html" />
|
||||
{% if item.link_gemini is defined %}
|
||||
<link href="{{ item.linkGemini }}" type="text/gemini" />
|
||||
{% endif %}
|
||||
<description><![CDATA[{{ item.description|raw }}]]></description>
|
||||
<guid isPermaLink="false">{{ item.guid }}</guid>
|
||||
<pubDate>{{ item.date|date('r') }}</pubDate>
|
||||
|
|
Loading…
Reference in New Issue