diff options
Diffstat (limited to 'docs')
| -rwxr-xr-x | docs/publish.sh | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/docs/publish.sh b/docs/publish.sh index b122838a..02aab149 100755 --- a/docs/publish.sh +++ b/docs/publish.sh @@ -53,11 +53,12 @@ for input in $(find . -name '*.adoc'); do status=$(git status -s $input ) when=$(git log -n1 --format='%ad' '--date=format-local:%s' $input ) - frontmatter="version: ${vers}\nlayout: default" - - echo "---" > ${output} - echo "$frontmatter" >> ${output} - echo "---" >> ${output} + cat <<EOF > ${output} +--- +version: ${vers} +layout: default +--- +EOF if [ -n "$when" ] then |
