diff options
-rw-r--r-- | .gitignore | 1 | ||||
-rwxr-xr-x | www/index.sh | 14 | ||||
-rw-r--r-- | www/news/index.md | 14 |
3 files changed, 8 insertions, 21 deletions
@@ -42,3 +42,4 @@ tocheck* *.html !www/template.html /www/temp.md +/www/news/index.md diff --git a/www/index.sh b/www/index.sh index e188edfe..c1eeb600 100755 --- a/www/index.sh +++ b/www/index.sh @@ -24,7 +24,7 @@ title() { } meta() { - URL=$(echo ${f%.md}.html | sed -e s-blog/--) + URL=$(echo ${f%.md}.html | sed -e s-news/--) echo "[$(title)]($URL){.title}" echo "[$(sed -n 3p $f | sed -e s-^..--)]{.date}" @@ -37,14 +37,14 @@ meta() { # generate the index file -FILES=$(ls -1 -t blog/*.md | sed -e s-.*index.md-- -e s-.*presentation.md--) +FILES=$(ls -1 -t news/*.md | sed -e s-.*index.md-- -e s-.*presentation.md--) -cat blog-list.md > blog/index.md +cat news-list.md > news/index.md for f in $FILES do touch -d "$(sed -n 3p $f | sed -e 's/^..//g')" $f - meta >> blog/index.md + meta >> news/index.md done # generate an RSS index @@ -54,7 +54,7 @@ rss() { echo '<channel>' echo "<title>$BLOGTITLE</title>" - echo "<link>"$BLOGBASE"blog/</link>" + echo "<link>"$BLOGBASE"news/</link>" echo "<description>$BLOGDESCRIPTION</description>" for f in $FILES @@ -74,5 +74,5 @@ rss() { echo '</rss>' } -rss > blog/feed.xml -cp blog/feed.xml feed.xml +rss > news/feed.xml +cp news/feed.xml feed.xml diff --git a/www/news/index.md b/www/news/index.md deleted file mode 100644 index 6d12ce7d..00000000 --- a/www/news/index.md +++ /dev/null @@ -1,14 +0,0 @@ -% News announcements from the Libreboot project - -Updates to libreboot, both technical and organisational, will be written about -here over time. - -------------------------------------------------------------------------------- - -[Open Letter to the Free Software Community](unity.html){.title} -[2 Apr 2017]{.date} - -To the free software community: - -Over the past six months, the Libreboot project has been in a state of discord... - |