Post for January 8.

This commit is contained in:
James Pace 2024-01-09 00:14:48 +00:00
parent 24f9d8032a
commit 673953497f
4 changed files with 45 additions and 7 deletions

View File

@ -9,6 +9,7 @@ website:
- href: index.qmd - href: index.qmd
text: Home text: Home
- about.qmd - about.qmd
- posts.qmd
format: format:
html: html:

View File

@ -1,7 +0,0 @@
---
title: "Assessing Propellers for Small Scale Drones"
author: "James Pace"
date: "2024/01/07"
---
Blog

View File

@ -0,0 +1,36 @@
---
title: "Quarto: Modifying Colors of the NavBar"
author: "James Pace"
date: "2024/01/08"
---
[Quarto](https://quarto.org/) is a static site generator that generates websites (like
this blog) from markdown files.
Quarto sites by default use the Bootstrap component library and can be themed by
overriding Bootstrap SASS variables as described
[here](https://quarto.org/docs/output-formats/html-themes.html#navigation).
One of the things I found confusing when trying to theme this blog was what SASS
variable to override to change the color of the NavBar on top of every page.
I kept trying to change the normal Boootstrap variables, but it didn't seem to
work.
For the changing the color of the NavBar, instead of the Bootstrap variables you should use the
ones described [here](https://quarto.org/docs/output-formats/html-themes.html#navigation).
More specifically, for this site, I'm using the following .scss file.
```yaml
/*-- scss:defaults --*/
$black: #000;
$neon: #39ff14;
$white: #FFFF;
$blue: #0244b8;
$link-color: $black;
$navbar-bg: $black;
$navbar-fg: $white;
$navbar-hl: $neon;
```

8
posts.qmd Normal file
View File

@ -0,0 +1,8 @@
---
title: "Posts"
toc: false
listing:
contents: blog
type: table
fields: [date, title]
---