diff options
-rw-r--r-- | .gitignore | 2 | ||||
-rw-r--r-- | art/config.ini | 17 | ||||
-rw-r--r-- | blog/config.ini | 17 | ||||
-rwxr-xr-x | lbuild | 3 | ||||
-rwxr-xr-x | lsync | 14 |
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 @@ -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 @@ -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/ |