diff --git a/.eleventy.js b/.eleventy.js index 4c20b1a..56a3b3c 100644 --- a/.eleventy.js +++ b/.eleventy.js @@ -1,4 +1,5 @@ const path = require('path') +const yaml = require('js-yaml') const { DateTime } = require('luxon') const readingTime = require('reading-time') const tocPlugin = require('eleventy-plugin-toc') @@ -16,6 +17,10 @@ const pkg = require('./package.json') module.exports = function (eleventyConfig) { eleventyConfig.setUseGitIgnore(false) + eleventyConfig.addDataExtension('yml, yaml', (contents) => + yaml.load(contents) + ) + eleventyConfig.addPassthroughCopy('import-map.json') eleventyConfig.addPassthroughCopy( path.join( @@ -26,7 +31,10 @@ module.exports = function (eleventyConfig) { ) eleventyConfig.addPlugin(gitBuildPlugin, { - repos: [{ name: 'blog' }, { name: 'open-governance' }], + repos: [ + { name: 'blog', branch: 'patch-tags' }, + { name: 'open-governance' }, + ], clean: false, }) eleventyConfig.addPlugin(pagefindPlugin) diff --git a/src/_data/navbar.json b/src/_data/navbar.json deleted file mode 100644 index 9f3dbc4..0000000 --- a/src/_data/navbar.json +++ /dev/null @@ -1,10 +0,0 @@ -[ - { - "name": "Open Governance", - "url": "/open-governance/readme.html" - }, - { - "name": "Blog", - "url": "/blog/posts/2024-01-31-redbrick-maintenance-with-nomad.html" - } -] diff --git a/src/_data/site.yml b/src/_data/site.yml new file mode 100644 index 0000000..aaa18b7 --- /dev/null +++ b/src/_data/site.yml @@ -0,0 +1,106 @@ +navigation: + global: + - text: Open Governance + link: /open-governance/readme.html + - text: Blog + link: /blog/posts/2024-01-31-redbrick-maintenance-with-nomad.html + blog: + - text: Events + tag: events + - text: Admin Blog + tag: admins + - text: Tutorials + tag: tutorial + - text: Conferences + tag: conferences + - text: Newsletters + tag: newsletter +drawer: navigation +home: + hero: + title: + secondary: DCU's Networking Society. + primary: Become a Member. + body: Redbrick was formed from a battered 386 PC (dubbed Nurse) and bits of borrowed memory - these days we spend our time running tech events for our members and deploying services. We’re open to everyone, regardless of computing level, who want to come and learn! + buttons: + primary: + text: Signup + link: https://dcuclubsandsocs.ie/society/redbrick + secondary: + text: Discord + link: https://discord.redbrick.dcu.ie + cta: + title: Don't Miss Out + body: Redbrick hosts events for everything tech related - from computer programming tutorials to workshops with multinational tech companies. + button: + text: Signup + link: https://dcuclubsandsocs.ie/society/redbrick + committee: + - name: James Hackett + position: πŸͺ‘ Chair + username: distro + image: /assets/img/committee/distro.jpg + - name: Shane Whelan + position: πŸͺ‘ Vice-Chair + username: pluto + image: /assets/img/committee/pluto.jpg + - name: Jake Farrell + position: πŸ’Œ Secretary + username: cheese + image: /assets/img/committee/cheese.png + - name: Malavika Shanker + position: πŸ’Έ Treasurer + username: calcifer + image: /assets/img/committee/calcifer.png + - name: Philip Leonard + position: πŸ“’ PRO + username: payne + image: /assets/img/committee/payne.png + - name: Ishita Gupta + position: 🎨 GDO + username: ishitag + image: /assets/img/committee/ishitag.jpg + - name: Dominic Connor + position: πŸš€ SysAdmin + username: wizzdom + image: /assets/img/committee/wizzdom.png + - name: Cathal O'Grady + position: πŸš€ SysAdmin + username: cathalog + image: /assets/img/committee/cathalog.jpg + - name: Gavin Holahan + position: 🍼 SysAdmin + username: hypnoant + image: /assets/img/committee/hypnoant.png + - name: Jed Hazaymeh + position: πŸ‘Ύ Webmaster + username: magma + image: /assets/img/committee/magma.png + - name: Ayden Jahola + position: πŸ™Œ Helpdesk + username: ayden + image: /assets/img/committee/ayden.png + - name: Francis Baxter + position: πŸ™Œ Helpdesk + username: fbaxter + image: /assets/img/committee/fbaxter.png + - name: Robert Healy + position: πŸ“… Events Officer + username: orb + image: /assets/img/committee/orb.png + - name: Stefania Ogun + position: πŸ“… Events Officer + username: stefania + image: /assets/img/committee/stefania.jpg + - name: Callum Browne + position: πŸ’Ž Ordinary Member + username: browner + image: /assets/img/committee/browner.png + - name: Daniel McEntee + position: πŸ’Ž Ordinary Member + username: kronos + image: /assets/img/committee/kronos.png + - name: Dennis Custiuc + position: πŸ₯‡ First Year Rep. + username: swooshy + image: /assets/img/committee/swooshy.png diff --git a/src/_includes/global/drawer.njk b/src/_includes/global/drawer.njk index c559654..1eac0ff 100644 --- a/src/_includes/global/drawer.njk +++ b/src/_includes/global/drawer.njk @@ -4,8 +4,8 @@