diff options
Diffstat (limited to 'build-n-publish.sh')
-rwxr-xr-x | build-n-publish.sh | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/build-n-publish.sh b/build-n-publish.sh index fabbd29..10fc741 100755 --- a/build-n-publish.sh +++ b/build-n-publish.sh @@ -5,9 +5,13 @@ cd assets/library git fetch --all && git reset --hard origin/master cd ../.. +# ox-haunt-export sometimes restricts the created post file read permissions to the owner only. +# This gets transferred to the remote by Haunt's ssh access, resulting in publish-only read permissions. +chmod a+r ./posts/* # Build and publish the HTML site: haunt build && haunt publish + # Now convert to Gemini # Uses https://github.com/LukeEmmet/html2gmi # Converts the site into text/gemini; outputs to ./gemini. @@ -27,7 +31,6 @@ for page in $root/site/*.html; do out=$root/gemini/$(basename $page ".html").gmi html2gmi --input $page --output $out --emitImagesAsLinks --prettyTables --citationMarkers; sed -i 's/\.html/.gmi/g' $out - done for page in $root/site/pages/*.html $root/site/posts/*.html; do |