feat(wiki): serve the legal pages at /terms-of-service and /privacy-policy
Discord, and most platforms, ask for a terms URL and a privacy URL in a form field; pasting a `/wiki/...` address there reads like an afterthought. Both pages now answer at the root, while everything else stays under `/wiki/`. The API states each page's address instead of leaving the front to rebuild it, so there is one place that decides. Existing pages are renamed rather than recreated, keeping whatever has already been written in them. Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
This commit is contained in:
1 parent
e1b9a5cc77
commit
3d0e21d7cb
7 files changed
+83
-26
No files matched your search
@@ -167,7 +167,8 @@ export function render(host, { state }) {
|
||||
'div',
|
||||
{},
|
||||
h('strong', { text: page.title }),
|
||||
h('div', { class: 'muted', text: page.summary || `/wiki/${page.slug}` }),
|
||||
h('div', { class: 'muted', text: page.summary || page.path }),
|
||||
h('div', { class: 'muted', style: { fontFamily: 'var(--mono)' }, text: page.path }),
|
||||
),
|
||||
},
|
||||
{ label: 'Catégorie', render: (page) => badge(page.category, 'info') },
|
||||
@@ -196,7 +197,7 @@ export function render(host, { state }) {
|
||||
page.published &&
|
||||
h('a', {
|
||||
class: 'btn btn-ghost btn-sm',
|
||||
href: `/wiki/${page.slug}`,
|
||||
href: page.path,
|
||||
target: '_blank',
|
||||
rel: 'noreferrer',
|
||||
text: 'Voir',
|
||||
|
||||
Reference in new issue
Block a user