diff --git a/src/lib/bookoptions.rs b/src/lib/bookoptions.rs index 59b2ff5..a9279ba 100644 --- a/src/lib/bookoptions.rs +++ b/src/lib/bookoptions.rs @@ -41,16 +41,16 @@ rendering.highlight:str:syntect # {renderin rendering.highlight.theme:str:InspiredGitHub # {rendering_highlight_theme} rendering.initials:bool:false # {rendering_initials} rendering.inline_toc:bool:false # {inline_toc} -rendering.inline_toc.name:str:\"{{{{{{loc_toc}}}}}}\" # {toc_name} +rendering.inline_toc.name:str:\"{{{{loc_toc}}}}\" # {toc_name} rendering.num_depth:int:1 # {num_depth} rendering.chapter:str # {chapter} rendering.part:str # {part} rendering.chapter.roman_numerals:bool:false # {roman_numerals_chapters} rendering.part.roman_numerals:bool:true # {roman_numerals_parts} rendering.part.reset_counter:bool:true # {reset_counter} -rendering.chapter.template:str:\"{{{{{{number}}}}}}. {{{{{{chapter_title}}}}}}\" # {chapter_template} +rendering.chapter.template:str:\"{{{{number}}}}. {{{{chapter_title}}}}\" # {chapter_template} -rendering.part.template:str:\"{{{{{{number}}}}}}. {{{{{{part_title}}}}}}\" # {part_template} +rendering.part.template:str:\"{{{{number}}}}. {{{{part_title}}}}\" # {part_template} @@ -72,8 +72,8 @@ html.highlight.js:tpl # {highlight_js} html.highlight.css:tpl # {highlight_css} html.side_notes:bool:false # {side_notes} html.escape_nb_spaces:bool:true # {nb_spaces} -html.chapter.template:str:\"

{{{{#has_number}}}}{{{{{{header}}}}}} {{{{{{number}}}}}}{{{{#has_title}}}}
{{{{/has_title}}}}{{{{/has_number}}}}{{{{{{title}}}}}}

\" # {html_chapter_template} -html.part.template:str:\"

{{{{{{header}}}}}} {{{{{{number}}}}}}

{{{{{{title}}}}}}

\" # {html_part_template} +html.chapter.template:str:\"

{{% if has_number %}}{{{{header}}}} {{{{number}}}}{{% if has_title %}}
{{% endif %}}{{% endif %}}{{{{title}}}}

\" # {html_chapter_template} +html.part.template:str:\"

{{{{header}}}} {{{{number}}}}

{{{{title}}}}

\" # {html_part_template} # {html_single_opt} html.standalone.template:tpl # {single_html} diff --git a/templates/html/template.css b/templates/html/template.css index 22bfe69..43a1ec5 100644 --- a/templates/html/template.css +++ b/templates/html/template.css @@ -1,6 +1,6 @@ /* Default HTML CSS file includes default EPUB CSS file */ -{{{colors}}} +{{colors}} p.first-para:first-letter { font-size: 300%; @@ -199,4 +199,4 @@ footer p, #top p { max-width: 33em; } -{{{additional_code}}} +{{additional_code}} diff --git a/templates/html_dir/template.html b/templates/html_dir/template.html index f88a97e..a3a6f55 100644 --- a/templates/html_dir/template.html +++ b/templates/html_dir/template.html @@ -1,11 +1,11 @@ - + - + - {{{favicon}}} + {{favicon}} {{title_raw}} - {{chapter_title_raw}} @@ -20,32 +20,32 @@ {{/highlight_code}} - {{{json_data}}} + {{json_data}}
- {{{header}}} + {{header}}
- {{{prev_chapter}}} - {{{content}}} - {{{next_chapter}}} + {{prev_chapter}} + {{content}} + {{next_chapter}}
- {{{footer}}} + {{footer}}
diff --git a/templates/html_single/template.html b/templates/html_single/template.html index 32eddef..da12f83 100644 --- a/templates/html_single/template.html +++ b/templates/html_single/template.html @@ -1,80 +1,80 @@ - + - - {{{favicon}}} + + {{favicon}} {{title_raw}} {{#highlight_code}} - + {{/highlight_code}} - {{{json_data}}} + {{json_data}} {{#has_toc}} {{/has_toc}}
- {{{header}}} + {{header}}
-

{{{author}}}

-

{{{title}}}

- {{#has_subtitle}}

{{{subtitle}}}

{{/has_subtitle}} +

{{author}}

+

{{title}}

+ {{#has_subtitle}}

{{subtitle}}

{{/has_subtitle}} {{#has_autograph}}
- {{{autograph}}} + {{autograph}}
{{/has_autograph}}
- {{{content}}} + {{content}}
- {{{footer}}} + {{footer}}