aboutsummaryrefslogtreecommitdiff
path: root/Makefile
blob: e6161a767474e10f2766ce4bbd2f1bfc2758a2c6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
MAKEFLAGS=-j4

# Using: https://github.com/mitjafelicijan/jbmafp

build: openring
	python3 vault.py
	jbmafp --build
	cd public; find . -type f -name '*.html' -exec sed -i 's/<img /<img loading="lazy" /g' {} \;

dev:
	jbmafp --build --server

openring:
	openring -l 300 -n 10 -p 1 \
		-s https://jcs.org/rss \
		-s https://landley.net/rss.xml \
		-s https://drewdevault.com/feed.xml \
		-s https://offbeatpursuit.com/blog/index.rss \
		-s https://mirzapandzo.com/rss.xml \
		-s https://journal.valeriansaliou.name/rss/ \
		-s https://neil.computer/rss/ \
		-s https://michael.stapelberg.ch/feed.xml \
		-s https://utcc.utoronto.ca/~cks/space/blog/?atom \
		-s https://szymonkaliski.com/feed.xml \
		< templates/openring.html \
		> templates/includes/openring.html

deploy: 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