slitaz-forge view pkgs/lib/header.sh @ rev 697

mirror: remove Swiss academia mirror
See: http://forum.slitaz.org/topic/who-is-responsible-for-the-mirror-list-on-httpslitazorgenget
author Aleksej Bobylev <al.bobylev@gmail.com>
date Mon Oct 08 23:27:48 2018 +0300 (2018-10-08)
parents fd79a2207aed
children
line source
1 # No need `<meta charset="UTF-8">` as we already have `Content-type: text/html; charset=UTF-8`.
2 # The HTTP Content-Type header and any BOM elements have precedence over this element.
3 # No need `<meta name="robots" content="index, follow, all">
4 # As the default value is "index, follow"
5 # No need to specify `type="text/css"` in the stylesheet link as html5 not required it.
7 case "${LANG%_*}" in
8 fa) dir='rtl';;
9 *) dir='ltr';;
10 esac
12 cat << _EOF_
13 <!DOCTYPE html>
14 <html lang="${LANG%_*}" dir="$dir">
15 <head>
16 <title>$(eval_gettext 'SliTaz Packages - Search $SEARCH')</title>
17 <meta name="application-name" content="TazPkg">
18 <meta name="description" content="SliTaz packages search">
19 <meta name="keywords" content="SliTaz, TazPkg">
20 <meta name="expires" content="never">
21 <meta name="viewport" content="width=device-width, initial-scale=1">
22 <link rel="shortcut icon" href="style/favicon.ico">
23 <link rel="stylesheet" href="style/slitaz.min.css">
24 <link rel="stylesheet" href="pkgs.css">
25 </head>
26 <body>
28 <script>de=document.documentElement;de.className+=(("ontouchstart" in de)?' touch':' no-touch');</script>
30 <header>
31 <h1><a href="./">$(gettext 'SliTaz Packages')</a></h1>
32 <div class="network">
33 <a href="http://www.slitaz.org/" class="home" title="$(gettext 'Home')"></a>
34 <a href="http://scn.slitaz.org/">$(gettext 'Community')</a>
35 <a href="http://doc.slitaz.org/">$(gettext 'Doc')</a>
36 <a href="http://forum.slitaz.org/">$(gettext 'Forum')</a>
37 <a href="http://pro.slitaz.org/">$(gettext 'Pro')</a>
38 <a href="http://shop.slitaz.org/">$(gettext 'Shop')</a>
39 <a href="http://bugs.slitaz.org/">$(gettext 'Bugs')</a>
40 <a href="http://hg.slitaz.org/?sort=lastchange">$(gettext 'Hg')</a>
41 </div>
42 </header>
44 _EOF_