Changeset 1ff0043 in Klonkt for src/views/shell.ejs
- Timestamp:
- 06/28/2026 04:12:48 PM (2 months ago)
- Branches:
- main
- Children:
- f79a471
- Parents:
- 897c33b
- File:
-
- 1 edited
-
src/views/shell.ejs (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
src/views/shell.ejs
r897c33b r1ff0043 42 42 } 43 43 44 // ── Canonical URL (only when we have one configured) ───────────── 44 // ── Canonical URL: per-site override (admin SEO), else the .env base 45 // (PUBLIC_BASE_URL, via ogOrigin → falls back to the request host) ── 45 46 let _canonical = null; 46 if (safeSite.canonical) { 47 const _base = safeSite.canonical.replace(/\/+$/, ''); 47 const _canonBase = safeSite.canonical || (typeof ogOrigin !== 'undefined' ? ogOrigin : ''); 48 if (_canonBase) { 49 const _base = _canonBase.replace(/\/+$/, ''); 48 50 let _path = '/'; 49 51 if (typeof post !== 'undefined' && post && post.slug) _path = '/' + post.slug;
Note:
See TracChangeset
for help on using the changeset viewer.
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)