updated slightly engine
This commit is contained in:
parent
d426186477
commit
717269a4bb
|
@ -1,3 +1,4 @@
|
|||
_cache
|
||||
_site
|
||||
_optim
|
||||
src/archive.org
|
||||
|
|
|
@ -4,7 +4,7 @@
|
|||
|
||||
cd "$(git rev-parse --show-toplevel)" || exit 1
|
||||
# Directory
|
||||
webdir="_site"
|
||||
webdir="_optim"
|
||||
postsdir="$webdir/posts"
|
||||
rssfile="$webdir/rss.xml"
|
||||
|
||||
|
|
|
@ -3,7 +3,7 @@
|
|||
#!nix-shell -I nixpkgs="https://github.com/NixOS/nixpkgs/archive/19.09.tar.gz"
|
||||
|
||||
cd "$(git rev-parse --show-toplevel)" || exit 1
|
||||
webdir="_site"
|
||||
webdir="_optim"
|
||||
|
||||
retrieve_classes_in_html () {
|
||||
cat $webdir/**/*.html(N) | \
|
||||
|
|
|
@ -3,7 +3,7 @@
|
|||
#!nix-shell -I nixpkgs="https://github.com/NixOS/nixpkgs/archive/19.09.tar.gz"
|
||||
|
||||
cd "$(git rev-parse --show-toplevel)" || exit 1
|
||||
webdir="_site"
|
||||
webdir="_optim"
|
||||
|
||||
debug () {
|
||||
print -- $* >/dev/null
|
||||
|
|
|
@ -1,6 +1,8 @@
|
|||
#!/usr/bin/env bash
|
||||
|
||||
cd "$(git rev-parse --show-toplevel)" || exit 1
|
||||
echo "Copying to optim dir"
|
||||
rm -rf _optim/ && cp -r _site _optim
|
||||
echo "Optim HTML size"
|
||||
./engine/optim-html.sh
|
||||
# echo "Gen themes clones"
|
||||
|
|
|
@ -1,4 +1,13 @@
|
|||
#!/usr/bin/env bash
|
||||
|
||||
cd "$(git rev-parse --show-toplevel)" || exit 1
|
||||
cd _site && sws -d --port 3001 .
|
||||
|
||||
if (( $# == 0 )); then
|
||||
webdir="_site"
|
||||
else
|
||||
webdir="$1"
|
||||
fi
|
||||
|
||||
cd $webdir && \
|
||||
echo "Serving: $webdir" && \
|
||||
sws -d --port 3001 .
|
||||
|
|
|
@ -1,9 +1,13 @@
|
|||
#!/usr/bin/env zsh
|
||||
|
||||
cd "$(git rev-parse --show-toplevel)" || exit 1
|
||||
rootdir=$PWD
|
||||
echo $rootdir
|
||||
webdir="_optim"
|
||||
|
||||
[[ -d $webdir ]] || { echo "no $webdir directory"; exit 1 }
|
||||
|
||||
echo -n "Uploading website"
|
||||
rsync --progress --partial -avHe ssh $rootdir/_site/ root@esy.fun:/var/www/her.esy.fun/ --delete
|
||||
rsync --progress\
|
||||
--partial \
|
||||
--delete \
|
||||
-avHe ssh ${webdir}/ root@esy.fun:/var/www/her.esy.fun/
|
||||
echo " [done]"
|
||||
|
|
|
@ -3,7 +3,7 @@
|
|||
#!nix-shell -I nixpkgs="https://github.com/NixOS/nixpkgs/archive/19.09.tar.gz"
|
||||
|
||||
cd "$(git rev-parse --show-toplevel)" || exit 1
|
||||
webdir="_site"
|
||||
webdir="_optim"
|
||||
|
||||
sizeof() {
|
||||
stat --format="%s" "$*"
|
||||
|
|
|
@ -279,7 +279,7 @@ figure, .figure {
|
|||
@media (prefers-color-scheme: light) {
|
||||
:root {
|
||||
--bg: var(--b3);
|
||||
--fg0: var(--b00);
|
||||
--fg0: var(--b0);
|
||||
--fg: var(--b02);
|
||||
--bg2: var(--b2);
|
||||
--fg2: var(--b01);
|
||||
|
@ -308,7 +308,7 @@ figure, .figure {
|
|||
#d:checked ~ .main, #d:checked ~ #labels {
|
||||
--bg: var(--b03);
|
||||
--fg: var(--b1);
|
||||
--fg0: var(--b2);
|
||||
--fg0: var(--b00);
|
||||
--bg2: var(--b02);
|
||||
--fg2: var(--b1);
|
||||
--rfg: var(--b1);
|
||||
|
@ -322,7 +322,7 @@ figure, .figure {
|
|||
/* Light theme selected */
|
||||
#l:checked ~ .main, #l:checked ~ #labels {
|
||||
--bg: var(--b3);
|
||||
--fg0: var(--b00);
|
||||
--fg0: var(--b0);
|
||||
--fg: var(--b02);
|
||||
--bg2: var(--b2);
|
||||
--fg2: var(--b01);
|
||||
|
|
Loading…
Reference in New Issue