From 1e3c22c1597493c288de6b7e13a2d412160c9cd3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Gabriel=20P=C3=A9rez-Cerezo?= Date: Wed, 15 Apr 2020 19:47:23 +0200 Subject: Fix wiki links, make red links red --- htdocs/index.html | 3 +++ scripts/geojson/fetch_single.sh | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/htdocs/index.html b/htdocs/index.html index f4fda26..f2e332f 100644 --- a/htdocs/index.html +++ b/htdocs/index.html @@ -27,6 +27,9 @@ color: white; text-shadow: 0px 0px 5px black; } + a.new { + color: red; + } diff --git a/scripts/geojson/fetch_single.sh b/scripts/geojson/fetch_single.sh index 0b3442e..ce37b59 100755 --- a/scripts/geojson/fetch_single.sh +++ b/scripts/geojson/fetch_single.sh @@ -11,7 +11,7 @@ coords=`echo "$json" | sed -n "s/.*coordinates = {{Co|\([^}]*\).*/\1/p"` coord_x=`echo "$coords" | sed -n "s/\([^|]\+\).*/\1/p"` coord_y=`echo "$coords" | sed -n "s/.*|\([^|]\+\).*/\1/p"` -description=`curl "https://wiki.linux-forks.de/mediawiki/api.php?action=parse&page=$1§ion=0&prop=text&format=json" 2>/dev/null | sed -z -n "s/<\/p>

//g;s/.*

\(.*\)<\/p>.*/\1/p"` +description=`curl "https://wiki.linux-forks.de/mediawiki/api.php?action=parse&page=$1§ion=0&prop=text&format=json" 2>/dev/null | sed -z -n "s/<\/p>

//g;s/.*

\(.*\)<\/p>.*/\1/p" | sed s,\"/mediawiki/index.php,\"https://wiki.linux-forks.de/mediawiki/index.php,g` if [[ "$coord_x" != "" && "$coord_y" != "" ]]; then -- cgit v1.2.3