Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

EPUB templates: UTF-8, lang variable, meta tags.

  • Loading branch information...
commit 4c1f840c392010309cdb4cc1b8db4f4b24ff6424 1 parent ba97adf
John MacFarlane authored
Showing with 9 additions and 4 deletions.
  1. +5 −2 default.epub
  2. +4 −2 default.epub3
7 default.epub
View
@@ -1,8 +1,11 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
-<html xmlns="http://www.w3.org/1999/xhtml" xmlns:epub="http://www.idpf.org/2007/ops">
+<html xmlns="http://www.w3.org/1999/xhtml"$if(lang)$ xml:lang="$lang$"$endif$>
<head>
-<title>$pagetitle$</title>
+ <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
+ <meta http-equiv="Content-Style-Type" content="text/css" />
+ <meta name="generator" content="pandoc" />
+ <title>$pagetitle$</title>
$if(highlighting-css)$
<style type="text/css">
$highlighting-css$
6 default.epub3
View
@@ -1,8 +1,10 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html>
-<html xmlns="http://www.w3.org/1999/xhtml" xmlns:epub="http://www.idpf.org/2007/ops">
+<html xmlns="http://www.w3.org/1999/xhtml" xmlns:epub="http://www.idpf.org/2007/ops"$if(lang)$ xml:lang="$lang$"$endif$>
<head>
-<title>$pagetitle$</title>
+ <meta charset="utf-8" />
+ <meta name="generator" content="pandoc" />
+ <title>$pagetitle$</title>
$if(quotes)$
<style type="text/css">
q { quotes: "“" "”" "‘" "’"; }
Please sign in to comment.
Something went wrong with that request. Please try again.