common: format page attribute "image" as og header
[sheet.git] / dieren.plp
index f7935fee7562cc61ab4bb820138c1cd62421c73d..03d0dc91e670121a189677f618f04ee235317f0a 100644 (file)
@@ -32,9 +32,6 @@ $Request ||= 'standaard';
 my $pageinfo = $subpages{$Request}
        or Html(), Abort("Onbekende dierenpagina <q>$Request</q>", '404 request not found');
 
-my $proto = sprintf('http%s://', !!$ENV{HTTPS} && 's');
-my $preview = "$proto$ENV{HTTP_HOST}/dieren.jpg";
-
 Html({
        title => $pageinfo->{title}.' cheat sheet',
        version => '1.1',
@@ -45,8 +42,8 @@ Html({
                relatie vernoemd vernoeming combinatie samenstelling voorvoegsel onverwant
                land zee lucht  animals dutch language
        '],
+       image => 'dieren.jpg',
        raw => <<"EOT",
-<meta property="og:image" content="$preview" />
 <style>
 figure[hidden] {
        opacity: 0; /* secret */