diff options
author | Laura Arjona Reina <larjona@debian.org> | 2021-01-24 12:47:42 +0100 |
---|---|---|
committer | Laura Arjona Reina <larjona@debian.org> | 2021-01-24 12:47:42 +0100 |
commit | b4160b6cb23c6ecc29862d18f2b6f59e5ca4997c (patch) | |
tree | b3f2532601e63addf7ae7db52572da1714cf8185 | |
parent | 276949e7d29caf21794ddabdfe242792905ee6f0 (diff) |
make a basic template declaring HTML5, and make the homepage to use ithtml5
-rw-r--r-- | english/template/debian/basic_html5.wml | 68 | ||||
-rw-r--r-- | english/template/debian/mainpage.wml | 2 |
2 files changed, 69 insertions, 1 deletions
diff --git a/english/template/debian/basic_html5.wml b/english/template/debian/basic_html5.wml new file mode 100644 index 00000000000..c74fb7670d1 --- /dev/null +++ b/english/template/debian/basic_html5.wml @@ -0,0 +1,68 @@ +#use wml::std::tags +#use wml::std::box + +#use wml::debian::common_translation +#use wml::debian::common_tags +#use wml::debian::language_names + +<ifeq "$(DOCTYPE)" xhtml + "<!DOCTYPE html PUBLIC \"-//W3C//DTD XHTML 1.0 Transitional//EN\" \"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd\">" + "<!DOCTYPE html>" +/> + +# not using [AR: dir="RTL":] because apparently the whole page was flipped +# and this wasn't desirable for them +<html lang="$(CUR_ISO_LANG)"[FA: dir="RTL":][HE: dir="RTL":]> +{: +<head> + <meta http-equiv="Content-Type" content="text/html; charset=$(CHARSET)" /> + <title>$(BARETITLE:*<gettext domain="templates">Debian</gettext> -- ){: [[s/<\/?q>/"/g]] [[s/<\/?sup>//g]] [[s/<\/?i>//g]] $(title) :}</title> + <link rel="author" href="mailto:webmaster@debian.org" /> +<when "$(SUMMARY)"> + <meta name="Description" content="$(SUMMARY)" /> +</when> + <meta name="Generator" content="WML $(WML_VERSION)" /> + <meta name="Modified" content="$(WML_GEN_ISOTIME)" /> + <meta name="viewport" content="width=device-width"> + <meta name="mobileoptimized" content="300"> + <meta name="HandheldFriendly" content="true"> +{#meta#} +{#rss#} +{#style#} +<when <not "$(MAINPAGE)">> +{#style#:<link href="$(CSS:-$(HOME))/debian.css" rel="stylesheet" type="text/css" /> + <link href="$(CSS:-$(HOME))/debian-$(CUR_ISO_LANG).css" rel="stylesheet" type="text/css" media="all"/> +:#style#} +</when> +<when "$(MAINPAGE)"> + <link rel="shortcut icon" href="favicon.ico" /> + <meta name="Keywords" content="<keywords/>" /> +{#style#:<link href="$(CSS:-$(HOME))/debhome.css" rel="stylesheet" type="text/css" /> + <link href="$(CSS:-$(HOME))/startpage.css" rel="stylesheet" type="text/css" /> + <link href="$(CSS:-$(HOME))/5img-carousel-slider.css" rel="stylesheet" type="text/css" /> + <link href="$(CSS:-$(HOME))/debian-$(CUR_ISO_LANG).css" rel="stylesheet" type="text/css" media="all"/> +:#style#} +</when> +<perl> + my $ext = lc('$(CUR_ISO_LANG)'); $ext =~ s/-/_/; + print '<link rel="search" type="application/opensearchdescription+xml" title="<gettext domain="templates">Debian website search</gettext>" href="$(HOME)/search.'.$ext.'[CN:-cn:][TW:-tw:][HK:-hk:].xml" />'; +</perl> +</head> +<body> + +$(NONAVBAR:+# )#use wml::debian::navbar +{#alternate_navbar#} +<div id="content"> +{#body#} +<div class="clr"></div> +</div> <!-- end content --> +<div id="footer"> +{#pre_footer#} +#use wml::debian::footer NOCOMMENTS="$(NOCOMMENTS)" NOCOPYRIGHT="$(NOCOPYRIGHT)" +{#post_footer#} +</div> <!-- end footer --> +</body> +:} +</html> + +{#body#: diff --git a/english/template/debian/mainpage.wml b/english/template/debian/mainpage.wml index f5f04f22380..400504a63f3 100644 --- a/english/template/debian/mainpage.wml +++ b/english/template/debian/mainpage.wml @@ -15,7 +15,7 @@ # Do not change anything below here without asking on debian-www first #use wml::debian::common_translation -#use wml::debian::basic MAINPAGE="true" SUMMARY="<blurb/>" +#use wml::debian::basic_html5 MAINPAGE="true" SUMMARY="<blurb/>" #use wml::debian::links.tags #use wml::debian::languages #use wml::debian::release_info |