my $txt = do { local $/; <STDIN> };
+
my $title = html_esc($txt =~ /\A([^\n]+)/);
$title =~ s/^\s+|\s+$//g;
if ($opt_lang eq 'fa') {
} else {
$title .= ' — bandali' if $title !~ /bandali/;
}
-my ($url) = $txt =~ /(?:plain text|متن ساده): (.*)\r?\n?\z/;
+
+my ($upd, $pub, $url) = $txt =~ /(.*)\r?\n(.*)\r?\n(.*)\r?\n?\z/;
+($upd) = $upd =~ /(?:updated|ویرایش): (.*)/ if $upd;
+($pub) = $pub =~ /(?:published|انتشار): (.*)/ if $pub;
+($url) = $url =~ /(?:plain text|متن ساده): (.*)/ if $url;
$url = 'https://bndl.org/bandali-cv.txt'
if (!$url and $title =~ /curriculum vitae/);
$url = html_esc($url) if $url;
<meta http-equiv="Content-Type"
content="text/html; charset=utf-8" />\n),
"<title>$title</title>\n",
+ qq(<link rel="icon" href="data:,">\n),
$url ? qq(<link rel="alternate" href="$url"
title="plain text" type="text/plain" />\n) : '',
($opt_index and $opt_lang eq 'en')