awesome-wm-widgets/scripts/update_site.sh

8 lines
233 B
Bash
Raw Normal View History

2022-01-23 20:41:03 +01:00
mkdir ./_widgets
2022-01-23 19:37:07 +01:00
for D in *; do
if [[ -d "${D}" ]] && [[ ${D} == *"-widget"* ]]; then
echo "${D}"
cp ${D}/README.md ./_widgets/${D}.md
sed -i '1s/^/---\nlayout: page\n---\n/' ./_widgets/${D}.md
fi
done