diff options
| author | Ben Beltran <ben@nsovocal.com> | 2020-06-02 21:34:29 +0200 |
|---|---|---|
| committer | Ben Beltran <ben@nsovocal.com> | 2020-06-02 21:34:29 +0200 |
| commit | db7b464d701c7d48777ddd38a10f69093cd5442c (patch) | |
| tree | 788d01018ac3190b1e5d8f4f26e8fd379d6a74fa /templates | |
| parent | 863ccf104e7cae08268b9e46896b82a9918a22fd (diff) | |
| parent | 04b71c5478dea42937a3288aed9598663c6dab0d (diff) | |
Merge branch 'feature/rbdr-rss-support' into develop
Diffstat (limited to 'templates')
| -rw-r--r-- | templates/feed.xml | 18 | ||||
| -rw-r--r-- | templates/index.html | 17 |
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> {{?}} |