From 613c6b1e0e0faeda6e73bfe5f34b81731e304c9e Mon Sep 17 00:00:00 2001 From: Oliver Davies Date: Sun, 1 Jan 2023 19:58:19 +0000 Subject: [PATCH] chore: configure Fractal and mandelbrot --- fractal/fractal.config.js | 24 ++++++++++++++++++++---- 1 file changed, 20 insertions(+), 4 deletions(-) diff --git a/fractal/fractal.config.js b/fractal/fractal.config.js index 0abf6cee..dcb13f62 100644 --- a/fractal/fractal.config.js +++ b/fractal/fractal.config.js @@ -1,13 +1,29 @@ 'use strict'; -/* Create a new Fractal instance and export it for use elsewhere if required */ const fractal = module.exports = require('@frctl/fractal').create(); +const mandelbrot = require("@frctl/mandelbrot") -/* Set the title of the project */ fractal.set('project.title', 'oliverdavies.uk'); -/* Tell Fractal where the components will live */ fractal.components.set('path', __dirname + '/src/components'); +fractal.components.engine(require('@frctl/nunjucks')); +fractal.components.set('ext', '.njk'); -/* Tell Fractal where the documentation pages will live */ fractal.docs.set('path', __dirname + '/src/docs'); + +fractal.web.theme( + mandelbrot({ + information: [ + { + label: 'Built on', + value: new Date(), + type: 'time', + format: (value) => { + return value.toLocaleDateString('en'); + }, + }, + ], + format: "yaml", + skin: "black", + }) +);