From 699cc6f5783f0308e3d53aecece22499b58bd047 Mon Sep 17 00:00:00 2001 From: tdro Date: Fri, 17 Jun 2022 21:32:34 -0400 Subject: content/default/message: Add note on author list --- Makefile | 13 --------- content/default/messages/create.md | 32 +++++++++++++++++++++++ content/default/messages/quickstart.md | 10 ++----- themes/default/layouts/_default/home.sources.html | 2 +- 4 files changed, 35 insertions(+), 22 deletions(-) create mode 100644 content/default/messages/create.md diff --git a/Makefile b/Makefile index 9507479..5c7ca1d 100644 --- a/Makefile +++ b/Makefile @@ -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 \ diff --git a/content/default/messages/create.md b/content/default/messages/create.md new file mode 100644 index 0000000..75654fe --- /dev/null +++ b/content/default/messages/create.md @@ -0,0 +1,32 @@ ++++ +date = "2022-03-13T04:24:37+00:00" +lastmod = "2022-03-13T04:24:37+00:00" +tags = [ "docs", "hugo", "authors" ] ++++ + +"Bootstrap" authors by adding a name to the author list in the `toml/json/yaml` +configuration file. We tried to create a somebody but all we could muster was a +[nobody](/nobody). + +```yaml +author: + list: + - canory + - default + - nobody +``` + +To complete the process, read and follow [nobody's profile](/nobody), then +create nobody's home in the content directory. + +``` +content +|__ nobody +    |__ media +    |   |__ profile +    |   |__ header.jpg +    |   |__ picture.png + | +    |__ messages +    |__ new.md +``` diff --git a/content/default/messages/quickstart.md b/content/default/messages/quickstart.md index 38eea2e..2661cf1 100644 --- a/content/default/messages/quickstart.md +++ b/content/default/messages/quickstart.md @@ -11,7 +11,7 @@ explaining how to get started. GIT CLONE. EXECUTE HUGO TWICE. HUGO VERSION >= 0.94.2. ```shell -git clone --branch 0.7.28 https://www.thedroneely.com/git/thedroneely/canory +git clone --branch 0.8.13 https://www.thedroneely.com/git/thedroneely/canory cd canory hugo && hugo ``` @@ -26,10 +26,4 @@ php -S 127.0.0.1:8126 ruby -run -e httpd . -p 8127 ``` -MAKE USER. STUDY CONTENT AND DATA FOLDER. - -```shell -make author user=robot -``` - -That concludes our community announcement. +That concludes our automated community announcement. diff --git a/themes/default/layouts/_default/home.sources.html b/themes/default/layouts/_default/home.sources.html index 6bf4b77..424180a 100644 --- a/themes/default/layouts/_default/home.sources.html +++ b/themes/default/layouts/_default/home.sources.html @@ -93,7 +93,7 @@