Skip to content

Commit

Permalink
added prompt to choose title, tag is added to allowed-tags
Browse files Browse the repository at this point in the history
  • Loading branch information
martinbydefault authored Aug 3, 2017
1 parent 162565b commit 6e4c4a7
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion createtag
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -39,6 +41,8 @@ folder: tags
{% include links.html %}
EOF

echo " - ${tag}" >> _data/tags.yml

done

else
Expand Down

0 comments on commit 6e4c4a7

Please sign in to comment.