Skip to content

Commit

Permalink
Merge pull request #7 from cloud-native-austria/feat/HomeLayout
Browse files Browse the repository at this point in the history
Feat/home layout
  • Loading branch information
DrackThor authored Aug 26, 2024
2 parents 7a2dfe8 + 1ba1a04 commit bcc0093
Show file tree
Hide file tree
Showing 22 changed files with 1,929 additions and 2,084 deletions.
9 changes: 9 additions & 0 deletions cna/chapter/index.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
---
title: my hello page title
description: my hello page description
hide_table_of_contents: true
---

# Hello

How are you?
22 changes: 17 additions & 5 deletions cna/docusaurus.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -58,9 +58,9 @@ const config = {
name: 'location-overview-plugin',
async loadContent() {
const fs = require('fs');
const locations = [];

const locations = [];

const locationFolders = fs.readdirSync("./src/pages", { withFileTypes: true })
.filter(folder => folder.isDirectory())
.map(folder => folder.name);
Expand All @@ -78,11 +78,11 @@ const config = {
location: folder.charAt(0).toUpperCase() + folder.slice(1),
logo: '/img/'+folder+'.svg',
meetings: []
});
});

dateFiles.forEach(file => {
const fileDateString = file.substring(0, 8);
locations[locations.length-1].meetings.push(fileDateString);
locations[locations.length-1].meetings.push(fileDateString);
});
});

Expand Down Expand Up @@ -138,6 +138,18 @@ const config = {
},
/* {to: '/blog', label: 'Blog', position: 'left'}, */
{to: '/docs/sponsoring', label: 'Sponsoring', position: 'left'},
{
type: 'dropdown',
label: 'Chapter',
position: 'left',
items: [
{
label: 'Graz',
to: '/graz',
},
],
},
// {to: '/blog', label: 'Blog', position: 'left'},
{
href: 'https://github.com/cloud-native-austria',
label: 'CNA GitHub',
Expand Down
Loading

0 comments on commit bcc0093

Please sign in to comment.