fix: feed data
This commit is contained in:
parent
54475a70ea
commit
3fbefc55cd
7 changed files with 10 additions and 23 deletions
|
@ -23,8 +23,6 @@ module.exports = function (eleventyConfig) {
|
|||
eleventyConfig.addPlugin(activityPubPlugin, {
|
||||
username: 'hi',
|
||||
domain: 'coryd.dev',
|
||||
outbox: true,
|
||||
outboxCollection: 'posts',
|
||||
alias: {
|
||||
username: 'cory',
|
||||
domain: 'social.lol',
|
||||
|
|
|
@ -1,4 +0,0 @@
|
|||
module.exports = (collection) => {
|
||||
if (!collection || !collection.length) return ''
|
||||
return collection[0]['publishedAt']
|
||||
}
|
|
@ -1,5 +1,6 @@
|
|||
{
|
||||
"name": "Cory Dransfeldt",
|
||||
"email": "hi@coryd.dev",
|
||||
"url": "https://coryd.dev",
|
||||
"title": "Cory Dransfeldt",
|
||||
"description": "I'm a software developer in Camarillo, California. I enjoy hanging out with my beautiful family and 4 rescue dogs, technology, automation, music, writing, reading and tv and movies.",
|
||||
|
|
|
@ -5,15 +5,12 @@
|
|||
{% block title %}Links • Cory Dransfeldt{% endblock %}
|
||||
</title>
|
||||
<link href="{{ pkg.homepage }}/links.xml" rel="self" />
|
||||
<link href="{{ pkg.homepage }}" />
|
||||
<link href="{{ pkg.homepage }}/" />
|
||||
<link rel="hub" href="https://pubsubhubbub.superfeedr.com/" />
|
||||
<updated>
|
||||
{% block update %}
|
||||
{{ collections.entries | rssLastUpdatedDate }}{% endblock %}
|
||||
</updated>
|
||||
<updated>{% block update %}{{ articles[0].content.library.last_favorited_date | date: "%Y-%m-%dT%H:%M:%S-08:00" }}{% endblock %}</updated>
|
||||
<id>{{ site.url }}</id>
|
||||
<author>
|
||||
<name>{{ site.author }}</name>
|
||||
<name>{{ site.name }}</name>
|
||||
<email>{{ site.email }}</email>
|
||||
</author>
|
||||
<generator uri="https://11ty.dev" version="{{ eleventy.version }}">{{ eleventy.generator }}</generator>
|
||||
|
|
|
@ -7,13 +7,10 @@
|
|||
<link href="{{ pkg.homepage }}/feed.xml" rel="self" />
|
||||
<link href="{{ pkg.homepage }}/" />
|
||||
<link rel="hub" href="https://pubsubhubbub.superfeedr.com/" />
|
||||
<updated>
|
||||
{% block update %}
|
||||
{{ collections.entries | rssLastUpdatedDate }}{% endblock %}
|
||||
</updated>
|
||||
<updated>{% block update %}{{ collections.posts[0].date | date: "%Y-%m-%dT%H:%M:%S-08:00" }}{% endblock %}</updated>
|
||||
<id>{{ site.url }}/</id>
|
||||
<author>
|
||||
<name>{{ site.author }}</name>
|
||||
<name>{{ site.name }}</name>
|
||||
<email>{{ site.email }}</email>
|
||||
</author>
|
||||
<generator uri="https://11ty.dev" version="{{ eleventy.version }}">{{ eleventy.generator }}</generator>
|
||||
|
|
|
@ -5,8 +5,7 @@ permalink: /feed.xml
|
|||
{% layout "./_includes/feed.liquid" %}
|
||||
{% block title %}All posts • Cory Dransfeldt{% endblock %}
|
||||
{% block self %}all.xml{% endblock %}
|
||||
{% block update %}
|
||||
{{ collections.posts | rssLastUpdatedDate }}{% endblock %}
|
||||
{% block update %}{{ collections.posts[0].date | date: "%Y-%m-%dT%H:%M:%S-08:00" }}{% endblock %}
|
||||
{% block entries %}
|
||||
{% assign posts = collections.posts | reverse %}
|
||||
{% for post in posts limit: 15 %}
|
||||
|
|
|
@ -5,8 +5,7 @@ permalink: /links.xml
|
|||
{% layout "./_includes/feed-links.liquid" %}
|
||||
{% block title %}Links • Cory Dransfeldt{% endblock %}
|
||||
{% block self %}links.xml{% endblock %}
|
||||
{% block update %}
|
||||
{{ articles | rssLastUpdatedDate }}{% endblock %}
|
||||
{% block update %}{{ articles[0].content.library.last_favorited_date | date: "%Y-%m-%dT%H:%M:%S-08:00" }}{% endblock %}
|
||||
{% block entries %}
|
||||
{% assign links = articles | reverse %}
|
||||
{% for link in links %}
|
||||
|
|
Reference in a new issue