diff --git a/docs/Gemfile b/docs/Gemfile index 247a537dc..e0279f576 100644 --- a/docs/Gemfile +++ b/docs/Gemfile @@ -2,5 +2,4 @@ source 'https://rubygems.org' gem 'github-pages', group: :jekyll_plugins gem 'jekyll-redirect-from', group: :jekyll_plugins gem 'jekyll-seo-tag' -gem 'jekyll-feed' diff --git a/docs/_config.yml b/docs/_config.yml index 8c4472024..d5538e3f7 100644 --- a/docs/_config.yml +++ b/docs/_config.yml @@ -14,7 +14,6 @@ lang: en plugins: - jekyll-redirect-from - jekyll-seo-tag - - jekyll-feed github: [metadata] diff --git a/docs/cn/feed.xml b/docs/cn/feed.xml new file mode 100644 index 000000000..5deda2d27 --- /dev/null +++ b/docs/cn/feed.xml @@ -0,0 +1,40 @@ +--- +layout: null +--- + + + + {{ site.title | xml_escape }} + {% if site.description %}{{ site.description | xml_escape }}{% endif %} + {{ site.feed_update_period | default: "daily" | xml_escape }} + {{ site.feed_update_frequency | default: 1 | xml_escape }} + {{ site.url }} + + {% for post in site.posts limit:1 %}{{ post.date | date_to_rfc822 }}{% endfor %} + {% for post in site.categories.blog_cn %} + + {{ post.title | xml_escape }} + {% if post.author.name %} + {{ post.author.name | xml_escape }} + {% else %} + {{ site.author.name | xml_escape }} + {% else %} + {{ site.author.name | xml_escape }} + {% endif %} + {% if post.excerpt %} + {{ post.excerpt | xml_escape }} + {% else %} + {{ post.content | xml_escape }} + {% endif %} + {{ post.date | date_to_rfc822 }} + {{ site.url }}{{ post.url }} + {{ site.url }}{{ post.url }} + + {% endfor %} + + + diff --git a/docs/feed.xml b/docs/feed.xml new file mode 100644 index 000000000..6f6e857ac --- /dev/null +++ b/docs/feed.xml @@ -0,0 +1,35 @@ +--- +layout: null +--- + + + + {{ site.title | xml_escape }} + {% if site.description %}{{ site.description | xml_escape }}{% endif %} + {{ site.feed_update_period | default: "daily" | xml_escape }} + {{ site.feed_update_frequency | default: 1 | xml_escape }} + {{ site.url }} + + {% for post in site.posts limit:1 %}{{ post.date | date_to_rfc822 }}{% endfor %} + {% for post in site.categories.blog %} + + {{ post.title | xml_escape }} + {% if post.author.name %} + {{ post.author.name | xml_escape }} + {% endif %} + {% if post.excerpt %} + {{ post.excerpt | xml_escape }} + {% else %} + {{ post.content | xml_escape }} + {% endif %} + {{ post.date | date_to_rfc822 }} + {{ site.url }}{{ post.url }} + {{ site.url }}{{ post.url }} + + {% endfor %} + +