[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

bug#26006: New web site is on line!

From: Ludovic Courtès
Subject: bug#26006: New web site is on line!
Date: Wed, 06 Dec 2017 18:10:48 +0100
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/25.3 (gnu/linux)


It’s embarrassing that it took us so long, but I’m happy to say that the
new web site is on line!


I’ve created redirects from the old /news URLs to the new /blog URLs,
using the oh-so-elegant script below (I can’t believe it’s not Scheme!).

Please report:

  • broken links;

  • other pages that need a redirect;

  • information that disappeared—I’m thinking in particular of talks,
    which used to appear under /help, but are now supposed to be made
    available via a blog post, the advantage being that we get
    /blog/tag/TOPIC links to the post;

  • anything else that’s broken.

For web design issues, I hope sirgazil or someone else can answer and
take action—I’m still not much of a web person and it’s probably better
for everyone when I stick to writing Scheme.  ;-)

Note that the cron job that used to update package pages from
hydra.gnu.org is now broken.  I’ll try to come up with something else
with proper GuixSD integration and run it from berlin.guixsd.org.

Thanks again sirgazil for all the work!



function gen_redirect
    cat <<EOF
<!DOCTYPE html>
<html lang="en">
    <meta charset="UTF-8" />
    <title>Page has moved! — GNU Guix</title>
    <noscript><meta http-equiv="refresh" content="0; 
  <body onload="window.location = '$TARGET_URL';">
    Redirecting to the new page location...


for page in "$@"
    page_without_extension="`echo $page | sed -es'/\.html$//g'`"
    new_page="`find ../blog -name $page_without_extension -type d | head -1`"
    if [ -z "$new_page" ]
        echo "no new page for '$page'" >&2
        exit 1

    # Strip '../'.
    new_page_url="$URL_PREFIX`echo $new_page | cut -c 4-`"

    echo "redirect '$page' -> '$new_page_url'"
    gen_redirect "$new_page_url" > "$page".new && mv "$page".new "$page"

reply via email to

[Prev in Thread] Current Thread [Next in Thread]