aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMax Magorsch <arzano@gentoo.org>2020-09-08 03:43:43 +0200
committerMax Magorsch <arzano@gentoo.org>2020-09-08 03:43:43 +0200
commit12c9d61f8df259e3209c85afa225cdd9b95d7b18 (patch)
tree23f27bf2c7d2a3a11bdf21c8880f8047586d1efc
parentFix gentoo news pages (diff)
downloadwww-12c9d61f8df259e3209c85afa225cdd9b95d7b18.tar.gz
www-12c9d61f8df259e3209c85afa225cdd9b95d7b18.tar.bz2
www-12c9d61f8df259e3209c85afa225cdd9b95d7b18.zip
Use markdown for gentoo-news
Signed-off-by: Max Magorsch <arzano@gentoo.org>
-rwxr-xr-xbin/update-news.sh4
1 files changed, 2 insertions, 2 deletions
diff --git a/bin/update-news.sh b/bin/update-news.sh
index beea5de..99c5590 100755
--- a/bin/update-news.sh
+++ b/bin/update-news.sh
@@ -12,8 +12,8 @@ do
rawTitle="$(grep -m1 'Title:' $f)"
title=${rawTitle/Title: /}
title=${title//\"/\\\"}
- cp "$f" "content/support/news-items/${file/.en.txt/}.txt"
- echo -e "---\nsection: \"support\"\ngentoonews: true\ntitle: \"${title}\"\ndate: ${year}-${month}-${day}T00:00:00+00:00\nlayout: gentoonews\n---\n\n$(cat "content/support/news-items/${file/.en.txt/}.txt")" > "content/support/news-items/${file/.en.txt/}.txt"
+ cp "$f" "content/support/news-items/${file/.en.txt/}.md"
+ echo -e "---\nsection: \"support\"\ngentoonews: true\ntitle: \"${title}\"\ndate: ${year}-${month}-${day}T00:00:00+00:00\nlayout: gentoonews\n---\n\n$(cat "content/support/news-items/${file/.en.txt/}.md")" > "content/support/news-items/${file/.en.txt/}.md"
done
echo '...done.'