- Adding past community sessions

- Updated upcoming session with better img
- Fixing sort mechanism for on-demand
- Improving text on /community
- Updating instructions to reflect changes in sorting

Signed-off-by: Suzanne Daniels <suzanned@spotify.com>
This commit is contained in:
Suzanne Daniels
2022-03-23 10:38:18 +01:00
parent 48c10307f9
commit aaacf44834
8 changed files with 36 additions and 8 deletions
+2 -2
View File
@@ -22,7 +22,7 @@ const Background = props => {
What's the use of having fun if you can't share it? Exactly. Join
the vibrant community around the Backstage project. Be it on
GitHub, social media, Discord... You'll find a welcoming
environment, to ensure this we follow the{' '}
environment. To ensure this, we follow the{' '}
<a href="https://github.com/cncf/foundation/blob/master/code-of-conduct.md">
{' '}
CNCF Code of Conduct
@@ -74,7 +74,7 @@ const Background = props => {
Backstage (Backstage of Backstage? Backerstage?). An open
discussion with maintainers and contributors of Backstage.
</Block.Paragraph>
<Block.LinkButton href="/on-demand">Watch now</Block.LinkButton>
<Block.LinkButton href="/on-demand">Meetups</Block.LinkButton>
</Block.TextBox>
<Block.TextBox>
<Block.Graphic
+1 -1
View File
@@ -17,7 +17,7 @@ const ondemandDirectory = require('path').join(process.cwd(), 'data/on-demand');
const ondemandMetadata = fs
.readdirSync(ondemandDirectory)
.map(file => yaml.load(fs.readFileSync(`./data/on-demand/${file}`, 'utf8')))
.sort((b, a) => a.date.toLowerCase().localeCompare(b.date.toLowerCase()));
.reverse();
const truncate = text =>
text.length > 170 ? text.substr(0, 170) + '...' : text;