From bb362fd76c94cb5228b06632c47993ee48cecac4 Mon Sep 17 00:00:00 2001 From: John MacFarlane Date: Wed, 4 Sep 2019 17:33:59 -0700 Subject: Add partial styles.html in HTML5 template. Avoid duplication in HTML templates by using styles.html partial. Change indentation of styles in template. --- data/templates/default.dzslides | 13 +------------ data/templates/default.html4 | 13 +------------ data/templates/default.html5 | 13 +------------ data/templates/default.revealjs | 13 +------------ data/templates/default.s5 | 13 +------------ data/templates/default.slideous | 13 +------------ data/templates/default.slidy | 13 +------------ data/templates/styles.html | 11 +++++++++++ 8 files changed, 18 insertions(+), 84 deletions(-) create mode 100644 data/templates/styles.html (limited to 'data') diff --git a/data/templates/default.dzslides b/data/templates/default.dzslides index 96862a2fd..11103ab81 100644 --- a/data/templates/default.dzslides +++ b/data/templates/default.dzslides @@ -13,19 +13,8 @@ $if(keywords)$ $endif$ $if(title-prefix)$$title-prefix$ – $endif$$pagetitle$ -$if(highlighting-css)$ - -$endif$ $if(css)$ $for(css)$ diff --git a/data/templates/default.html4 b/data/templates/default.html4 index 714b3ff2e..5f9b43e47 100644 --- a/data/templates/default.html4 +++ b/data/templates/default.html4 @@ -15,19 +15,8 @@ $if(keywords)$ $endif$ $if(title-prefix)$$title-prefix$ – $endif$$pagetitle$ -$if(highlighting-css)$ - -$endif$ $for(css)$ $endfor$ diff --git a/data/templates/default.html5 b/data/templates/default.html5 index 9816fcf9f..eff6e73ab 100644 --- a/data/templates/default.html5 +++ b/data/templates/default.html5 @@ -15,19 +15,8 @@ $if(keywords)$ $endif$ $if(title-prefix)$$title-prefix$ – $endif$$pagetitle$ -$if(highlighting-css)$ - -$endif$ $for(css)$ $endfor$ diff --git a/data/templates/default.revealjs b/data/templates/default.revealjs index 8e461502d..f63fc144e 100644 --- a/data/templates/default.revealjs +++ b/data/templates/default.revealjs @@ -19,19 +19,8 @@ $endif$ -$if(highlighting-css)$ - -$endif$ $if(theme)$ $else$ diff --git a/data/templates/default.s5 b/data/templates/default.s5 index e9c36b4d4..d76111284 100644 --- a/data/templates/default.s5 +++ b/data/templates/default.s5 @@ -16,22 +16,11 @@ $if(keywords)$ $endif$ $if(title-prefix)$$title-prefix$ – $endif$$pagetitle$ -$if(highlighting-css)$ - -$endif$ $for(css)$ $endfor$ diff --git a/data/templates/default.slideous b/data/templates/default.slideous index ad58272ae..ebf582dca 100644 --- a/data/templates/default.slideous +++ b/data/templates/default.slideous @@ -17,19 +17,8 @@ $if(keywords)$ $endif$ $if(title-prefix)$$title-prefix$ – $endif$$pagetitle$ -$if(highlighting-css)$ - -$endif$ $for(css)$ diff --git a/data/templates/default.slidy b/data/templates/default.slidy index 98b8d669d..6b9776858 100644 --- a/data/templates/default.slidy +++ b/data/templates/default.slidy @@ -17,19 +17,8 @@ $if(keywords)$ $endif$ $if(title-prefix)$$title-prefix$ – $endif$$pagetitle$ -$if(highlighting-css)$ - -$endif$ $for(css)$ diff --git a/data/templates/styles.html b/data/templates/styles.html new file mode 100644 index 000000000..866896549 --- /dev/null +++ b/data/templates/styles.html @@ -0,0 +1,11 @@ +code{white-space: pre-wrap;} +span.smallcaps{font-variant: small-caps;} +span.underline{text-decoration: underline;} +div.column{display: inline-block; vertical-align: top; width: 50%;} +$if(quotes)$ +q { quotes: "“" "”" "‘" "’"; } +$endif$ +$if(highlighting-css)$ +$highlighting-css$ +$endif$ + -- cgit v1.2.3