Generating Cover Pages according to the new template
parent
9cad5c6651
commit
bd09db83b3
|
@ -39,7 +39,7 @@ class CoverPages (object):
|
||||||
<html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en" xml:base="http://www.gutenberg.org">
|
<html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en" xml:base="http://www.gutenberg.org">
|
||||||
<head>
|
<head>
|
||||||
<title>Cover Flow</title>
|
<title>Cover Flow</title>
|
||||||
<style>
|
<!--<style>
|
||||||
.cover-thumb {
|
.cover-thumb {
|
||||||
display: inline-block;
|
display: inline-block;
|
||||||
background-position: center;
|
background-position: center;
|
||||||
|
@ -53,7 +53,7 @@ class CoverPages (object):
|
||||||
width: 210px;
|
width: 210px;
|
||||||
height: 310px;
|
height: 310px;
|
||||||
}
|
}
|
||||||
</style>
|
</style>-->
|
||||||
</head>
|
</head>
|
||||||
<body><div>"""
|
<body><div>"""
|
||||||
|
|
||||||
|
@ -65,8 +65,8 @@ class CoverPages (object):
|
||||||
|
|
||||||
s += """<a href="{href}"
|
s += """<a href="{href}"
|
||||||
title="{title}"
|
title="{title}"
|
||||||
class="cover-thumb cover-thumb-{size}" target="_top"
|
target="_top"
|
||||||
style="background-image: url({url})"> </a>\n""".format (
|
><div class="cover-container"><img src="{url}" alt="{title}" title="{title}" draggable="false"><h3>{title}</h3></a>\n""".format (
|
||||||
url = url, href = href, title = title, size = size)
|
url = url, href = href, title = title, size = size)
|
||||||
|
|
||||||
return (s + '</div></body></html>\n').encode ('utf-8')
|
return (s + '</div></body></html>\n').encode ('utf-8')
|
||||||
|
|
Loading…
Reference in New Issue