fix some stuff

This commit is contained in:
Adrien Beudin 2016-11-02 10:07:05 +01:00
parent 676830b239
commit 5eae7d671f
4 changed files with 4 additions and 3 deletions

View File

@ -99,7 +99,7 @@ class Video(object):
return ""
def generate_thumbnail(self, gm_geometry):
thumbnail_name = ".".join(self.name.split(".")[:-1]) + "-%s.png" % gm_geometry
thumbnail_name = ".".join(self.name.split(".")[:-1]) + "-%s.jpg" % gm_geometry
source, target = self.base_dir.joinpath(self.name), self.target_dir.joinpath(thumbnail_name)

View File

@ -10,6 +10,7 @@
<!--Let browser know website is optimized for mobile-->
<meta name="viewport" content="width=device-width, initial-scale=1.0"/>
<meta name="description" content="{{ gallery.description }}" />
<title>{{ gallery.title }} · {{ settings.title }}</title>
</head>

View File

@ -1,7 +1,7 @@
{% set image = Image(section.image) %}
{{ image.copy() }}
<div class="author-meta">
<img src={{ image.generate_thumbnail("200x200") }} alt="" class="circle">
<img src={{ image.generate_thumbnail("80x80") }} alt="" class="circle">
<div>
<span class=author-info>Story by
<h4>{{ section.name }}</h4>

View File

@ -32,7 +32,7 @@
{% set image = Image(section.image) %}
{{ image.copy() }}
<section class="full-picture" style="background: url('{{ image }}') no-repeat fixed center top / cover, url('{{ image.generate_thumbnail("x450") }}') no-repeat fixed center top / cover transparent;">
<section class="full-picture" style="background: url('{{ image.generate_thumbnail("x2000") }}') no-repeat fixed center top / cover, url('{{ image.generate_thumbnail("x450") }}') no-repeat fixed center top / cover transparent;">
{% if section.text %}
<div class="picture-text">