Hi!
I tryed implement Yandex Turbo Pages.
For that:
- I create custom routes, ie
routes:
/rss/turbo-page/:
template: turbo-page
content_type: text/xml
- I create custom template turbo-page.hbs
I specify the following xml tag in this template:
<lastBuildDate>{{date format="ddd, DD MMM YYYY HH:mm:ss ZZ"}}</lastBuildDate>
This is publication time in RFC-822 format.
The problem is that my blog is in Russian.
Therefore, the output date is as follows:
<lastBuildDate>вт, 03 сент. 2019 01:58:17 +0300</lastBuildDate>
This is not valid XML markup. Date must be in English.
Howto disable date translate for custom routes? It is possible?
Or workaround?