gemfedwiki

gemini fedwiki proxy
git clone git://jb55.com/gemfedwiki
Log | Files | Refs | README

commit a3d7e970065a75bbea26a48a5d7485732c08fa5e
parent 3c1ee7fc7dac5df49e5b2f53f5c94ad7833e39d3
Author: William Casarin <jb55@jb55.com>
Date:   Wed, 27 Oct 2021 19:30:26 -0700

fixes

Diffstat:
Mindex.gmi | 4++--
Mindex.js | 6++----
2 files changed, 4 insertions(+), 6 deletions(-)

diff --git a/index.gmi b/index.gmi @@ -1,6 +1,6 @@ -# fed.wiki gemini portal +# federated wiki gemini portal -Welcome to the fediwiki gemini portal. Here are some interesting links to get you started +Welcome to the fedwiki gemini portal. Here are some interesting links to get you started => /fed.wiki.org => /dayton.fed.wiki The Dayton Experiment Hyperbook diff --git a/index.js b/index.js @@ -12,10 +12,8 @@ function parse_links(text) let links = [] const matches = text.matchAll(/\[\[([^\]]+)\]\]/g) for (const match of matches) { - let [slug, name] = match[1].split(":").map(t => t.trim()) - if (name == null) - name = slug - slug = slugify(slug) + const name = match[1] + const slug = slugify(name) links.push({slug, name}) }