Add feed link to head section when available
This commit is contained in:
parent
180d3c8e22
commit
631c784efc
1 changed files with 3 additions and 0 deletions
|
|
@ -74,6 +74,9 @@ function getActiveClass($href) { return rtrim(parse_url($_SERVER['REQUEST_URI'],
|
||||||
<link rel="icon" href="/favicon.svg" type="image/svg+xml">
|
<link rel="icon" href="/favicon.svg" type="image/svg+xml">
|
||||||
<link rel="icon" href="/favicon.png" type="image/png">
|
<link rel="icon" href="/favicon.png" type="image/png">
|
||||||
<link href="/app/fonts/pt-serif/pt-serif.css" rel="stylesheet">
|
<link href="/app/fonts/pt-serif/pt-serif.css" rel="stylesheet">
|
||||||
|
<?php if (!empty($feedUrl)): ?>
|
||||||
|
<link rel="alternate" type="application/atom+xml" title="<?= htmlspecialchars($pageTitle ?? 'Feed') ?>" href="<?= htmlspecialchars($feedUrl) ?>">
|
||||||
|
<?php endif; ?>
|
||||||
</head>
|
</head>
|
||||||
|
|
||||||
<body class="<?php if (isset($dirName)) echo 'section-' . $dirName . ' '; ?><?php if (isset($pageName)) echo 'page-' . $pageName; ?>">
|
<body class="<?php if (isset($dirName)) echo 'section-' . $dirName . ' '; ?><?php if (isset($pageName)) echo 'page-' . $pageName; ?>">
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue