chore: remove external site imports
This commit is contained in:
parent
02c565bb9d
commit
237f5efb85
4 changed files with 65 additions and 4 deletions
|
@ -0,0 +1,24 @@
|
||||||
|
From d32ae9c3386ad1d896d8a54271138111b579d7e7 Mon Sep 17 00:00:00 2001
|
||||||
|
From: catvayor <catvayor@katvayor.net>
|
||||||
|
Date: Thu, 12 Dec 2024 17:04:45 +0100
|
||||||
|
Subject: [PATCH 2/2] chore: remove useless dependencies
|
||||||
|
|
||||||
|
---
|
||||||
|
layouts/index.html | 1 -
|
||||||
|
1 file changed, 1 deletion(-)
|
||||||
|
|
||||||
|
diff --git a/layouts/index.html b/layouts/index.html
|
||||||
|
index 63a6158..780ea78 100644
|
||||||
|
--- a/layouts/index.html
|
||||||
|
+++ b/layouts/index.html
|
||||||
|
@@ -17,7 +17,6 @@
|
||||||
|
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.12.4/jquery.min.js"></script>
|
||||||
|
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/js/bootstrap.min.js" integrity="sha384-Tc5IQib027qvyjSMfHjOMaLkfuWVxZxUPnCJA7l2mCWNIpG9mGCD8wGNIcPD7Txa" crossorigin="anonymous"></script>
|
||||||
|
|
||||||
|
- <link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/font-awesome/4.4.0/css/font-awesome.min.css">
|
||||||
|
<link href="css/nucleus.css" rel="stylesheet">
|
||||||
|
<link href="css/style-nix.css" rel="stylesheet">
|
||||||
|
<link rel="stylesheet" href="css/style-q2.css">
|
||||||
|
--
|
||||||
|
2.47.0
|
||||||
|
|
|
@ -2,6 +2,7 @@
|
||||||
fetchFromGitHub,
|
fetchFromGitHub,
|
||||||
stdenv,
|
stdenv,
|
||||||
lib,
|
lib,
|
||||||
|
fetchurl,
|
||||||
}:
|
}:
|
||||||
stdenv.mkDerivation {
|
stdenv.mkDerivation {
|
||||||
name = "hugo-theme-extranix-options-search";
|
name = "hugo-theme-extranix-options-search";
|
||||||
|
@ -15,11 +16,47 @@ stdenv.mkDerivation {
|
||||||
|
|
||||||
patches = [
|
patches = [
|
||||||
./0001-fix-pretty-no-defaults.patch
|
./0001-fix-pretty-no-defaults.patch
|
||||||
|
./0002-chore-remove-useless-dependencies.patch
|
||||||
];
|
];
|
||||||
|
|
||||||
installPhase = ''
|
installPhase =
|
||||||
|
let
|
||||||
|
js-search = fetchurl {
|
||||||
|
url = "https://unpkg.com/js-search@2.0.1/dist/umd/js-search.min.js";
|
||||||
|
hash = "sha256-LD9UsSATk+xTzAbk8nD2gA2bjHKvetXtCMDAFkM2K5Q=";
|
||||||
|
};
|
||||||
|
jquery = fetchurl {
|
||||||
|
url = "https://code.jquery.com/jquery-3.7.1.slim.min.js";
|
||||||
|
hash = "sha256-kmHvs0B+OpCW5GVHUNjv9rOmY0IvSIRcf7zGUDTDQM8=";
|
||||||
|
};
|
||||||
|
bootstrap.css.main = fetchurl {
|
||||||
|
url = "https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css";
|
||||||
|
hash = "sha256-916EbMg70RQy9LHiGkXzG8hSg9EdNy97GazNG/aiY1w=";
|
||||||
|
};
|
||||||
|
bootstrap.css.theme = fetchurl {
|
||||||
|
url = "https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap-theme.min.css";
|
||||||
|
hash = "sha256-ZT4HPpdCOt2lvDkXokHuhJfdOKSPFLzeAJik5U/Q+l4=";
|
||||||
|
};
|
||||||
|
bootstrap.js = fetchurl {
|
||||||
|
url = "https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/js/bootstrap.min.js";
|
||||||
|
hash = "sha256-U5ZEeKfGNOja007MMD3YBI0A3OSZOQbeG6z2f2Y0hu8=";
|
||||||
|
};
|
||||||
|
in
|
||||||
|
''
|
||||||
mkdir $out
|
mkdir $out
|
||||||
|
rm static/images/favicon.*
|
||||||
cp -r * $out
|
cp -r * $out
|
||||||
|
cp ${js-search} $out/static/js/js-search.min.js
|
||||||
|
cp ${jquery} $out/static/js/jquery.slim.min.js
|
||||||
|
cp ${bootstrap.css.main} $out/static/css/bootstrap.min.css
|
||||||
|
cp ${bootstrap.css.theme} $out/static/css/bootstrap-theme.min.css
|
||||||
|
cp ${bootstrap.js} $out/static/js/bootstrap.min.js
|
||||||
|
substituteInPlace $out/layouts/index.html \
|
||||||
|
--replace-fail 'https://unpkg.com/js-search@2.0.1/dist/umd/js-search.min.js' js/js-search.min.js \
|
||||||
|
--replace-fail 'https://ajax.googleapis.com/ajax/libs/jquery/1.12.4/jquery.min.js' js/jquery.slim.min.js \
|
||||||
|
--replace-fail 'https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css' css/bootstrap.min.css \
|
||||||
|
--replace-fail 'https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap-theme.min.css' css/bootstrap-theme.min.css \
|
||||||
|
--replace-fail 'https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/js/bootstrap.min.js' js/bootstrap.min.js \
|
||||||
'';
|
'';
|
||||||
|
|
||||||
meta = {
|
meta = {
|
||||||
|
|
BIN
machines/kat-son/static-data/images/favicon.ico
Normal file
BIN
machines/kat-son/static-data/images/favicon.ico
Normal file
Binary file not shown.
After Width: | Height: | Size: 4.2 KiB |
BIN
machines/kat-son/static-data/images/favicon.png
Normal file
BIN
machines/kat-son/static-data/images/favicon.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 1 KiB |
Loading…
Reference in a new issue