diff --git a/dev/_posts/2023-01-12-non-repo-static-content.md b/dev/_posts/2023-01-12-non-repo-static-content.md index 146933b..51e0eee 100644 --- a/dev/_posts/2023-01-12-non-repo-static-content.md +++ b/dev/_posts/2023-01-12-non-repo-static-content.md @@ -19,7 +19,7 @@ The nice thing about Jekyll is it's a satic site generator and works after hours # pax -rwlpp . /var/www/pickmy # popd ``` - +

The problem I was having is if a directory already existed; nothing would symlink. pax solved the problem, except pax copied data. I didn't need the redundancy. @@ -33,7 +33,7 @@ do done ln -s $WWW_STATIC/* $PUBLIC_WWW/ ``` - +

This is called as a seperate script in the githook that runs whenever I push a new post (or change) to the repository. It runs after site generation naturally. It gets a list of existing directories from the static directory; and if the directory exists, symlinks all the files in to it. It then goes back and runs a generic symlink of everything.