commit be7345422def6ccba8184a35018002794e5f8866 from: Omar Polo date: Sat Feb 12 18:39:26 2022 UTC final touches before the release commit - c2cdbf0fd06cbea7bc3bc5847e8283659e117555 commit + be7345422def6ccba8184a35018002794e5f8866 blob - cae83a8c2112d3942c7c698fb1914f244b23c9df blob + a30bbd83dd469a44bde10cebd0156accf6c49d13 --- site/Makefile +++ site/Makefile @@ -24,6 +24,7 @@ SUBST_WWW = ${SUBST} MANEXT=html EXT=html all: dirs manpages pages cp style.css www/ + convert ../art/tohru.png -resize 300x300 www/tohru.png dirs: mkdir -p gemini @@ -37,7 +38,7 @@ manpages: pages: .for p in ${PAGES} - ${SUBST_GEM} $p > gemini/$p + grep -v '^<' $p | ${SUBST_GEM} > gemini/$p ${SUBST_WWW} TITLE=${TITLE_${p}:Q} header.html > www/${p:.gmi=.html} ${MAKE} titles | ./menu.pl "${p:.gmi=.html}" >> www/${p:.gmi=.html} blob - fb394ec9eafd684c36c4f979871906de9e7d4225 blob + 572da81870c5970989ca029a148ffca6fdfb9568 --- site/gem2html +++ site/gem2html @@ -35,6 +35,8 @@ while (<>) { print "
";
 	} elsif ($in_pre) {
 		say san($_);
+	} elsif (m/^";
 		$in_list = 0;
@@ -49,6 +51,19 @@ while (<>) {
 		}
 		output("li", $1);
 	} elsif (m/^=>\s*([^\s]*)\s*(.*)$/) {
+		my $href = $1;
+		my $alt = $2 || $1;
+
+		# special case: images
+		if ($1 =~ /\.(png|jpg|svg)$/) {
+			if ($in_list) {
+				say "";
+				$in_list = 0;
+			}
+			say "$alt";
+			next;
+		}
+
 		if (!$in_list) {
 			$in_list = "link";
 			say "";
 			say "