~sircmpwn/drewdevault.com

55e265d26aeb003458b17b8c8a0c7c629699d1d4 — Drew DeVault a month ago e926b87
List gemini-exclusive posts on the WWW page
2 files changed, 21 insertions(+), 2 deletions(-)

A content/gemini.md
M layouts/index.html
A content/gemini.md => content/gemini.md +15 -0
@@ 0,0 1,15 @@
---
title: What is Gemini?
---

The [Gemini](https://gemini.circumlunar.space/) protocol is an alternative to
HTTP, and Gemtext is an alternative document format to HTML. This blog is
available over both Gemini and HTTP, and some content is exclusive to each.
To connect with Gemini, you will need a Gemini client. I wrote one called
[gmnlm][gmni], and there are more [listed here][others].

[gmni]: https://git.sr.ht/~sircmpwn/gmni
[others]: https://gemini.circumlunar.space/clients.html

Once you have your client working, direct it to `gemini://drewdevault.com` and
you'll be your way.

M layouts/index.html => layouts/index.html +6 -2
@@ 5,13 5,17 @@
    <h1>{{$.Title}}</h1>

    {{ range (where .Site.RegularPages "Section" "blog") }}
    {{- if .OutputFormats.Get "html" }}
    <div class="article">
      <span class="date">{{.Date.Format "January 2, 2006"}}</span>
      {{- if .OutputFormats.Get "html" }}
      <a href="{{.Permalink}}">{{.Title}}</a>
      {{- else if .OutputFormats.Get "gemtext" }}
      {{ with .OutputFormats.Get "gemtext" }}
      <a href="{{replace .Permalink "/gemini" "" 1 | safeURL}}">{{end}}{{.Title}}</a>
      <small>[<a href="/gemini.html">what is gemini://?</a>]</small>
      {{ end }}
    </div>
    {{ end }}
    {{ end }}
  </section>

  <aside>