From c8beae38513f50eb45c55b24a0d27656a13f5cd5 Mon Sep 17 00:00:00 2001 From: Alexander Lehmann Date: Sat, 18 Mar 2023 19:43:19 +0100 Subject: [PATCH] skip cgi-bin dir --- gemini2html.pl | 5 +++++ template.html | 5 ++++- 2 files changed, 9 insertions(+), 1 deletion(-) diff --git a/gemini2html.pl b/gemini2html.pl index e4eb8c7..789040e 100644 --- a/gemini2html.pl +++ b/gemini2html.pl @@ -11,6 +11,11 @@ $TARGET=shift; for my $f (@FILES) { print "$f\n"; + if($f =~ m@/cgi-bin/@) { + print "skipping\n"; + next; + } + $target_dir=$f; $target_dir=~s@/[^/]+$@@; diff --git a/template.html b/template.html index 3dd0ac2..981790e 100644 --- a/template.html +++ b/template.html @@ -8,8 +8,11 @@ You are visiting a site converted from Gemtext to HTML, what you - really want to do s visit is the site with the Gemini protocol + really want is to visit the site with the Gemini protocol at gemini://gemini.lehmann.cx/
+ The site was converted + with gemini2html.
$body$ +