From a6c2a86d1fecf6dd672dfc6414b0e0f1a2809e3d Mon Sep 17 00:00:00 2001 From: "Thomas A. Christensen II" <25492070+MillironX@users.noreply.github.com> Date: Fri, 2 Jan 2026 12:03:02 -0600 Subject: [PATCH 1/2] feat: Add Quarto capabilities --- .gitignore | 2 ++ .prettierrc | 3 +++ .zed/settings.json | 2 +- _quarto.yml | 13 +++++++++++++ config.toml | 4 ++++ flake.lock | 8 ++++---- flake.nix | 4 ++-- 7 files changed, 29 insertions(+), 7 deletions(-) create mode 100644 _quarto.yml diff --git a/.gitignore b/.gitignore index c4bb138..3c6f3a7 100644 --- a/.gitignore +++ b/.gitignore @@ -189,3 +189,5 @@ Icon Network Trash Folder Temporary Items .apdisk + +/.quarto/ diff --git a/.prettierrc b/.prettierrc index 672b6f3..7a778c9 100644 --- a/.prettierrc +++ b/.prettierrc @@ -7,3 +7,6 @@ overrides: - files: "*.gotmpl" options: parser: "go-template" + - files: "*.qmd" + options: + parser: "markdown" diff --git a/.zed/settings.json b/.zed/settings.json index eb5924a..73f67e7 100644 --- a/.zed/settings.json +++ b/.zed/settings.json @@ -9,5 +9,5 @@ } } }, - "file_types": { "HTML": ["gotmpl"] } + "file_types": { "HTML": ["gotmpl"], "Markdown": ["qmd"] } } diff --git a/_quarto.yml b/_quarto.yml new file mode 100644 index 0000000..79b8d68 --- /dev/null +++ b/_quarto.yml @@ -0,0 +1,13 @@ +project: + type: hugo + preview: + serve: + cmd: "hugo server --port {port} --bind 0.0.0.0 --navigateToChanged" + ready: "Web Server is available at" + +format: + hugo-md: + code-fold: true + +execute: + warning: false diff --git a/config.toml b/config.toml index 8a730b3..50bda13 100644 --- a/config.toml +++ b/config.toml @@ -1,6 +1,7 @@ baseURL = "https://millironx.com" languageCode = "en-us" title = "Milliron X" +ignoreFiles = ["\\.qmd$", "\\.ipynb$", "\\.py$"] [pagination] pagerSize = 5 @@ -51,6 +52,9 @@ notAlternative = "true" [markup.goldmark.parser.attribute] block = true +[markup.goldmark.renderer] +unsafe = true + [markup.goldmark.renderHooks] [markup.goldmark.renderHooks.link] diff --git a/flake.lock b/flake.lock index 0a20125..594570b 100644 --- a/flake.lock +++ b/flake.lock @@ -20,16 +20,16 @@ }, "nixpkgs": { "locked": { - "lastModified": 1737597992, - "narHash": "sha256-FECKBxkd+w5I/fhsquthDiw/r/MdCpqmKikBU9yQGug=", + "lastModified": 1762756533, + "narHash": "sha256-HiRDeUOD1VLklHeOmaKDzf+8Hb7vSWPVFcWwaTrpm+U=", "owner": "nixos", "repo": "nixpkgs", - "rev": "d0bb4699177f691c8e558b32b3bdc38bc112f76f", + "rev": "c2448301fb856e351aab33e64c33a3fc8bcf637d", "type": "github" }, "original": { "owner": "nixos", - "ref": "nixos-unstable-small", + "ref": "nixos-25.05", "repo": "nixpkgs", "type": "github" } diff --git a/flake.nix b/flake.nix index 79685b8..0d20c3f 100644 --- a/flake.nix +++ b/flake.nix @@ -1,13 +1,13 @@ { inputs = { - nixpkgs.url = "github:nixos/nixpkgs/nixos-unstable-small"; + nixpkgs.url = "github:nixos/nixpkgs/nixos-25.05"; flake-utils.url = "github:numtide/flake-utils"; }; outputs = { self, nixpkgs, flake-utils }: flake-utils.lib.eachDefaultSystem (system: let pkgs = import nixpkgs { inherit system; }; - buildInputs = with pkgs; [ hugo nodejs ]; + buildInputs = with pkgs; [ hugo nodejs quarto julia-bin ]; in with pkgs; { devShells.default = mkShell { inherit buildInputs; }; packages.default = stdenvNoCC.mkDerivation { From 4a3d7bac3ad72d8b70dce7c0540652609c1afd82 Mon Sep 17 00:00:00 2001 From: "Thomas A. Christensen II" <25492070+MillironX@users.noreply.github.com> Date: Fri, 2 Jan 2026 12:04:55 -0600 Subject: [PATCH 2/2] style: Add blog post styles --- assets/styles/millironx.css | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/assets/styles/millironx.css b/assets/styles/millironx.css index 00ad31e..6db0114 100644 --- a/assets/styles/millironx.css +++ b/assets/styles/millironx.css @@ -289,6 +289,15 @@ article > p { line-height: 1.5em; } +h2#references ~ p { + font-size: 1rem; + text-justify: unset; + text-align: left; + hyphens: none; + line-height: 1rem; + text-indent: 2ch hanging; +} + article h1 + p, article h2 + p, article h3 + p, @@ -337,6 +346,10 @@ figure:has(blockquote) > figcaption { font-size: 80%; } +figure > img { + max-width: 100%; +} + footer { display: flex; flex-direction: column;