Skip to content

Commit 9853aae

Browse files
committed
Produce rss feed
1 parent 82da846 commit 9853aae

File tree

4 files changed

+24
-0
lines changed

4 files changed

+24
-0
lines changed

_parts/part1.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
---
22
title: Part 1 - Introduction and Setting up the REPL
3+
date: 2017-08-30
34
---
45

56
As a web developer, I use relational databases every day at my job, but they're a black box to me. Some questions I have:

_parts/part2.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
---
22
title: Part 2 - World's Simplest SQL Compiler and Virtual Machine
3+
date: 2017-08-31
34
---
45

56
We're making a clone of sqlite. The "front-end" of sqlite is a SQL compiler that parses a string and outputs an internal representation called bytecode.

_parts/part3.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
---
22
title: Part 3 - An In-Memory, Append-Only, Single-Table Database
3+
date: 2017-09-01
34
---
45

56
We're going to start small by putting a lot of limitations on our database. For now, it will:

feed.xml

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
---
2+
layout: none
3+
---
4+
<?xml version="1.0" encoding="UTF-8"?>
5+
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
6+
<channel>
7+
<title>{{ site.name | xml_escape }}</title>
8+
<description>{{ site.description | xml_escape }}</description>
9+
<link>{{ site.url }}</link>
10+
<atom:link href="{{ site.url }}/feed.xml" rel="self" type="application/rss+xml" />
11+
{% for part in site.parts limit:10 %}
12+
<item>
13+
<title>{{ part.title | xml_escape }}</title>
14+
<description>{{ part.content | xml_escape }}</description>
15+
<pubDate>{{ part.date | date: "%a, %d %b %Y %H:%M:%S %z" }}</pubDate>
16+
<link>{{ site.url }}/{{ part.url }}</link>
17+
<guid isPermaLink="true">{{ site.url }}/{{ part.url }}</guid>
18+
</item>
19+
{% endfor %}
20+
</channel>
21+
</rss>

0 commit comments

Comments
 (0)