Changeset 1ff0043 in Klonkt
- Timestamp:
- 06/28/2026 04:12:48 PM (2 months ago)
- Branches:
- main
- Children:
- f79a471
- Parents:
- 897c33b
- Location:
- src/views
- Files:
-
- 2 edited
-
pages/admin-seo.ejs (modified) (3 diffs)
-
shell.ejs (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
src/views/pages/admin-seo.ejs
r897c33b r1ff0043 29 29 <label> 30 30 <span><%= t('aseo.canonical') %> <small class="form-hint-inline">— <%= t('aseo.canonical_hint') %></small></span> 31 <input type="text" name="canonical" value="<%= site.canonical || '' %>" placeholder="https:// jouw-domein.com" maxlength="200">31 <input type="text" name="canonical" value="<%= site.canonical || '' %>" placeholder="https://yourdomain.com" maxlength="200"> 32 32 </label> 33 33 <label> … … 41 41 <label> 42 42 <span><%= t('aseo.og_image') %> <small class="form-hint-inline">— <%= t('aseo.og_image_hint') %></small></span> 43 <input type="text" name="og_image_default" value="<%= site.og_image_default || '' %>" placeholder="https:// jouw-domein.com/share.jpg" maxlength="500">43 <input type="text" name="og_image_default" value="<%= site.og_image_default || '' %>" placeholder="https://yourdomain.com/share.jpg" maxlength="500"> 44 44 </label> 45 45 <label> … … 72 72 <label> 73 73 <span><%= t('aseo.publisher_url') %></span> 74 <input type="text" name="publisher_url" value="<%= site.publisher_url || '' %>" placeholder="https:// jouw-domein.com" maxlength="200">74 <input type="text" name="publisher_url" value="<%= site.publisher_url || '' %>" placeholder="https://yourdomain.com" maxlength="200"> 75 75 </label> 76 76 <label> 77 77 <span><%= t('aseo.publisher_logo') %></span> 78 <input type="text" name="publisher_logo" value="<%= site.publisher_logo || '' %>" placeholder="https:// jouw-domein.com/logo.png" maxlength="500">78 <input type="text" name="publisher_logo" value="<%= site.publisher_logo || '' %>" placeholder="https://yourdomain.com/logo.png" maxlength="500"> 79 79 </label> 80 80 </fieldset> -
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)