aboutsummaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorMitja Felicijan <m@mitjafelicijan.com>2023-07-08 23:25:41 +0200
committerMitja Felicijan <m@mitjafelicijan.com>2023-07-08 23:25:41 +0200
commitcd6644ea4ddc78597934ab0ef5ba50e3c3daa927 (patch)
tree03de331a8db6386dfd6fa75155bfbcea6b4feaf3 /Makefile
parent84ed124529ffeee1590295b8de3a8faf51848680 (diff)
downloadmitjafelicijan.com-cd6644ea4ddc78597934ab0ef5ba50e3c3daa927.tar.gz
Moved to a simpler SSG
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile42
1 files changed, 5 insertions, 37 deletions
diff --git a/Makefile b/Makefile
index 22cd3db..7d84d05 100644
--- a/Makefile
+++ b/Makefile
@@ -1,43 +1,11 @@
1MAKEFLAGS=-j4 1MAKEFLAGS=-j4
2 2
3dev: tailwind-watch dev-server 3# Using: https://github.com/mitjafelicijan/jbmafp
4 4
5dev-server: openring 5build:
6 hugo server --bind=0.0.0.0 --buildDrafts 6 jbmafp --build
7 7
8dev-server-no-openring: 8deploy:
9 hugo server --bind=0.0.0.0 --buildDrafts 9 jbmafp --build
10
11tailwind-watch:
12 npx tailwindcss --jit --minify --watch \
13 -i ./themes/simple/static/css/tailwind.css \
14 -o ./static/general/index.css
15
16tailwind-build:
17 npx tailwindcss --jit --minify \
18 -i ./themes/simple/static/css/tailwind.css \
19 -o ./static/general/index.css
20
21deploy: openring tailwind-build
22 hugo --gc --minify
23 rsync -az --delete public/ root@mitjafelicijan.com:/var/www/html/mitjafelicijan.com/ 10 rsync -az --delete public/ root@mitjafelicijan.com:/var/www/html/mitjafelicijan.com/
24 ssh root@mitjafelicijan.com chown www-data:www-data /var/www/html/mitjafelicijan.com/ -Rf 11 ssh root@mitjafelicijan.com chown www-data:www-data /var/www/html/mitjafelicijan.com/ -Rf
25
26openring:
27 openring -l 145 -n 6 -p 1 \
28 -s https://drewdevault.com/feed.xml \
29 -s https://serokell.io/blog.rss.xml \
30 -s https://matduggan.com/rss/ \
31 -s https://neil.computer/rss/ \
32 -s https://cronokirby.com/posts/index.xml \
33 -s https://www.jeffgeerling.com/blog.xml \
34 < themes/simple/openring/openring.html \
35 > themes/simple/layouts/partials/openring.html
36
37provision:
38 npm install
39 cd ~/Junk \
40 git clone https://git.sr.ht/~sircmpwn/openring \
41 cd openring \
42 go build \
43 go install