From 5d837f4ae0950b5ad0afa40a3bfa92bf44451a19 Mon Sep 17 00:00:00 2001 From: Dominic Reich Date: Sun, 26 Mar 2023 23:02:25 +0200 Subject: [PATCH] update theme / author links --- .backup-git-pre-push-hook | 25 +++++++++++++++++++++++++ config/_default/languages.en.toml | 10 ++++++---- config/_default/params.toml | 9 ++++++--- 3 files changed, 37 insertions(+), 7 deletions(-) create mode 100755 .backup-git-pre-push-hook diff --git a/.backup-git-pre-push-hook b/.backup-git-pre-push-hook new file mode 100755 index 0000000..835f24f --- /dev/null +++ b/.backup-git-pre-push-hook @@ -0,0 +1,25 @@ +#!/bin/bash + +if ! [ -f ~/.cloudflarerc ] ; then + echo "No ~/.cloudflarerc file found. Cloudflare clear cache SKIPPED." + exit 0 +fi + +. ~/.cloudflarerc + +echo -n "Clearing cloudflare cache..." + +ret="$(curl -s -X DELETE "https://api.cloudflare.com/client/v4/zones/$id/purge_cache" \ + -H "Authorization: Bearer $apikey" \ + -H "Content-Type: application/json" \ + --data '{"purge_everything":true}')" + +if [ -n "$(echo $ret | grep success)" ] ; then + echo " Success!" +else + echo " *** FAILED ***" + echo "Could not clear cloudflare's cache. Update will not proceed." + # exit with 1, so the update does not proceed, so we will know + exit 1 +fi + diff --git a/config/_default/languages.en.toml b/config/_default/languages.en.toml index 0c57f06..3da8b53 100644 --- a/config/_default/languages.en.toml +++ b/config/_default/languages.en.toml @@ -34,9 +34,11 @@ dateFormat = "2 January 2006" # { facebook = "https://facebook.com/username" }, # { flickr = "https://www.flickr.com/photos/username/" }, # { foursquare = "https://foursquare.com/username" }, - # { github = "https://github.com/oe7drt" }, - # { gitlab = "https://gitlab.com/username" }, - { github = "https://git.oe7drt.com/dominic" }, + { github = "https://github.com/oe7drt" }, + # { gitlab = "https://gitlab.com/username" }, + # { codeberg = "https://codeberg.org/dominic" }, + { github = "https://codeberg.org/dominic" }, + # { github = "https://git.oe7drt.com/dominic" }, # { google = "https://www.google.com/" }, # { hashnode = "https://username.hashnode.dev" }, # { instagram = "https://instagram.com/username" }, @@ -44,7 +46,7 @@ dateFormat = "2 January 2006" # { kickstarter = "https://www.kickstarter.com/profile/username" }, # { lastfm = "https://lastfm.com/user/username" }, # { linkedin = "https://linkedin.com/in/username" }, - { mastodon = "https://fedi.oe7drt.com/@dominic" }, + # { mastodon = "https://fedi.oe7drt.com/@dominic" }, # { medium = "https://medium.com/username" }, # { microsoft = "https://www.microsoft.com/" }, # { orcid = "https://orcid.org/userid" }, diff --git a/config/_default/params.toml b/config/_default/params.toml index 9f2c826..d90c7ca 100644 --- a/config/_default/params.toml +++ b/config/_default/params.toml @@ -11,9 +11,12 @@ # colorScheme = "sapphire" # colorScheme = "avocado" # colorScheme = "cherry" -colorScheme = "ocean" -defaultAppearance = "dark" # valid options: light or dark -autoSwitchAppearance = true +# colorScheme = "ocean" +# defaultAppearance = "light" +# autoSwitchAppearance = false +colorScheme = "sapphire" +defaultAppearance = "light" # valid options: light or dark +autoSwitchAppearance = false enableSearch = true enableCodeCopy = true