diff options
| author | Mitja Felicijan <m@mitjafelicijan.com> | 2023-07-08 23:25:41 +0200 |
|---|---|---|
| committer | Mitja Felicijan <m@mitjafelicijan.com> | 2023-07-08 23:25:41 +0200 |
| commit | cd6644ea4ddc78597934ab0ef5ba50e3c3daa927 (patch) | |
| tree | 03de331a8db6386dfd6fa75155bfbcea6b4feaf3 /Makefile | |
| parent | 84ed124529ffeee1590295b8de3a8faf51848680 (diff) | |
| download | mitjafelicijan.com-cd6644ea4ddc78597934ab0ef5ba50e3c3daa927.tar.gz | |
Moved to a simpler SSG
Diffstat (limited to 'Makefile')
| -rw-r--r-- | Makefile | 42 |
1 files changed, 5 insertions, 37 deletions
| @@ -1,43 +1,11 @@ | |||
| 1 | MAKEFLAGS=-j4 | 1 | MAKEFLAGS=-j4 |
| 2 | 2 | ||
| 3 | dev: tailwind-watch dev-server | 3 | # Using: https://github.com/mitjafelicijan/jbmafp |
| 4 | 4 | ||
| 5 | dev-server: openring | 5 | build: |
| 6 | hugo server --bind=0.0.0.0 --buildDrafts | 6 | jbmafp --build |
| 7 | 7 | ||
| 8 | dev-server-no-openring: | 8 | deploy: |
| 9 | hugo server --bind=0.0.0.0 --buildDrafts | 9 | jbmafp --build |
| 10 | |||
| 11 | tailwind-watch: | ||
| 12 | npx tailwindcss --jit --minify --watch \ | ||
| 13 | -i ./themes/simple/static/css/tailwind.css \ | ||
| 14 | -o ./static/general/index.css | ||
| 15 | |||
| 16 | tailwind-build: | ||
| 17 | npx tailwindcss --jit --minify \ | ||
| 18 | -i ./themes/simple/static/css/tailwind.css \ | ||
| 19 | -o ./static/general/index.css | ||
| 20 | |||
| 21 | deploy: 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 | |||
| 26 | openring: | ||
| 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 | |||
| 37 | provision: | ||
| 38 | npm install | ||
| 39 | cd ~/Junk \ | ||
| 40 | git clone https://git.sr.ht/~sircmpwn/openring \ | ||
| 41 | cd openring \ | ||
| 42 | go build \ | ||
| 43 | go install | ||
