summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDavid Luevano Alvarado <david@luevano.xyz>2022-04-27 00:12:15 -0600
committerDavid Luevano Alvarado <david@luevano.xyz>2022-04-27 00:12:15 -0600
commit745b8648f8f650a0e189554fc4c63e7259656187 (patch)
tree26d1a4f7312b9ac87be10c4dc318052781fe9e7f
parentb4ebb8b00356efde02d8323a4b6648b4415fd265 (diff)
add new scripts and configs for updated pyssg
-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/