From 3061cf778b2fcda19786ee4d9eb56bd4997d4faa Mon Sep 17 00:00:00 2001 From: Jay Date: Thu, 12 Jan 2023 05:29:02 +0000 Subject: [PATCH] fix dev formatting again --- dev/_posts/2023-01-12-non-repo-static-content.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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.