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

Update pangolin
author Pascal Bellard <pascal.bellard@slitaz.org>
date Wed Jan 01 18:26:56 2020 +0100 (3 months ago)
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_