diff options
author | John MacFarlane <jgm@berkeley.edu> | 2011-01-11 22:25:57 -0800 |
---|---|---|
committer | John MacFarlane <jgm@berkeley.edu> | 2011-01-11 23:15:30 -0800 |
commit | 91510a109f9284934fd5b6386fa23a5fc37b09bb (patch) | |
tree | 2cee03745727c1926ccfefcdf52e6c4b1a6603dc /templates/html.template | |
parent | e8ad4ba43c7c187a5b6ee6025bc6039488d7f420 (diff) | |
download | pandoc-91510a109f9284934fd5b6386fa23a5fc37b09bb.tar.gz |
Improvements to --html5 support:
+ <nav> for TOC, <figure> for figures, type attribute in <ol>.
+ Don't add math javascript in html5.
+ Use style attributes instead of deprecated width, align.
+ html template: move <title> after <meta>.
Note: charset needs to be declared before title.
+ slidy and s5 templates: move <title> after <meta>.
+ html template: Added link to html5 shim for IE.
+ Make --html5 have an effect only for 'html' writer (not s5, slidy, epub).
Diffstat (limited to 'templates/html.template')
-rw-r--r-- | templates/html.template | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/templates/html.template b/templates/html.template index eabda4f44..3f8b76fed 100644 --- a/templates/html.template +++ b/templates/html.template @@ -6,7 +6,6 @@ $else$ <html xmlns="http://www.w3.org/1999/xhtml"$if(lang)$ lang="$lang$" xml:lang="$lang$"$endif$> $endif$ <head> - <title>$if(title-prefix)$$title-prefix$ - $endif$$if(pagetitle)$$pagetitle$$endif$</title> $if(html5)$ <meta charset="utf-8" /> $else$ @@ -19,6 +18,12 @@ $endfor$ $if(date)$ <meta name="date" content="$date$" /> $endif$ + <title>$if(title-prefix)$$title-prefix$ - $endif$$if(pagetitle)$$pagetitle$$endif$</title> +$if(html5)$ + <!--[if lt IE 9]> + <script src="http://html5shim.googlecode.com/svn/trunk/html5.js"></script> + <![endif]--> +$endif$ $if(highlighting-css)$ <style type="text/css"> $highlighting-css$ @@ -28,8 +33,11 @@ $for(css)$ <link rel="stylesheet" href="$css$" $if(html5)$$else$type="text/css" $endif$/> $endfor$ $if(math)$ +$if(html5)$ +$else$ $math$ $endif$ +$endif$ $for(header-includes)$ $header-includes$ $endfor$ |