paritybit.ca

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

commit 536e910951a41a5093793a1d45dabbf4c54d293f
parent 16260abc22fbcc077aae68eae4ab3a0a2b4fba7b
Author: Jake Bauer <jbauer@paritybit.ca>
Date:   Wed,  3 Feb 2021 00:05:25 -0500

Remove footer

Diffstat:
Mgemini/compile | 53++++++++++++++++++-----------------------------------
Mgemini/pages/home.gmi | 2+-
Dgemini/template/footer.gmi | 6------
3 files changed, 19 insertions(+), 42 deletions(-)

diff --git a/gemini/compile b/gemini/compile @@ -17,6 +17,19 @@ # ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF # OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. +### CONFIGURATION ### +# The geminispace domain +siteName="paritybit.ca" +# Set to "false" to disable auto-upload +autoUpload="true" +# Where to upload files +remote="nyx:/srv/gemini/" +# Where gmi files are +pageDir="pages/" +# Where compiled gmi pages will go +gmiDir="public/gmi" +mkdir -p "$gmiDir" + # POSIX Shell "Strict Mode" set -o errexit set -o nounset @@ -38,44 +51,14 @@ RED="\033[0;31m" GREEN="\033[0;32m" YELLOW="\033[0;33m" -### CONFIGURATION ### -# The geminispace domain -siteName="paritybit.ca" -# Set to "false" to disable auto-upload -autoUpload="true" -# Where to upload files -remote="nyx:/srv/gemini/" -# Where the header/footer files are -templateDir="template/" -# Where gmi files are -pageDir="pages/" -# Where compiled gmi pages will go -gmiDir="public/gmi" -mkdir -p "$gmiDir" - # Prints the message passed as the 1st argument in red. -print_error_msg() -{ - printf "$RED[ee] %s\n$CLEAR" "$1" -} - +print_error_msg() { printf "$RED[ee] %s\n$CLEAR" "$1" ; } # Prints the message passed as the 1st argument in green. -print_success_msg() -{ - printf "$GREEN[ok] %s\n$CLEAR" "$1" -} - +print_success_msg() { printf "$GREEN[ok] %s\n$CLEAR" "$1" ; } # Prints the message passed as the 1st argument in yellow. -print_header_msg() -{ - printf "$YELLOW[hh] %s\n$CLEAR" "$1" -} - +print_header_msg() { printf "$YELLOW[hh] %s\n$CLEAR" "$1" ; } # Prints the message passed as the 1st argument with default colours. -print_info_msg() -{ - printf "$CLEAR[ii] %s\n" "$1" -} +print_info_msg() { printf "$CLEAR[ii] %s\n" "$1" ; } auto_upload() { @@ -94,7 +77,7 @@ compile_gmi() print_header_msg "COMPILING GEMINI: $file" mkdir -p "$gmiDir"/"$subDir" - cat "$file" "$templateDir"/footer.gmi > "$gmiDir"/"$subDir"/"$fileName".gmi + cp "$file" "$gmiDir"/"$subDir"/"$fileName".gmi outputFile="$subDir/$fileName.gmi" } diff --git a/gemini/pages/home.gmi b/gemini/pages/home.gmi @@ -35,7 +35,7 @@ Additional places I exist on the Internet: ## Licensing -Unless otherwise stated, all content on this website is licensed under the CC BY-SA 4.0 International License. All code on and for this website is licensed under the ISC License. The source code is available on: +Unless otherwise stated, all content on this website is licensed under the CC BY-SA 4.0 International License and all code on and for this website is licensed under the ISC License. The source code is available on: => https://git.sr.ht/~jbauer/paritybit.ca SourceHut => (https://git.paritybit.ca/paritybit.ca/ git.paritybit.ca diff --git a/gemini/template/footer.gmi b/gemini/template/footer.gmi @@ -1,6 +0,0 @@ - -``` ------------------ -``` - -All content on this site is licensed under the CC BY-SA 4.0 International License. Any code snippets are licensed under the GNU GPL-3.0-or-later.