From cd6644ea4ddc78597934ab0ef5ba50e3c3daa927 Mon Sep 17 00:00:00 2001 From: Mitja Felicijan Date: Sat, 8 Jul 2023 23:25:41 +0200 Subject: Moved to a simpler SSG --- Makefile | 42 +++++------------------------------------- 1 file changed, 5 insertions(+), 37 deletions(-) (limited to 'Makefile') diff --git a/Makefile b/Makefile index 22cd3db..7d84d05 100644 --- a/Makefile +++ b/Makefile @@ -1,43 +1,11 @@ MAKEFLAGS=-j4 -dev: tailwind-watch dev-server +# Using: https://github.com/mitjafelicijan/jbmafp -dev-server: openring - hugo server --bind=0.0.0.0 --buildDrafts +build: + jbmafp --build -dev-server-no-openring: - hugo server --bind=0.0.0.0 --buildDrafts - -tailwind-watch: - npx tailwindcss --jit --minify --watch \ - -i ./themes/simple/static/css/tailwind.css \ - -o ./static/general/index.css - -tailwind-build: - npx tailwindcss --jit --minify \ - -i ./themes/simple/static/css/tailwind.css \ - -o ./static/general/index.css - -deploy: openring tailwind-build - hugo --gc --minify +deploy: + jbmafp --build rsync -az --delete public/ root@mitjafelicijan.com:/var/www/html/mitjafelicijan.com/ ssh root@mitjafelicijan.com chown www-data:www-data /var/www/html/mitjafelicijan.com/ -Rf - -openring: - openring -l 145 -n 6 -p 1 \ - -s https://drewdevault.com/feed.xml \ - -s https://serokell.io/blog.rss.xml \ - -s https://matduggan.com/rss/ \ - -s https://neil.computer/rss/ \ - -s https://cronokirby.com/posts/index.xml \ - -s https://www.jeffgeerling.com/blog.xml \ - < themes/simple/openring/openring.html \ - > themes/simple/layouts/partials/openring.html - -provision: - npm install - cd ~/Junk \ - git clone https://git.sr.ht/~sircmpwn/openring \ - cd openring \ - go build \ - go install -- cgit v1.2.3