Skip to content

Commit

Permalink
Updates to READMEs; Selection Colour Change
Browse files Browse the repository at this point in the history
  • Loading branch information
robstarbuck committed Feb 6, 2024
1 parent 76319cc commit fead324
Show file tree
Hide file tree
Showing 3 changed files with 29 additions and 3 deletions.
13 changes: 12 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -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
# 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/)
13 changes: 12 additions & 1 deletion _config.ts
Original file line number Diff line number Diff line change
@@ -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";

Expand Down Expand Up @@ -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) => {
Expand Down Expand Up @@ -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;
6 changes: 5 additions & 1 deletion src/styles/index.css
Original file line number Diff line number Diff line change
Expand Up @@ -183,4 +183,8 @@ footer a {
display: flex;
place-items: baseline;
gap: var(--rh);
}
}

::selection {
background-color: var(--shade6);
}

0 comments on commit fead324

Please sign in to comment.