aboutsummaryrefslogtreecommitdiffhomepage
path: root/templates/skeleton.php
diff options
context:
space:
mode:
authorwinter2025-03-10 20:13:40 +0000
committerwinter2025-03-10 20:13:40 +0000
commit30fa49bc3fa4f94184d693932e838c0672f24a16 (patch)
treed15bccf49c5c15905bb581e2f394b281ce852ee3 /templates/skeleton.php
parent2bd4a086b0f50b1b88faf846da91267290ca4b07 (diff)
add user rss/atom feeds
Diffstat (limited to 'templates/skeleton.php')
-rw-r--r--templates/skeleton.php7
1 files changed, 6 insertions, 1 deletions
diff --git a/templates/skeleton.php b/templates/skeleton.php
index 7f40611..5848054 100644
--- a/templates/skeleton.php
+++ b/templates/skeleton.php
@@ -7,7 +7,7 @@ $user = UserAccount::findByCurrentSession();
$settings = GlobalSettings::getInstance();
?>
<!DOCTYPE html>
-<html lang="en">
+<html lang="<?= get_ui_language() ?>">
<head>
<title><?= $pageTitle ?> &mdash; <?= $settings->get('instance.name') ?></title>
@@ -29,6 +29,11 @@ $settings = GlobalSettings::getInstance();
<?php if (isset($ogHandle)): ?>
<meta name="fediverse:creator" content="<?= $ogHandle ?>">
<?php endif; ?>
+ <!-- any custom links e.g. rss/atom feeds -->
+ <?php foreach (($headLinks ?? []) as $link): ?>
+ <link rel="<?= $link['rel'] ?>" type="<?= $link['type'] ?? '' ?>" href="<?= $link['href'] ?>"
+ title="<?= $link['title'] ?? '' ?>">
+ <?php endforeach; ?>
<!-- other page resources -->
<?php call_template('head_tags'); ?>
</head>