fix: escape quotes in description in auto-gen markdown detail pages

This commit is contained in:
neil 2022-10-20 12:46:01 +08:00
parent e171f2b934
commit 0d1bd3b562

View file

@ -10,7 +10,7 @@ for row in $(cat $1 | jq -r '.[] | @base64'); do
content="--- content="---
type: page type: page
title: \"$(_jq '.name')\" title: \"$(_jq '.name')\"
Description: \"$(_jq '.desc')\" Description: \"$(_jq '.desc' | tr '\"' "'")\"
layout: \"package-detail\" layout: \"package-detail\"
---" ---"
echo "$content" > $2/$(_jq '.slug').md echo "$content" > $2/$(_jq '.slug').md