diff --git a/README.md b/README.md index 9a9dfd2..682ee0f 100644 --- a/README.md +++ b/README.md @@ -1,2 +1,13 @@ +[![github pages](https://github.com/robstarbuck/robstarbuck.uk/actions/workflows/gh-pages.yml/badge.svg)](https://github.com/robstarbuck/robstarbuck.uk/actions/workflows/gh-pages.yml) -https://unsplash.com/photos/black-textile-on-black-background-UAbg0py6GYQ \ No newline at end of file +# Build Site for robstarbuck.uk + +The site was built with Deno's [Lume](https://lume.land) and ported from a Hugo version of the site. + +Site content can be found at https://github.com/robstarbuck/content.robstarbuck.uk + + +# Links + +- [Background Image](https://unsplash.com/photos/black-textile-on-black-background-UAbg0py6GYQ) +- [Colour Scheme Info](https://www.vis4.net/blog/mastering-multi-hued-color-scales/) \ No newline at end of file diff --git a/_config.ts b/_config.ts index 4b5374e..2228da8 100644 --- a/_config.ts +++ b/_config.ts @@ -1,3 +1,4 @@ +import { Page } from "lume/core/file.ts"; import lume from "lume/mod.ts"; import codeHighlight from "lume/plugins/code_highlight.ts"; @@ -71,7 +72,7 @@ site.preprocess([".html"], (pages) => { // page.data.filename = page.src.path + page.src.ext; }); -site.process([".html"], (pages) => { +site.process([".html"], (pages, allPages) => { const cv = pages.find((p) => p.data.title === "CV"); cv?.document?.querySelectorAll("h1").forEach((h1) => { @@ -102,6 +103,16 @@ site.process([".html"], (pages) => { } }); }); + + const readMe = Page.create({ + url: "README.md", + content: `# Site Build + - Page Count: ${allPages.length} + - Build Date: ${date} ${time} + `, + }); + + allPages.push(readMe); }); export default site; diff --git a/src/styles/index.css b/src/styles/index.css index b5d0a25..2fa164d 100644 --- a/src/styles/index.css +++ b/src/styles/index.css @@ -183,4 +183,8 @@ footer a { display: flex; place-items: baseline; gap: var(--rh); -} \ No newline at end of file +} + +::selection { + background-color: var(--shade6); +}