~rbdr/gemlog

18a5367720335c1aeb21877506f5dc27d954955a — Ruben Beltran del Rio 2 months ago 44124f5
blog-sync-up-1707925762579
4 files changed, 99 insertions(+), 0 deletions(-)

A templates/feed.xml
A templates/index.gmi
A templates/index.html
A templates/index.txt
A templates/feed.xml => templates/feed.xml +20 -0
@@ 0,0 1,20 @@
<?xml version="1.0"?>
<rss version="2.0" xmlns:blogChannel="http://backend.userland.com/blogChannelModule" xmlns:atom="http://www.w3.org/2005/Atom">
  <channel>
    <atom:link href="https://r.bdr.sh/gemlog/feed.xml" rel="self" type="application/rss+xml" />
    <title>Ruben's Gemlog</title>
    <link>https://r.bdr.sh/gemlog/</link>
    <description>This is the gemlog at r.bdr.sh.</description>
    <language>en</language>
    {{~ it.posts: post}}
      <item>
        <guid isPermaLink="false">rbdr:{{= post.id}}</guid>
        <pubDate>{{= post.createdOn}}</pubDate>
        <title>{{= post.title}}</title>
        <description>
          {{= post.html}}
        </description>
      </item>
    {{~}}
  </channel>
</rss>

A templates/index.gmi => templates/index.gmi +8 -0
@@ 0,0 1,8 @@
# Ruben's Gemlog Archive

=> https://r.bdr.sh/gemlog/feed.xml ๐Ÿ“ฐ RSS Feed
=> https://r.bdr.sh/gemlog/index.txt ๐Ÿ“‘ http text version (latest 3 posts)

{{= it.posts }}

=> ../ ๐Ÿชด Back to main page

A templates/index.html => templates/index.html +53 -0
@@ 0,0 1,53 @@
<!doctype 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 ruben's gemlog">

    <meta name="theme-color" content="#ffffff">

    <title class="p-name">Ruben's gemlog</title>

    <script src="./js/blog.js"></script>

    <link href="/css/style.css" rel="stylesheet">
    <link href="./feed.xml" rel="alternate" hreflang="en" title="RSS feed">

    <script type="module" src="//r.bdr.sh/js/animation.js"></script>

  </head>
  <body>
    <header aria-label="Logo" class="main-header">
      <h1>
        <canvas width=100 height=100></canvas>
        <a href="/gemlog">r.bdr.sh/gemlog</a>
      </h1>
    </header>
    <main>
    <p>
    Only 3 posts kept at a time.
    This blog is also available in <a href="./index.txt">txt</a>
    and <a href="./feed.xml">rss</a>.
    Full archive available in <a href="gemini://r.bdr.sh/gemlog">gemini</a>
    </p>
    <p>
    โ†’ <a href="/">home</a>.
    </p>
    {{~ it.posts: post}}
      <article class="h-entry" id="{{= post.index + 1}}">
        {{= post.html}}
      </article>
      <hr class="separator">
    {{~}}
    {{? it.posts.length === 0}}
      <h1>This is a fresh blog!</h1>
      <p>There are no posts yet.</p>
    {{?}}
    </main>
    <footer>
      <p>Press 1, 2, and 3 to switch. <a href="https://r.bdr.sh">r.bdr.sh</a></p>
    </footer>
  </body>
</html>

A templates/index.txt => templates/index.txt +18 -0
@@ 0,0 1,18 @@
โ•”โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•—
โ•‘                                                                              โ•‘
โ•‘                         The Blog at Unlimited Pizza                          โ•‘
โ•‘                                                                              โ•‘
โ•šโ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•
โ”Œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”
โ”‚                       Written by Rubรฉn Beltrรกn del Rรญo                       โ”‚
โ””โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”˜

{{~ it.posts: post}}
{{= post.raw}}
โ– โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ– 
{{~}}
{{? it.posts.length === 0}}
# This is a fresh blog!

There are no posts yet.
{{?}}