mirror of
https://github.com/godotengine/godot-website.git
synced 2026-01-04 06:09:55 +03:00
adds rss.json file, moves some meta-data out into meta file for consolidation (#649)
This commit is contained in:
2
_data/meta.yml
Normal file
2
_data/meta.yml
Normal file
@@ -0,0 +1,2 @@
|
||||
title: Godot Engine Official
|
||||
description: Godot is a 2D and 3D free and open source game engine developed by a community of contributors. It provides a huge set of common tools, so you can just focus on making your game without reinventing the wheel.
|
||||
23
pages/rss.json
Normal file
23
pages/rss.json
Normal file
@@ -0,0 +1,23 @@
|
||||
---
|
||||
permalink: /rss.json
|
||||
---
|
||||
|
||||
{
|
||||
"title": "{{ site.data.meta.title }}",
|
||||
"description": "{{ site.data.meta.description }}",
|
||||
"items": [
|
||||
{% assign latest_posts = site.article | sort:"date" | reverse %}
|
||||
{% for post in latest_posts limit:24 %}
|
||||
{
|
||||
"title": "{{ post.title | escape }}",
|
||||
"link": "{{ site.url }}{{ post.url }}",
|
||||
"description": "{{ post.excerpt | escape }}",
|
||||
"categories": [{% for category in post.categories %}"{{ site.data.categories[category][0].name }}"{% unless forloop.last %},{% endunless %}{% endfor %}],
|
||||
"guid": "{{ site.url }}{{ post.url }}",
|
||||
"dc:creator": "{{ post.author | escape }}",
|
||||
"pubDate": "{{ post.date | date: "%a, %d %b %Y %X +0000" }}",
|
||||
"image": "{{ site.url }}{{ post.image }}"
|
||||
}{% unless forloop.last %},{% endunless %}
|
||||
{% endfor %}
|
||||
]
|
||||
}
|
||||
@@ -6,9 +6,9 @@ permalink: /rss.xml
|
||||
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
|
||||
<channel>
|
||||
|
||||
<title>Godot Engine Official</title>
|
||||
<link>{{ site.url }}</link>
|
||||
<description>Godot is a 2D and 3D free and open source game engine developed by a community of contributors. It provides a huge set of common tools, so you can just focus on making your game without reinventing the wheel.</description>
|
||||
<title>{{ site.data.meta.title }}</title>
|
||||
<link>{{ site.meta.url }}</link>
|
||||
<description>{{ site.data.description }}</description>
|
||||
<atom:link href="{{ site.url }}/rss.xml" rel="self" type="application/rss+xml" />
|
||||
|
||||
{% assign latest_posts = site.article | sort:"date" | reverse %}
|
||||
|
||||
Reference in New Issue
Block a user