1
0
Fork 0
mirror of https://github.com/lise-henry/crowbook synced 2024-05-23 21:36:15 +02:00
crowbook/templates/html_single/template.html
2023-08-09 20:13:21 +02:00

81 lines
1.8 KiB
HTML

<!DOCTYPE html>
<html lang="{{lang}}">
<head>
<meta charset="utf-8">
<meta name="generator" content="crowbook">
<meta name="viewport" content="width=device-width">
<meta name="author" content="{{author_raw}}">
{{favicon}}
<title>{{title_raw}}</title>
<style type = "text/css">
{{style}}
</style>
<style type = "text/css" media = "print">
{{print_style}}
</style>
{% if highlight_code %}
<style>
{{highlight_css}}
</style>
<script src = "{{highlight_js}}"></script>
<script>
hljs.initHighlightingOnLoad();
</script>
{% endif %}}
<script>
{{script}}
</script>
</head>
<body>
{{json_data}}
{% if has_toc %}
<nav id = "nav">
{% if one_chapter %}
<div id = "nav-container">
<div id="toolbar">
<img id="book-button" alt="Display mode"
title = "{{loc_display_all}}"
src="{{book_svg}}"
onclick="javascript:switchAll()">
</div>
</div>
{% endif %}
<div id = "nav-title">
<h2><a href = "#link-0">{{title}}</a></h2>
</div>
{{toc}}
</nav>
{% endif %}
<div id = "content">
{{header}}
<div id = "page">
<header>
<div id = "menu">
{% if has_toc %}
<img id = "menu-button" onclick="toggle();"
src="{{menu_svg}}"
alt = "{{loc_toc}}" title = "{{loc_toc}}" />
{% endif %}
</div>
<h2 class="author">{{author}}</h2>
<h1 id = "link-0" class="title" >{{title}}</h1>
{% if has_subtitle %}<h2 class = "subtitle">{{subtitle}}</h2>{% endif %}
{% if has_autograph %}
<div id = "autograph">
{{autograph}}
</div>
{% endif %}
</header>
{{content}}
</div>
{{footer}}
</div>
</body>
</html>