paritybit.ca

Unnamed repository; edit this file 'description' to name the repository.
Log | Files | Refs | README | LICENSE

commit c50c27c70e1f21dd2572507996a83750f6c67bf8
parent dab6eeff1b4fe313d6b04898332d1877d6427ba7
Author: Jake Bauer <jbauer@paritybit.ca>
Date:   Thu, 11 Jun 2020 16:26:27 -0400

Make publish not redundantly auto-upload files

Diffstat:
Mpublish | 6+++---
1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/publish b/publish @@ -95,7 +95,7 @@ populate_date() { print_info_msg "Populating [DATE] fields" sed -i -e "s/\[DATE\]/$shortDate/g" "$file" - ./compile "$file" + ./compile -n "$file" } # Update the main blog list page @@ -105,7 +105,7 @@ update_base_page() awk -v pt="$pageTitle" -v bp="$basePage" -v f="$fileName" -v d="$shortDate" \ '{print} /^<ul>/ && !n {print " <li>"d" <a href=\""bp"/"f"\">"pt"</a></li>"; n++}' \ pages/"$basePage".md > tmp.md && mv tmp.md pages/"$basePage".md - ./compile pages/$basePage.md + ./compile -n pages/$basePage.md } @@ -120,7 +120,7 @@ $shortDate \<a class=\"feed-item\" href=\"$basePage\/$fileName\"\>$pageTitle\<\ 2k2dd :wq" > /tmp/script.vim "$vim_ver" -s /tmp/script.vim pages/home.md - ./compile -s pages/home.md + ./compile -s -n pages/home.md } create_rss_entry()