bug-guix
[Top][All Lists]
Advanced

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

bug#26006: New web site is on line!


From: Adonay Felipe Nogueira
Subject: bug#26006: New web site is on line!
Date: Wed, 06 Dec 2017 20:10:17 -0200
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/25.3 (gnu/linux)

This is of course minor issue but we just have to insert proper
copyright + license notices in the .scm files. ;)

2017-12-06T18:10:48+0100 Ludovic Courtès wrote:
> Hello!
>
> It’s embarrassing that it took us so long, but I’m happy to say that the
> new web site is on line!
>
>   https://www.gnu.org/software/guix/
>
> 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!
>
> Ludo’.
>
> #!/bin/sh
>
> function gen_redirect
> {
>     TARGET_URL="$1"
>     cat <<EOF
> <!DOCTYPE html>
> <html lang="en">
>   <head>
>     <meta charset="UTF-8" />
>     <title>Page has moved! — GNU Guix</title>
>     <noscript><meta http-equiv="refresh" content="0; 
> url=$TARGET_URL"></noscript>
>   </head>
>   <body onload="window.location = '$TARGET_URL';">
>     Redirecting to the new page location...
>   </body>
> </html>
> EOF
> }
>
> URL_PREFIX="/software/guix/"
>
> for page in "$@"
> do
>     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" ]
>     then
>       echo "no new page for '$page'" >&2
>       exit 1
>     fi
>
>     # 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"
> done
>

-- 
- https://libreplanet.org/wiki/User:Adfeno
- Palestrante e consultor sobre /software/ livre (não confundir com
  gratis).
- "WhatsApp"? Ele não é livre. Por favor, veja formas de se comunicar
  instantaneamente comigo no endereço abaixo.
- Contato: https://libreplanet.org/wiki/User:Adfeno#vCard
- Arquivos comuns aceitos (apenas sem DRM): Corel Draw, Microsoft
  Office, MP3, MP4, WMA, WMV.
- Arquivos comuns aceitos e enviados: CSV, GNU Dia, GNU Emacs Org, GNU
  GIMP, Inkscape SVG, JPG, LibreOffice (padrão ODF), OGG, OPUS, PDF
  (apenas sem DRM), PNG, TXT, WEBM.





reply via email to

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