aboutsummaryrefslogtreecommitdiff
path: root/templates
diff options
context:
space:
mode:
Diffstat (limited to 'templates')
-rw-r--r--templates/feed.xml18
-rw-r--r--templates/index.html17
2 files changed, 29 insertions, 6 deletions
diff --git a/templates/feed.xml b/templates/feed.xml
new file mode 100644
index 0000000..d22d656
--- /dev/null
+++ b/templates/feed.xml
@@ -0,0 +1,18 @@
+<?xml version="1.0"?>
+<rss version="2.0" xmlns:blogChannel="http://backend.userland.com/blogChannelModule">
+ <channel>
+ <title>Blog at Unlimited Pizza 🍕</title>
+ <link>https://blog.unlimited.pizza</link>
+ <description>This is the blog at unlimited.pizza</description>
+ <language>en</language>
+ {{~ it.posts: post}}
+ <item>
+ <guid isPermaLink="false">unlimited-pizza:{{= post.id}}</guid>
+ <pubDate>{{= post.createdOn}}</pubDate>
+ <description>
+ {{= post.html}}
+ </description>
+ </item>
+ {{~}}
+ </channel>
+</rss>
diff --git a/templates/index.html b/templates/index.html
index 0c45ce2..3e37304 100644
--- a/templates/index.html
+++ b/templates/index.html
@@ -1,28 +1,33 @@
<!doctype html>
-<html>
+<html lang="en" class="h-feed">
<head>
<meta charset="utf-8">
+ <meta name="viewport" content="width=device-width, initial-scale=1">
+ <meta class="p-author" name="author" content="Rubén Beltrán del Río">
<meta name="description" content="This is the blog at unlimited.pizza">
- <title>blog 🍕</title>
+ <meta name="theme-color" content="#ffffff">
+
+ <title class="p-name">Blog at Unlimited Pizza 🍕</title>
<script src="/js/blog.js"></script>
- <link href="css/style.css" rel="stylesheet">
+ <link href="/css/style.css" rel="stylesheet">
+ <link href="/feed.xml" rel="alternate" hreflang="en" title="RSS feed">
</head>
<body>
- <header class="main-header">
+ <header aria-label="Logo" class="main-header">
<a href="/">Blog</a>
</header>
<main>
{{~ it.posts: post}}
- <article id="{{= post.id}}">
+ <article class="h-entry" id="{{= post.id}}">
{{= post.html}}
</article>
<hr>
{{~}}
- {{? it.posts}}
+ {{? it.posts.length === 0}}
<h1>This is a fresh blog!</h1>
<p>There are no posts yet.</p>
{{?}}