add pages
This commit is contained in:
parent
91a553acda
commit
e3ec2fdafe
7 changed files with 34 additions and 0 deletions
0
src/404.njk
Normal file
0
src/404.njk
Normal file
0
src/500.njk
Normal file
0
src/500.njk
Normal file
0
src/about.njk
Normal file
0
src/about.njk
Normal file
28
src/feed.njk
Normal file
28
src/feed.njk
Normal file
|
|
@ -0,0 +1,28 @@
|
|||
---
|
||||
permalink: feed.xml
|
||||
eleventyExcludeFromCollections: true
|
||||
---
|
||||
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<feed xmlns="http://www.w3.org/2005/Atom">
|
||||
<title>{{ site.name }}</title>
|
||||
<subtitle>{{ site.description }}</subtitle>
|
||||
<link href="{{ metadata.feedUrl }}" rel="self"/>
|
||||
<link href="{{ metadata.url }}"/>
|
||||
<updated>{{ collections.posts | getNewestCollectionItemDate | dateToRfc3339 }}</updated>
|
||||
<id>{{ site.url }}</id>
|
||||
<author>
|
||||
<name>{{ site.authorName }}</name>
|
||||
<email>{{ site.authorEmail }}</email>
|
||||
</author>
|
||||
{%- for post in collections.posts %}
|
||||
{% set absolutePostUrl %}{{ post.url | url | absoluteUrl(metadata.url) }}{% endset %}
|
||||
<entry>
|
||||
<title>{{ post.data.title }}</title>
|
||||
<link href="{{ absolutePostUrl }}"/>
|
||||
<updated>{{ post.date | dateToRfc3339 }}</updated>
|
||||
<id>{{ absolutePostUrl }}</id>
|
||||
<content type="html">{{ post.templateContent | htmlToAbsoluteUrls(absolutePostUrl) }}</content>
|
||||
</entry>
|
||||
{%- endfor %}
|
||||
</feed>
|
||||
3
src/robots.njk
Normal file
3
src/robots.njk
Normal file
|
|
@ -0,0 +1,3 @@
|
|||
---
|
||||
permalink: robots.txt
|
||||
---
|
||||
3
src/sitemap.njk
Normal file
3
src/sitemap.njk
Normal file
|
|
@ -0,0 +1,3 @@
|
|||
---
|
||||
permalink: sitemap.xml
|
||||
---
|
||||
0
src/tags.njk
Normal file
0
src/tags.njk
Normal file
Loading…
Reference in a new issue