Commit Diff
Commit:
7d4298433581a746b52e8eead214a1a7377a3457
From:
Omar Polo <op@omarpolo.com>
Date:
Sat Aug 27 07:08:18 2022 UTC
Message:
move the logo to a separate file
commit - 098db09637d7e48e2be61f8abfe4b6bedda88498
commit + 7d4298433581a746b52e8eead214a1a7377a3457
blob - 4647a8cdcd53ce3902d0d9dee9a35eccda10a227
blob + 44da0108cbf11fbc8acc45ebd1e69f18d0d950d9
--- GotMArc.pm
+++ GotMArc.pm
@@ -7,13 +7,12 @@ our $logo = <<'EOF';
our @ISA = qw(Exporter);
our @EXPORT_OK = qw($logo san parse initpage endpage);
-our $logo = <<'EOF';
-<a href="https://gameoftrees.org" target="_blank">
- <img srcset='/got-tiny.png, /got-tiny@2x.png 2x'
- src='/got-tiny.png'
- width='64' height='39'
- alt='"GOT", but the "O" is a cute, smiling sun' /></a>
-EOF
+our $logo = do {
+ local $/ = undef;
+ open my $fh, "<", "logo-small.html"
+ or die "can't open logo-small.html: $!";
+ <$fh>;
+};
sub san {
my $str = shift;
blob - /dev/null
blob + c17ac15094ab166883c8b8a6b7f164fe6d0054d9 (mode 644)
--- /dev/null
+++ logo-small.html
@@ -0,0 +1,5 @@
+<a href="https://gameoftrees.org" target="_blank">
+ <img srcset='/got-tiny.png, /got-tiny@2x.png 2x'
+ src='/got-tiny.png'
+ width='64' height='39'
+ alt='"GOT", but the "O" is a cute, smiling sun' /></a>
Omar Polo