diff options
author | tdro <tdro@noreply.example.com> | 2022-06-17 21:32:34 -0400 |
---|---|---|
committer | tdro <tdro@noreply.example.com> | 2022-06-17 21:32:34 -0400 |
commit | 699cc6f5783f0308e3d53aecece22499b58bd047 (patch) | |
tree | fcc02f3f9edd037c4300616fec1dfc6e05069af1 /Makefile | |
parent | 44cc591c6e14286328128879504fb996d5ad3270 (diff) | |
download | canory-699cc6f5783f0308e3d53aecece22499b58bd047.tar.gz canory-699cc6f5783f0308e3d53aecece22499b58bd047.tar.bz2 canory-699cc6f5783f0308e3d53aecece22499b58bd047.zip |
content/default/message: Add note on author list
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 13 |
1 files changed, 0 insertions, 13 deletions
@@ -21,19 +21,6 @@ hugo: server: php -S 127.0.0.1:9294 -t public -author: -ifndef user - @printf 'Error: No author user name given!\nUsage: make author user=default\n' -else - @cp -rT content/default content/$(user) || printf "Error: Author user '$(user)' data may already exist.\n" - @cp -rT data/authors/default.yaml data/authors/$(user).yaml || printf "Error: Author user '$(user)' configuration may already exist.\n" - _user=$(user) && \ - _name=$${_user^} && \ - grep -rl "default" content/$(user) | xargs sed --in-place 's/default/$(user)/g' && \ - grep -rl "default" data/authors/$(user).yaml | xargs sed --in-place 's/default/$(user)/g' && \ - grep -rl "Default" data/authors/$(user).yaml | xargs sed --in-place "s/Default/$$_name/g" -endif - test: validatornu \ public/index.html \ |