Changeset 4c5169f in Klonkt for src/routes
- Timestamp:
- 06/14/2026 03:37:12 PM (3 months ago)
- Branches:
- main
- Children:
- 337ec5a
- Parents:
- 6e0249f
- Location:
- src/routes
- Files:
-
- 2 edited
-
admin-settings.js (modified) (2 diffs)
-
hub.js (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
src/routes/admin-settings.js
r6e0249f r4c5169f 26 26 hubTagline: getSetting('hub_tagline') || '', 27 27 hubIntro: getSetting('hub_intro') || '', 28 hubHeroImage: getSetting('hub_hero_image') || '', 28 29 success: req.query.success || null, 29 30 }); … … 43 44 setSetting('hub_intro', (req.body.hub_intro || '').toString().slice(0, 400).trim()); 44 45 } 46 if (typeof req.body.hub_hero_image !== 'undefined') { 47 setSetting('hub_hero_image', (req.body.hub_hero_image || '').toString().slice(0, 300).trim()); 48 } 45 49 res.redirect('/admin/settings?success=' + encodeURIComponent('Opgeslagen')); 46 50 }); -
src/routes/hub.js
r6e0249f r4c5169f 37 37 // ALLE PrutFolio's (elke user, incl. de admin z'n eigen site) voor de roster. 38 38 const artists = db.prepare(` 39 SELECT s.slug, s.title, s.tagline, s.profile_photo, 39 SELECT s.slug, s.title, s.tagline, s.profile_photo, s.accent, 40 40 (SELECT COUNT(*) FROM posts WHERE site_id = s.id AND status = 'published') AS post_count 41 41 FROM sites s … … 49 49 tagline: getSetting('hub_tagline') || '', 50 50 intro: getSetting('hub_intro') || '', 51 heroImage: getSetting('hub_hero_image') || '', 51 52 }; 52 53
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)