added prompt to choose title, tag is added to allowed-tags

This commit is contained in:
martinbydefault
2017-08-03 00:44:21 -03:00
committed by GitHub
parent 162565bccd
commit 6e4c4a70a7

View File

@ -22,10 +22,12 @@ if [ -d "${TAGDIR}" ]; then
echo "Creating tag(s) for ${tags}"
for tag in ${tags}; do
echo "Title for $tag:"
read title
# Cannot indent here string.
cat <<EOF >"${TAGDIR}/tag_${tag}.md"
---
title: "${tag} Posts"
title: "${title}"
tagName: ${tag}
search: exclude
permalink: tag_${tag}.html
@ -39,6 +41,8 @@ folder: tags
{% include links.html %}
EOF
echo " - ${tag}" >> _data/tags.yml
done
else