Browse Source

add tables

update links
master
René Wagner 6 months ago
parent
commit
e1cbaf8c67
  1. 3
      README.md
  2. 15
      index.pl

3
README.md

@ -1,4 +1,7 @@
source of the gemini capsule:
gemini://when.willgemini.support/
Want to add some stuff? Open an issue or send a PR!
https://src.clttr.info/rwa/willgemini.support
Have fun!

15
index.pl

@ -1,7 +1,7 @@
#!/usr/bin/perl
# Copyright René Wagner 2020
# licenced under BSD 3-Clause licence
# https://git.sr.ht/~rwa/willgemini.support
# https://src.clttr.info/rwa/willgemini.support
use strict;
no warnings 'experimental';
@ -58,7 +58,7 @@ sub create_response
push @body, '';
given ($qs) {
when (/faq.*/) {
push @body, '=> https://git.sr.ht/~rwa/gmnifaq Soon.';
push @body, '=> https://src.clttr.info/rwa/gmnifaq Soon.';
}
when (/web.*/) {
push @body, 'It\'s meant to replace the web, not support it!';
@ -68,20 +68,23 @@ sub create_response
push @body, ('', '', '', '');
push @body, 'Seriously.';
}
when (/contentlength/) {
when (/.*length.*/) {
push @body, 'Why should we?';
push @body, ('', '');
push @body, 'So: Never.';
}
when (/heading.*/) {
when (/head.*/) {
push @body, 'It already does, just look at the question you asked me!';
}
when (/italics.*/) {
when (/ital.*/) {
push @body, 'Although considered essential for "serious writing" by some, gemini will most likely never support special markup for italics.';
}
when (/feed.*/) {
push @body, '=> gemini://gemini.circumlunar.space/docs/companion/subscription.gmi Do it the easy way.';
}
when (/tabl.*/) {
push @body, 'Seriously?';
}
default {
push @body, ('I don\'t understand what you mean. Anyway the answer is:', 'Most probably never.');
}
@ -92,7 +95,7 @@ sub create_response
push @body, '';
push @body, '=> gemini://gemini.circumlunar.space/docs/specification.gmi gemini is (almost) perfect the way it is now. See the spec for details.';
push @body, '';
push @body, '=> https://git.sr.ht/~rwa/willgemini.support The source of this capsule is hosted on Sourcehut.';
push @body, '=> https://src.clttr.info/rwa/willgemini.support Open an issue or a PR for additional stuff.';
return @body;
}

Loading…
Cancel
Save