-
-
Notifications
You must be signed in to change notification settings - Fork 1
/
feed.xml
56 lines (48 loc) · 2.63 KB
/
feed.xml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
---
layout: null
---
<?xml version="1.0" encoding="UTF-8" ?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="ja">
<generator uri="https://jekyllrb.com/" version="{{ jekyll.version }}">Jekyll</generator>
<link href="{{ page.url | absolute_url }}" rel="self" type="application/atom+xml" />
<link href="{{ '/' | absolute_url }}" rel="alternate" type="text/html" hreflang="ja" />
<link href="https://yasslab.jp/" rel="alternate" type="text/html"/>
<updated>{{ site.time | date_to_xmlschema }}</updated>
<id>{{ page.url | absolute_url | xml_escape }}</id>
<title type="html">{{ site.company.ja.name | smartify | xml_escape }}</title>
<subtitle>{{ site.company.ja.description | xml_escape }}</subtitle>
<author>
<name>{{ site.company.ja.name | xml_escape }}</name>
<email>{{ site.company.email | xml_escape }}</email>
<uri>{{ site.url | xml_escape }}</uri>
</author>
{% for post in site.posts limit: 10 %}
{% assign current_time = site.time | date: '%s' | to_integer %}
{% assign published_at = post.date | date: '%s' | to_integer | plus: 32400 %}
{% if published_at > current_time %}{% continue %}{% endif %}
<entry xml:lang="ja">
<title type="html">{{ post.title | smartify | strip_html | normalize_whitespace | xml_escape }}</title>
<link href="{{ post.url | absolute_url }}" rel="alternate" type="text/html" title="{{ post.title | xml_escape }}" />
<published>{{ post.date | date_to_xmlschema }}</published>
<updated>{{ post.last_modified_at | default: post.date | date_to_xmlschema }}</updated>
<id>{{ post.id | absolute_url | xml_escape }}</id>
<content type="html" xml:base="{{ post.url | absolute_url | xml_escape }}">{{ post.content | strip | xml_escape }}</content>
<author>
<name>{{ site.authors[post.author].name | default: site.company.ja.name | xml_escape }}</name>
<email>{{ site.authors[post.author].email | default: site.company.email | xml_escape }}</email>
<uri>{{ site.authors[post.author].uri | default: site.url | xml_escape }}</uri>
</author>
{% if post.category %}
<category term="{{ post.category | xml_escape }}" />
{% endif %}
{% for tag in post.tags %}
<category term="{{ tag | xml_escape }}" />
{% endfor %}
{% if post.excerpt and post.excerpt != empty %}
<summary type="html">{{ post.excerpt | strip_html | normalize_whitespace | xml_escape }}</summary>
{% endif %}
<media:thumbnail xmlns:media="http://search.yahoo.com/mrss/"
url="https://yasslab.jp/img/logos/1000x1000.png" />
</entry>
{% endfor %}
</feed>