_includes/head.html in electric-book-classic-theme-0.1.1 vs _includes/head.html in electric-book-classic-theme-0.1.2

- old
+ new

@@ -21,10 +21,12 @@ <meta name="DC.Date" content="{{ date }}" /> <meta name="DC.Identifier" content="{{ epub-identifier }}" scheme="ISBN" /> <meta name="DC.Relation" content="{{ print-pdf-identifier }}" /> <meta name="DC.Description" CONTENT="{{ description }}" /> + {% include head-elements %} + </head> <body class="{{ directory }} {{ page.style }}"> {% elsif site.output == 'screen-pdf' %} <!doctype html> @@ -38,14 +40,16 @@ {% endif %} </title> <meta http-equiv="content-type" content="text/html; charset=UTF-8" /> <meta name="viewport" content="width=device-width, initial-scale=1"> <link rel="stylesheet" type="text/css" media="print" href="../styles/{{ page.stylesheet-screen-pdf }}" /> + + {% include head-elements %} + </head> <body class="{{ directory }} {{ page.style }}"> - {% elsif site.output == 'print-pdf' %} <!doctype html> <html xmlns="http://www.w3.org/1999/xhtml" lang="{{ language }}" xml:lang="{{ language }}"> <head> <title> @@ -57,16 +61,11 @@ </title> <meta http-equiv="content-type" content="text/html; charset=UTF-8" /> <meta name="viewport" content="width=device-width, initial-scale=1"> <link rel="stylesheet" type="text/css" media="print" href="../styles/{{ page.stylesheet-print-pdf }}" /> - <!-- Google Analytics, runs unless this is running through PrinceXML --> - <script> - if (typeof Prince === "undefined") { - <!--Paste any Google Analytics code here. The surrounding if statement stops the script slowing down PrinceXML--> - } - </script> + {% include head-elements %} </head> <!--ontouchstart="" onmouseover="" required for iOS devices--> <body class="{{ directory }} {{ page.style }}" ontouchstart="" onmouseover=""> @@ -93,15 +92,10 @@ {% else %} <link rel="stylesheet" type="text/css" media="screen" href="../styles/{{ page.stylesheet-web }}" /> <link rel="stylesheet" type="text/css" media="print" href="../styles/{{ page.stylesheet-screen-pdf }}" /> {% endif %} - <!-- Google Analytics, runs unless this is running through PrinceXML --> - <script> - if (typeof Prince === "undefined") { - <!--Paste any Google Analytics code here. The surrounding if statement stops the script slowing down PrinceXML--> - } - </script> + {% include head-elements %} </head> <!--ontouchstart="" onmouseover="" required for iOS devices--> <body class="{{ directory }} {{ page.style }}" ontouchstart="" onmouseover="">