website/include/head.shp

24 lines
883 B
Plaintext

<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf8">
<?shp
TITLE="$(escape "$TITLE")"
# uses "$TITLE | ~yosh" if TITLE exists, otherwise "~yosh"
printf "<title>%s</title>\n" "${TITLE:+"$TITLE | "}~yosh"
?>
<link rel="stylesheet" href="/~yosh/style/style.css">
<link rel="alternate" type="application/atom+xml" title="blog atom feed" href="/~yosh/blog/feed.atom">
<link rel="alternate" type="application/atom+xml" title="articles atom feed" href="/~yosh/articles/feed.atom">
<?shp
printf '<meta property="og:title" content="%s" />\n' "$TITLE"
printf '<meta property="og:type" content="%s" />\n' "${OG_TYPE:-website}"
printf '<meta property="og:url" content="https://unix.dog/~yosh/%s" />\n' \
"${_OUTFILE#"$_BUILDDIR/"}"
printf '<meta property="og:image" content="https://unix.dog/~yosh/%s" />\n' \
"${OG_IMG:-img/renard_lftanthology.png}"
?>
</head>