From: Alex Pooley (@zuedev) Date: Mon, 23 Mar 2026 10:54:45 +0000 (+0000) Subject: add html files overlay X-Git-Url: http://git.zue.dev/?a=commitdiff_plain;h=8b11c9c59acc84284e594a7a08d5d49056206798;p=git.zue.dev add html files overlay --- diff --git a/cron/minutely.bash b/cron/minutely.bash index b851433..81199b8 100644 --- a/cron/minutely.bash +++ b/cron/minutely.bash @@ -34,4 +34,21 @@ else echo "$DOCKER_COMPOSE_FILENAME has not changed. No action needed." fi +# array of files to check for changes +HTML_FILES_TO_CHECK=( + "site_header.html" + "site_footer.html" + "home_text.html" +) + +# loop through each file and check for changes +for FILE in "${HTML_FILES_TO_CHECK[@]}"; do + if ! cmp -s "$DOCKER_COMPOSE_DIRECTORY/$FILE" <(git show HEAD:"html/$FILE"); then + echo "$FILE has changed. Updating local copy..." + git show HEAD:"html/$FILE" > "$DOCKER_COMPOSE_DIRECTORY/$FILE" + else + echo "$FILE has not changed. No action needed." + fi +done + echo "Minutely cron job completed." \ No newline at end of file diff --git a/docker-compose.yaml b/docker-compose.yaml index cb69ce9..c6b93d2 100644 --- a/docker-compose.yaml +++ b/docker-compose.yaml @@ -6,6 +6,9 @@ services: FROM mlan/gitweb CMD echo "our \$$omit_owner = true;" >> /etc/gitweb.conf && \ echo "our \$$site_name = 'git.zue.dev';" >> /etc/gitweb.conf && \ + echo "our \$$site_header = '/site_header.html';" >> /etc/gitweb.conf && \ + echo "our \$$site_footer = '/site_footer.html';" >> /etc/gitweb.conf && \ + echo "our \$$home_text = '/home_text.html';" >> /etc/gitweb.conf && \ echo "our \$$projects_list_description_width = 100;" >> /etc/gitweb.conf && \ echo "our \$$projects_list_group_categories = true;" >> /etc/gitweb.conf && \ echo "\$$feature{'blame'}{'default'} = [1];" >> /etc/gitweb.conf && \ @@ -19,4 +22,7 @@ services: environment: - PROJECTS_LIST= volumes: - - /home/git/:/var/lib/git/repositories/:ro \ No newline at end of file + - /home/git/:/var/lib/git/repositories/:ro + - ./site_header.html:/site_header.html:ro + - ./site_footer.html:/site_footer.html:ro + - ./home_text.html:/home_text.html:ro \ No newline at end of file diff --git a/html/home_text.html b/html/home_text.html new file mode 100644 index 0000000..83b4f30 --- /dev/null +++ b/html/home_text.html @@ -0,0 +1,60 @@ + + +
+ zuedev's avatar +
+

Git Projects >> Alex Pooley (@zuedev)

+

+ If it's on this site, I'm working on it. +
+ Have an issue to report or a + patch to submit? + Send it to: + git@zue.dev +

+
+
diff --git a/html/site_footer.html b/html/site_footer.html new file mode 100644 index 0000000..6630b18 --- /dev/null +++ b/html/site_footer.html @@ -0,0 +1,98 @@ + + + + + + + + + + diff --git a/html/site_header.html b/html/site_header.html new file mode 100644 index 0000000..1d99e0d --- /dev/null +++ b/html/site_header.html @@ -0,0 +1 @@ +