Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions lib/config.js
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ const DEFAULTS = {
template: builder,
indicies,
bots: true,
head: [],
title: 'StatusBoard',
description: 'Project StatusBoard',
issueLabels: ['top priority', 'good first issue', 'help wanted', 'discussion', 'meeting']
Expand All @@ -40,6 +41,7 @@ class Config {
// All the dynamic stuff for a project
this.title = opts.title || DEFAULTS.title
this.description = opts.description || DEFAULTS.description
this.head = opts.head || DEFAULTS.head

// Include bots in stats
this.bots = opts.bots === undefined ? DEFAULTS.bots : opts.bots
Expand Down
15 changes: 11 additions & 4 deletions template/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,18 @@
<title><%= title %></title>
<meta name="description" content="<%= description %>">
<meta name="viewport" content="width=device-width, initial-scale=1">

<!-- <link rel="manifest" href="site.webmanifest"> -->
<!-- <link rel="apple-touch-icon" href="icon.png"> -->
<meta name="robots" content="index, follow" />
<meta name="googlebot" content="index, follow" />
<meta name="theme-color" content="#fafafa">
<!-- Place favicon.ico in the root directory -->

<meta property="og:type" content="website" />
<meta property="og:title" content="<%= title %>" />
<meta property="og:description" content="<%= description %>" />

<meta name="twitter:title" content="<%= title %>" />
<meta name="twitter:description" content="<%= description %>" />

<%- head.join('\n') %>

<link href="<%= files.css.index %>" rel="stylesheet" />
<script>
Expand Down
5 changes: 4 additions & 1 deletion test/fixtures/config.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,10 @@ module.exports = {

title: 'StatusBoard Test',
description: 'A test for StatusBoard',

head: [
'<link rel="me" href="https://social.lfx.dev/@nodejs" />',
'<meta name="fediverse:creator" content="@nodejs@social.lfx.dev" />'
],
orgs: [
'pkgjs'
],
Expand Down