mirror of
https://codeberg.org/PostERG/xamxam.git
synced 2026-05-07 03:29:19 +02:00
fix favicon 404s: add <link rel=icon> to all pages, nginx 204 for /favicon.ico
This commit is contained in:
1
TODO.md
1
TODO.md
@@ -35,6 +35,7 @@
|
|||||||
|
|
||||||
## Pending
|
## Pending
|
||||||
|
|
||||||
|
- [x] Add favicon (`<link rel="icon">` → admin_favicon.svg) to all pages; nginx 204 for /favicon.ico
|
||||||
- [ ] Add pagination to répertoire student index (currently capped at 100)
|
- [ ] Add pagination to répertoire student index (currently capped at 100)
|
||||||
- [ ] Thumbnail generation / cover image support for home grid cards
|
- [ ] Thumbnail generation / cover image support for home grid cards
|
||||||
|
|
||||||
|
|||||||
@@ -183,6 +183,13 @@ server {
|
|||||||
add_header Content-Disposition "inline";
|
add_header Content-Disposition "inline";
|
||||||
}
|
}
|
||||||
|
|
||||||
|
# Silence favicon.ico 404s — browsers that ignore <link rel="icon"> still request this
|
||||||
|
location = /favicon.ico {
|
||||||
|
return 204;
|
||||||
|
access_log off;
|
||||||
|
log_not_found off;
|
||||||
|
}
|
||||||
|
|
||||||
# Root location - try files or 404
|
# Root location - try files or 404
|
||||||
location / {
|
location / {
|
||||||
try_files $uri $uri/ =404;
|
try_files $uri $uri/ =404;
|
||||||
|
|||||||
@@ -29,6 +29,7 @@ $pageTitle = 'Connexion';
|
|||||||
<meta charset="UTF-8">
|
<meta charset="UTF-8">
|
||||||
<meta name="viewport" content="width=device-width, initial-scale=1">
|
<meta name="viewport" content="width=device-width, initial-scale=1">
|
||||||
<title>Connexion – Posterg Admin</title>
|
<title>Connexion – Posterg Admin</title>
|
||||||
|
<link rel="icon" type="image/svg+xml" href="/assets/admin_favicon.svg">
|
||||||
<link rel="stylesheet" href="/assets/modern-normalize.min.css">
|
<link rel="stylesheet" href="/assets/modern-normalize.min.css">
|
||||||
<link rel="stylesheet" href="/assets/admin.css">
|
<link rel="stylesheet" href="/assets/admin.css">
|
||||||
</head>
|
</head>
|
||||||
|
|||||||
@@ -8,6 +8,7 @@ $currentNav = 'apropos';
|
|||||||
<meta charset="UTF-8">
|
<meta charset="UTF-8">
|
||||||
<meta name="viewport" content="width=device-width, initial-scale=1">
|
<meta name="viewport" content="width=device-width, initial-scale=1">
|
||||||
<title>À Propos – Posterg</title>
|
<title>À Propos – Posterg</title>
|
||||||
|
<link rel="icon" type="image/svg+xml" href="/assets/admin_favicon.svg">
|
||||||
<link rel="stylesheet" href="assets/modern-normalize.min.css">
|
<link rel="stylesheet" href="assets/modern-normalize.min.css">
|
||||||
<link rel="stylesheet" href="assets/common.css">
|
<link rel="stylesheet" href="assets/common.css">
|
||||||
<link rel="stylesheet" href="assets/apropos.css">
|
<link rel="stylesheet" href="assets/apropos.css">
|
||||||
|
|||||||
@@ -37,6 +37,7 @@ $currentNav = '';
|
|||||||
<meta charset="UTF-8">
|
<meta charset="UTF-8">
|
||||||
<meta name="viewport" content="width=device-width, initial-scale=1">
|
<meta name="viewport" content="width=device-width, initial-scale=1">
|
||||||
<title>Posterg</title>
|
<title>Posterg</title>
|
||||||
|
<link rel="icon" type="image/svg+xml" href="/assets/admin_favicon.svg">
|
||||||
<link rel="stylesheet" href="assets/modern-normalize.min.css">
|
<link rel="stylesheet" href="assets/modern-normalize.min.css">
|
||||||
<link rel="stylesheet" href="assets/common.css">
|
<link rel="stylesheet" href="assets/common.css">
|
||||||
<link rel="stylesheet" href="assets/main.css">
|
<link rel="stylesheet" href="assets/main.css">
|
||||||
|
|||||||
@@ -68,6 +68,7 @@ $searchBarValue = $_GET['query'] ?? '';
|
|||||||
<meta charset="UTF-8">
|
<meta charset="UTF-8">
|
||||||
<meta name="viewport" content="width=device-width, initial-scale=1">
|
<meta name="viewport" content="width=device-width, initial-scale=1">
|
||||||
<title>Répertoire – Posterg</title>
|
<title>Répertoire – Posterg</title>
|
||||||
|
<link rel="icon" type="image/svg+xml" href="/assets/admin_favicon.svg">
|
||||||
<link rel="stylesheet" href="assets/modern-normalize.min.css">
|
<link rel="stylesheet" href="assets/modern-normalize.min.css">
|
||||||
<link rel="stylesheet" href="assets/common.css">
|
<link rel="stylesheet" href="assets/common.css">
|
||||||
<link rel="stylesheet" href="assets/search.css">
|
<link rel="stylesheet" href="assets/search.css">
|
||||||
|
|||||||
@@ -24,6 +24,7 @@ $currentNav = '';
|
|||||||
<meta charset="UTF-8">
|
<meta charset="UTF-8">
|
||||||
<meta name="viewport" content="width=device-width, initial-scale=1">
|
<meta name="viewport" content="width=device-width, initial-scale=1">
|
||||||
<title><?= htmlspecialchars($data['title']) ?> – Posterg</title>
|
<title><?= htmlspecialchars($data['title']) ?> – Posterg</title>
|
||||||
|
<link rel="icon" type="image/svg+xml" href="/assets/admin_favicon.svg">
|
||||||
<link rel="stylesheet" href="assets/modern-normalize.min.css">
|
<link rel="stylesheet" href="assets/modern-normalize.min.css">
|
||||||
<link rel="stylesheet" href="assets/common.css">
|
<link rel="stylesheet" href="assets/common.css">
|
||||||
<link rel="stylesheet" href="assets/tfe.css">
|
<link rel="stylesheet" href="assets/tfe.css">
|
||||||
|
|||||||
@@ -4,6 +4,7 @@
|
|||||||
<meta charset="UTF-8">
|
<meta charset="UTF-8">
|
||||||
<meta name="viewport" content="width=device-width, initial-scale=1">
|
<meta name="viewport" content="width=device-width, initial-scale=1">
|
||||||
<title><?= htmlspecialchars($pageTitle ?? 'Admin') ?> – Posterg</title>
|
<title><?= htmlspecialchars($pageTitle ?? 'Admin') ?> – Posterg</title>
|
||||||
|
<link rel="icon" type="image/svg+xml" href="/assets/admin_favicon.svg">
|
||||||
<link rel="stylesheet" href="/assets/modern-normalize.min.css">
|
<link rel="stylesheet" href="/assets/modern-normalize.min.css">
|
||||||
<link rel="stylesheet" href="/assets/admin.css">
|
<link rel="stylesheet" href="/assets/admin.css">
|
||||||
<?php if (php_sapi_name() === 'cli-server'): ?>
|
<?php if (php_sapi_name() === 'cli-server'): ?>
|
||||||
|
|||||||
@@ -7,6 +7,7 @@
|
|||||||
<meta name="author" content="">
|
<meta name="author" content="">
|
||||||
<meta name="description" content="">
|
<meta name="description" content="">
|
||||||
<title><?= isset($pageTitle) ? htmlspecialchars($pageTitle) . ' - Posterg' : 'Posterg' ?></title>
|
<title><?= isset($pageTitle) ? htmlspecialchars($pageTitle) . ' - Posterg' : 'Posterg' ?></title>
|
||||||
|
<link rel="icon" type="image/svg+xml" href="/assets/admin_favicon.svg">
|
||||||
<link rel="stylesheet" href="assets/modern-normalize.min.css">
|
<link rel="stylesheet" href="assets/modern-normalize.min.css">
|
||||||
<link rel="stylesheet" href="assets/common.css">
|
<link rel="stylesheet" href="assets/common.css">
|
||||||
<?php if (isset($additionalCSS)): ?>
|
<?php if (isset($additionalCSS)): ?>
|
||||||
|
|||||||
Reference in New Issue
Block a user