From 727772183db59ed74a26757c259e6bf947850fa8 Mon Sep 17 00:00:00 2001 From: John MacFarlane Date: Wed, 11 Jan 2012 12:52:37 -0800 Subject: Split html template into html, html5 templates. --- default.html5 | 54 ++++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 54 insertions(+) create mode 100644 default.html5 (limited to 'default.html5') diff --git a/default.html5 b/default.html5 new file mode 100644 index 000000000..ac70bc56d --- /dev/null +++ b/default.html5 @@ -0,0 +1,54 @@ + + + + + +$for(author-meta)$ + +$endfor$ +$if(date-meta)$ + +$endif$ + $if(title-prefix)$$title-prefix$ - $endif$$if(pagetitle)$$pagetitle$$endif$ + +$if(highlighting-css)$ +$highlighting-css$ +$endif$ +$for(css)$ + +$endfor$ +$if(math)$ + $math$ +$endif$ +$for(header-includes)$ + $header-includes$ +$endfor$ + + +$for(include-before)$ +$include-before$ +$endfor$ +$if(title)$ +
+

$title$

+$for(author)$ +

$author$

+$endfor$ +$if(date)$ +

$date$

+$endif$ +
+$endif$ +$if(toc)$ + +$endif$ +$body$ +$for(include-after)$ +$include-after$ +$endfor$ + + -- cgit v1.2.3 From 438c5c3ea863b5a1b63d3280e8667e14ee3cc7d2 Mon Sep 17 00:00:00 2001 From: John MacFarlane Date: Sat, 28 Jan 2012 16:12:10 -0800 Subject: Use dcterms.date for html5 metadata. --- default.dzslides | 2 +- default.html5 | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'default.html5') diff --git a/default.dzslides b/default.dzslides index f076f02ac..33e1ee098 100644 --- a/default.dzslides +++ b/default.dzslides @@ -5,7 +5,7 @@ $for(author-meta)$ $endfor$ $if(date-meta)$ - + $endif$ $if(title-prefix)$$title-prefix$ - $endif$$if(pagetitle)$$pagetitle$$endif$ $if(highlighting-css)$ diff --git a/default.html5 b/default.html5 index ac70bc56d..e39502c28 100644 --- a/default.html5 +++ b/default.html5 @@ -7,7 +7,7 @@ $for(author-meta)$ $endfor$ $if(date-meta)$ - + $endif$ $if(title-prefix)$$title-prefix$ - $endif$$if(pagetitle)$$pagetitle$$endif$ $if(highlighting-css)$ + $endif$ $for(css)$ -- cgit v1.2.3 From cc0e845c187fb98ebd2343750cfbacd1ab39fc57 Mon Sep 17 00:00:00 2001 From: John MacFarlane Date: Sat, 3 Mar 2012 08:26:41 -0800 Subject: Default q:quote style for HTML5 template. --- default.html5 | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'default.html5') diff --git a/default.html5 b/default.html5 index 47a3fc934..800f8a626 100644 --- a/default.html5 +++ b/default.html5 @@ -13,6 +13,11 @@ $endif$ +$if(quotes)$ + +$endif$ $if(highlighting-css)$ $if(highlighting-css)$ $if(highlighting-css)$ diff --git a/default.s5 b/default.s5 index 3f2977846..532c164cf 100644 --- a/default.s5 +++ b/default.s5 @@ -11,6 +11,7 @@ $if(date-meta)$ $endif$ $if(title-prefix)$$title-prefix$ - $endif$$pagetitle$ + diff --git a/default.slideous b/default.slideous index 43f12ae9d..db16a9693 100644 --- a/default.slideous +++ b/default.slideous @@ -13,6 +13,7 @@ $if(date-meta)$ $endif$ $if(title-prefix)$$title-prefix$ - $endif$$pagetitle$ + $if(highlighting-css)$ $if(highlighting-css)$ + $endif$ $if(highlighting-css)$ $if(quotes)$ -- cgit v1.2.3 From a108c1ea175f3a17cdb97ef1a22088020c6125b4 Mon Sep 17 00:00:00 2001 From: Andrew Dunning Date: Tue, 13 Oct 2015 22:30:55 -0400 Subject: Move HTML5 Shiv after CSS. Per usage notes at . --- default.html5 | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'default.html5') diff --git a/default.html5 b/default.html5 index b0e4d6cde..7c8c85235 100644 --- a/default.html5 +++ b/default.html5 @@ -12,9 +12,6 @@ $if(date-meta)$ $endif$ $if(title-prefix)$$title-prefix$ - $endif$$pagetitle$ - $if(quotes)$ $endif$ @@ -29,6 +26,9 @@ $endfor$ $if(math)$ $math$ $endif$ + $for(header-includes)$ $header-includes$ $endfor$ -- cgit v1.2.3 From 4ee7a20dfc02fa57a773b46eb2ba125c81d7a830 Mon Sep 17 00:00:00 2001 From: Andrew Dunning Date: Fri, 16 Oct 2015 08:48:24 -0400 Subject: Use en dash to separate title-prefix. --- default.dzslides | 2 +- default.html | 2 +- default.html5 | 2 +- default.icml | 2 +- default.s5 | 2 +- default.slideous | 2 +- default.slidy | 2 +- 7 files changed, 7 insertions(+), 7 deletions(-) (limited to 'default.html5') diff --git a/default.dzslides b/default.dzslides index c68492141..45f509a35 100644 --- a/default.dzslides +++ b/default.dzslides @@ -7,7 +7,7 @@ $endfor$ $if(date-meta)$ $endif$ - $if(title-prefix)$$title-prefix$ - $endif$$pagetitle$ + $if(title-prefix)$$title-prefix$ – $endif$$pagetitle$ $if(highlighting-css)$ $if(quotes)$ diff --git a/default.html5 b/default.html5 index 14bff6286..45c6885a1 100644 --- a/default.html5 +++ b/default.html5 @@ -10,7 +10,7 @@ $endfor$ $if(date-meta)$ $endif$ - $if(title-prefix)$$title-prefix$ - $endif$$pagetitle$ + $if(title-prefix)$$title-prefix$ – $endif$$pagetitle$ diff --git a/default.slideous b/default.slideous index c051508bf..275e54f30 100644 --- a/default.slideous +++ b/default.slideous @@ -12,7 +12,7 @@ $endfor$ $if(date-meta)$ $endif$ - $if(title-prefix)$$title-prefix$ - $endif$$pagetitle$ + $if(title-prefix)$$title-prefix$ – $endif$$pagetitle$ $if(highlighting-css)$ $if(highlighting-css)$ diff --git a/default.html5 b/default.html5 index 921e0c31d..6b1fdb38b 100644 --- a/default.html5 +++ b/default.html5 @@ -9,6 +9,9 @@ $for(author-meta)$ $endfor$ $if(date-meta)$ +$endif$ +$if(keywords)$ + $endif$ $if(title-prefix)$$title-prefix$ – $endif$$pagetitle$ diff --git a/default.revealjs b/default.revealjs index f2439b984..6b1f4d2f7 100644 --- a/default.revealjs +++ b/default.revealjs @@ -8,6 +8,9 @@ $for(author-meta)$ $endfor$ $if(date-meta)$ +$endif$ +$if(keywords)$ + $endif$ $if(title-prefix)$$title-prefix$ – $endif$$pagetitle$ diff --git a/default.s5 b/default.s5 index 8b59e1f50..f06be9fea 100644 --- a/default.s5 +++ b/default.s5 @@ -9,6 +9,9 @@ $for(author-meta)$ $endfor$ $if(date-meta)$ +$endif$ +$if(keywords)$ + $endif$ $if(title-prefix)$$title-prefix$ – $endif$$pagetitle$ diff --git a/default.slideous b/default.slideous index 275e54f30..57647186e 100644 --- a/default.slideous +++ b/default.slideous @@ -11,6 +11,9 @@ $for(author-meta)$ $endfor$ $if(date-meta)$ +$endif$ +$if(keywords)$ + $endif$ $if(title-prefix)$$title-prefix$ – $endif$$pagetitle$ diff --git a/default.slidy b/default.slidy index 5887540b1..1d66b210f 100644 --- a/default.slidy +++ b/default.slidy @@ -11,6 +11,9 @@ $for(author-meta)$ $endfor$ $if(date-meta)$ +$endif$ +$if(keywords)$ + $endif$ $if(title-prefix)$$title-prefix$ – $endif$$pagetitle$ -- cgit v1.2.3 From 859acea0b5726f9b1b57856fd2e023e2180130be Mon Sep 17 00:00:00 2001 From: Albert Krewinkel Date: Fri, 23 Sep 2016 21:41:55 +0200 Subject: Put only one heading element in top-level header Every heading element semantically creates a new section. Three consecutive heading elements, e.g. `

`, `

`, `

`, are semantically equivallent to a section with two nested subsections. This is not the intended meaning of subtitle, author, and date, making plain `

` elements the better choice. This is one of the W3C's [common idioms]. This change is the result of discussions on issue jgm/pandoc#3119. [common idioms]: https://www.w3.org/TR/html5/common-idioms.html#common-idioms Fixes: jgm/pandoc#3119 --- default.html5 | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'default.html5') diff --git a/default.html5 b/default.html5 index 6b1fdb38b..5641ecb80 100644 --- a/default.html5 +++ b/default.html5 @@ -44,13 +44,13 @@ $if(title)$

$title$

$if(subtitle)$ -

$subtitle$

+

$subtitle$

$endif$ $for(author)$ -

$author$

+

$author$

$endfor$ $if(date)$ -

$date$

+

$date$

$endif$
$endif$ -- cgit v1.2.3