Skip to content

Commit

Permalink
RSS improvements
Browse files Browse the repository at this point in the history
  • Loading branch information
jegtnes committed Feb 24, 2024
1 parent 7ea9cf8 commit fa9e499
Show file tree
Hide file tree
Showing 5 changed files with 11 additions and 10 deletions.
2 changes: 1 addition & 1 deletion src/_layouts/_partials/footer.njk
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<footer class="site-footer container flow">
<p><a class="inline-block" href="https://notbyai.fyi"><img src="/assets/images/not-by-ai.png" alt="Written by Human, Not by AI" width="150"></a></p>
<p>&copy; 2012-2024 Alex Jegtnes. Find me elsewhere on the internet at:</p>
<p>&copy; 2012-2024 Alex Jegtnes. <a href="/feed.xml">RSS feed</a>. Find me elsewhere on the internet at:</p>
<nav class="flush">
<ul>
<li><a href="https://indieweb.social/@jegtnes" rel="me">Mastodon</a>,</li>
Expand Down
7 changes: 4 additions & 3 deletions src/_layouts/global.njk
Original file line number Diff line number Diff line change
Expand Up @@ -21,10 +21,11 @@
custom=custom,
css=["/assets/styles/styles.css"]
%}
<link rel="icon" href="/favicon.ico" sizes="48x48" >
<link rel="alternate" type="application/atom+xml" href="/feed.xml" title="Alex Jegtnes' Blog RSS Feed">
<link rel="icon" href="/favicon.ico" sizes="48x48">
<link rel="icon" href="/favicon.svg" sizes="any" type="image/svg+xml">
<link rel="apple-touch-icon" href="/apple-touch-icon.png"/>
<link rel="manifest" href="/manifest.json" />
<link rel="apple-touch-icon" href="/apple-touch-icon.png">
<link rel="manifest" href="/manifest.json">
</head>
<body>
{% include './_partials/header.njk' %}
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
---
title: How to serve different assets in production environments with Ghost
date: 2014-05-01
date: 2014-05-02
location: Bristol, UK
layout: blog-post.njk
excerpt: "On implementing Handlebars helpers in Ghost and using them to serve different assets locally and in production."
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ The talented student [Tom de Wit](//twitter.com/ttomdewit) is looking for an int

I was asked to give some feedback on these, and this will follow below. It’s a comprehensive set of questions, so be wary that if these take place in an interview setting, it’s likely you’ll have been told a lot of this information before or during the interview itself. Bring a notebook. Before the interview, jot down the crucial information you know about the position and company, and during the interview, write down any useful information you pick up before you’re asked whether you have any questions. ([This is generally good advice in any interview setting](http://www.kalzumeus.com/2012/01/23/salary-negotiation/)).

> Do you know anyone who you’ve ever thought “Man, I thought they were competent, but then it turned out they had a notebook so I had to write them off?” No. Taking notes says “I’m attentive and detail-oriented and I care about what you say.”</dt>
> Do you know anyone who you’ve ever thought “Man, I thought they were competent, but then it turned out they had a notebook so I had to write them off?” No. Taking notes says “I’m attentive and detail-oriented and I care about what you say.”
If any of them remain unanswered at this stage, fire away! Most of these are great, and a lot are not specific to placements and interns.

Expand Down
8 changes: 4 additions & 4 deletions src/rss.njk
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
---
"base": "feed.xml"
"permalink": "/public/feed.xml"
eleventyExcludeFromCollections: true
metadata:
Expand All @@ -14,7 +15,7 @@ metadata:
<feed xmlns="http://www.w3.org/2005/Atom" xml:base="{{ metadata.url }}">
<title>{{ metadata.title }}</title>
<subtitle>{{ metadata.subtitle }}</subtitle>
<link href="{{ permalink | absoluteUrl(metadata.url) }}" rel="self"/>
<link href="{{ base | absoluteUrl(metadata.url) }}" rel="self"/>
<link href="{{ metadata.url }}"/>
<updated>{{ collections.post | getNewestCollectionItemDate | dateToRfc3339 }}</updated>
<id>{{ metadata.url }}</id>
Expand All @@ -29,8 +30,7 @@ metadata:
<link href="{{ absolutePostUrl }}"/>
<updated>{{ post.date | dateToRfc3339 }}</updated>
<id>{{ absolutePostUrl }}</id>
<content xml:lang="{{ metadata.language }}" type="html">{{ post.templateContent | htmlToAbsoluteUrls(absolutePostUrl) }}</content>
<summary xml:lang="{{ metadata.language }}" type="html">{{ post.data.excerpt | safe }}</summary>
</entry>
{%- endfor %}
</feed>

</feed>

0 comments on commit fa9e499

Please sign in to comment.