From dc0f5068b2f3b37fb2801582d90a7fd998eec905 Mon Sep 17 00:00:00 2001 From: Artturin Date: Thu, 13 Feb 2025 17:03:01 +0200 Subject: [PATCH] Use archie-zola and add script to update it --- .gitattributes | 1 + .gitignore | 1 + config.toml | 2 ++ update-theme.sh | 17 +++++++++++++++++ 4 files changed, 21 insertions(+) create mode 100644 .gitattributes create mode 100755 update-theme.sh diff --git a/.gitattributes b/.gitattributes new file mode 100644 index 0000000..914aa00 --- /dev/null +++ b/.gitattributes @@ -0,0 +1 @@ +themes/* linguist-vendored diff --git a/.gitignore b/.gitignore index 4139cd5..4cc12b8 100644 --- a/.gitignore +++ b/.gitignore @@ -1,2 +1,3 @@ .idea/ public +themes/*.zip diff --git a/config.toml b/config.toml index df06d9b..1f9b7a2 100644 --- a/config.toml +++ b/config.toml @@ -1,6 +1,8 @@ # The URL the site will be built for base_url = "https://bluespec.dev" +theme = "archie-zola" + # Whether to automatically compile all Sass files in the sass directory compile_sass = true diff --git a/update-theme.sh b/update-theme.sh new file mode 100755 index 0000000..d1cfd50 --- /dev/null +++ b/update-theme.sh @@ -0,0 +1,17 @@ +#!/usr/bin/env nix-shell +#! nix-shell -p bash unzip -i bash +# shellcheck shell=bash + +set -euo pipefail + +cd "themes" + +wget "https://github.com/XXXMrG/archie-zola/archive/refs/heads/main.zip" + +unzip "main.zip" + +rm -rf "archie-zola" + +mv "archie-zola-main" "archie-zola" + +rm -f "main.zip"