Skip to content

Commit 5a36583

Browse files
committed
feat: allow to configure custom board description
The description will be served via the board page, and users may use it to provide details to their task boards in a SEO friendly way.
1 parent f1b72c3 commit 5a36583

File tree

2 files changed

+16
-0
lines changed

2 files changed

+16
-0
lines changed

packages/app/lib/apps/board-routes.js

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@ export default async function BoardRoutes(config, router) {
2323

2424
const {
2525
name,
26+
description,
2627
columns
2728
} = config;
2829

@@ -61,6 +62,14 @@ export default async function BoardRoutes(config, router) {
6162
'</script>'
6263
);
6364

65+
if (description) {
66+
67+
indexPage = indexPage.replace(
68+
'<meta name="description" content="Multi repository taskboard for GitHub issues, powered by Wuffle (https://wuffle.dev)." />',
69+
'<meta name="description" content="' + description + '" />'
70+
);
71+
}
72+
6473
return indexPage;
6574
}
6675

packages/app/wuffle.config.example.js

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,12 @@
66
* The name of your board, displayed in the board header.
77
*
88
*
9+
* ### Description
10+
*
11+
* Optional description of the board, will be served with the board front-end
12+
* for SEO purposes.
13+
*
14+
*
915
* ### Columns
1016
*
1117
* Valid fields for columns are
@@ -31,6 +37,7 @@
3137
export default {
3238

3339
name: 'My Wuffle Board',
40+
description: 'This board organizes all my tasks',
3441

3542
columns: [
3643
{ name: 'Inbox', label: null },

0 commit comments

Comments
 (0)