feat: add email sharing functionality, canonical URLs, and enhance metadata for SEO

This commit is contained in:
interlope committed 2026-06-02 23:10:32 +02:00
1 parent efc83ec9f3
commit d448574ff8
12 files changed
+513 -12

No files matched your search

+12
View File
@@ -3,6 +3,18 @@
// first so blowdit_icon() is available to head.php and every body template.
include(THEME_DIR_PHP.'icons.php');
// ---- Theme contact / social config ----
// The mailto icon uses Bludit's "Sender email" (Settings -> Advanced ->
// Email account settings). Leave it to auto-detect, or hard-set $blowditEmail
// below to override. Empty -> the icon is hidden.
$blowditEmail = '';
if (isset($site) && method_exists($site, 'getField')) {
$blowditEmail = $site->getField('emailFromAddress'); // Bludit's "Sender email"
if (empty($blowditEmail)) { $blowditEmail = $site->getField('email'); }
}
// $blowditEmail = 'you@example.com'; // <- uncomment to set manually
$blowditTwitterHandle = '@spleenftw'; // twitter:site / twitter:creator; '' to omit
// Read the theme from a cookie so the root element can be rendered
// pre-coloured. This paints the page in the theme colour from the first
// byte of every response, eliminating the white flash between navigations.