♪ Bonjour!
First of all, I would like to say Thank you:
It is my first site building, I am a beginner, but I’m getting into the deep of the code and though I am able to enjoy it: Grav is really impressive and I would not have even thought that I would be able to get to such point! I am liking it very much!
Also, I have received great support a few days ago through the forum, which I apreciated very much.
Installing currently the feed plugiin, I am experiencing a problem:
My Site is multiligual:
1. fr (French) (default) 2. ja (Japanese) 3. en (English)
So Blog section has a blog.md per language:
1. blog.fr.md (French) 2. blog.ja.md (Japanese) 3. blog.en.md (English)
Problem comes in feed.rss.twig
with (here, for example, the japanese version):
—html
problem is in:
<atom:link href="http://localhost/grav/blog.rss" rel="self" type="application/rss+xml"/>
href="http://localhost/grav/blog.rss"
is not the correct adress which is href="http://localhost/grav/ja/blog.rss"
because /ja
is missing to be correct
in twig template:
<?xml version="1.0" encoding="utf-8"?>
<rss xmlns:atom="http://www.w3.org/2005/Atom" version="2.0">
<channel>
<title>{{ page.title }}</title>
<link>{{ uri.url(true) }}.{{ uri.extension() }}</link>
<description>{{ collection.params.description }}</description>
<language>{{ collection.params.lang }}</language>
<atom:link href="{{ uri.url(true) }}.{{ uri.extension }}" rel="self" type="application/rss+xml"/>
{% for item in collection %}
{% set banner = item.media.images|first %}
<item>
<title>{{ item.title|e }}</title>
<link>{{ item.url(true) }}</link>
<description>
problem is in:
<atom:link href="{{ uri.url(true) }}.{{ uri.extension }}" rel="self" type="application/rss+xml"/>
I have looked at Twig documentation to change it with trim filter or whatever, but I could not succeed so far…
Thanks in avance for your support…
François (V.) alias Tidivoit