diff --git a/bin/_commands/choice.sh b/bin/_commands/choice.sh index 3a2df95..f0935d5 100755 --- a/bin/_commands/choice.sh +++ b/bin/_commands/choice.sh @@ -21,8 +21,6 @@ choose() { mkdir -p "../content/users/$user${target%/*}/" cp "../content/pages$target.md" "../content/users/$user${target%/*}/" - chmod -R g+rw "../content/users/$user${target%/*}/" - chgrp -R www-data "../content/users/$user${target%/*}/" # Delete former result files rm "$dir"/*.result diff --git a/bin/_commands/create.sh b/bin/_commands/create.sh index 63f5592..b54b9f1 100755 --- a/bin/_commands/create.sh +++ b/bin/_commands/create.sh @@ -9,7 +9,5 @@ kind=$(cat "$dir/$file") echo "Creating content/$kind/$page" hugo --source=.. new "content/$kind/$page" -chmod -R g+rw "content/$kind/$page" -chgrp -R www-data "content/$kind/$page" ./ac_route.sh "$dir/$page" _index.md diff --git a/bin/_commands/default_actions.sh b/bin/_commands/default_actions.sh index b35647b..6ac1767 100755 --- a/bin/_commands/default_actions.sh +++ b/bin/_commands/default_actions.sh @@ -5,7 +5,6 @@ dir=$1 file=$2 -echo echo "Default actions for $dir/$file" create() { @@ -18,8 +17,6 @@ create() { mkdir -p "$target" cp "../content$value.md" "$target" - chmod -R g+rw "$target" - chgrp -R www-data "$target" ./ac_route.sh "$target" "${value##*/}.md" done diff --git a/bin/ac_route.sh b/bin/ac_route.sh index bf9e833..2ba5f98 100755 --- a/bin/ac_route.sh +++ b/bin/ac_route.sh @@ -2,6 +2,7 @@ # Routing acoeur commands to corresponding shell command +echo echo "Triggering command for $1 $2" cd "$(dirname "$0")" || exit diff --git a/content/users/_index.md b/content/users/_index.md index 42fef8f..7f37441 100644 --- a/content/users/_index.md +++ b/content/users/_index.md @@ -1,4 +1,3 @@ --- title: Utilisateurs --- - diff --git a/themes/acoeur/layouts/_default/list.html b/themes/acoeur/layouts/_default/list.html index 6cb1f58..f0cda57 100644 --- a/themes/acoeur/layouts/_default/list.html +++ b/themes/acoeur/layouts/_default/list.html @@ -12,7 +12,8 @@ {{ with .Content }} -
+
{{- . -}}
{{ end }}