summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--.gitignore2
-rw-r--r--art/config.ini17
-rw-r--r--blog/config.ini17
-rwxr-xr-xlbuild3
-rwxr-xr-xlsync14
5 files changed, 53 insertions, 0 deletions
diff --git a/.gitignore b/.gitignore
new file mode 100644
index 0000000..b73bea2
--- /dev/null
+++ b/.gitignore
@@ -0,0 +1,2 @@
+# python venv
+.venv/
diff --git a/art/config.ini b/art/config.ini
new file mode 100644
index 0000000..bfb223d
--- /dev/null
+++ b/art/config.ini
@@ -0,0 +1,17 @@
+[path]
+site=$HOME/luevano.xyz/art
+src=%(site)s/src
+dst=%(site)s/dst
+plt=%(site)s/plt
+[url]
+main=https://art.luevano.xyz
+static=https://static.luevano.xyz
+default_image=/images/a/default.png
+[fmt]
+date=%%a, %%b %%d, %%Y @ %%H:%%M %%Z
+list_date=%%b %%d
+list_sep_date=%%B %%Y
+[info]
+title=Luevano's Art
+[other]
+force=False
diff --git a/blog/config.ini b/blog/config.ini
new file mode 100644
index 0000000..6057e85
--- /dev/null
+++ b/blog/config.ini
@@ -0,0 +1,17 @@
+[path]
+site=$HOME/luevano.xyz/blog
+src=%(site)s/src
+dst=%(site)s/dst
+plt=%(site)s/plt
+[url]
+main=https://blog.luevano.xyz
+static=https://static.luevano.xyz
+default_image=/images/b/default.png
+[fmt]
+date=%%a, %%b %%d, %%Y @ %%H:%%M %%Z
+list_date=%%b %%d
+list_sep_date=%%B %%Y
+[info]
+title=Luevano's Blog
+[other]
+force=False
diff --git a/lbuild b/lbuild
new file mode 100755
index 0000000..b8a1c30
--- /dev/null
+++ b/lbuild
@@ -0,0 +1,3 @@
+# temp build script for art and blog
+pyssg --config $HOME/luevano.xyz/blog/config.ini -b
+pyssg --config $HOME/luevano.xyz/art/config.ini -b
diff --git a/lsync b/lsync
new file mode 100755
index 0000000..7faf048
--- /dev/null
+++ b/lsync
@@ -0,0 +1,14 @@
+#!/bin/sh
+# Push to luevano.xyz
+
+# This pushes everything! (except for blog and art, since it needs a bit more management)
+echo "rsync: pushing (U) local (lz) to webserver (lzserver). (luevano.xyz)"
+rsync -rtuvPL --delete-after --exclude-from=$HOME/luevano.xyz/.rsyncignore $HOME/luevano.xyz/ luevanor:/var/www/
+
+# This pushes the blog.
+echo "rsync: pushing (U) local (lz) to webserver (lzserver). (blog.luevano.xyz)"
+rsync -rtuvPL --delete-after $HOME/luevano.xyz/blog/dst/ luevanor:/var/www/blog/
+
+# This pushes the art.
+echo "rsync: pushing (U) local (lz) to webserver (lzserver). (art.luevano.xyz)"
+rsync -rtuvPL --delete-after $HOME/luevano.xyz/art/dst/ luevanor:/var/www/art/