fix some stuff
This commit is contained in:
parent
676830b239
commit
5eae7d671f
@ -99,7 +99,7 @@ class Video(object):
|
|||||||
return ""
|
return ""
|
||||||
|
|
||||||
def generate_thumbnail(self, gm_geometry):
|
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)
|
source, target = self.base_dir.joinpath(self.name), self.target_dir.joinpath(thumbnail_name)
|
||||||
|
|
||||||
|
|||||||
@ -10,6 +10,7 @@
|
|||||||
|
|
||||||
<!--Let browser know website is optimized for mobile-->
|
<!--Let browser know website is optimized for mobile-->
|
||||||
<meta name="viewport" content="width=device-width, initial-scale=1.0"/>
|
<meta name="viewport" content="width=device-width, initial-scale=1.0"/>
|
||||||
|
<meta name="description" content="{{ gallery.description }}" />
|
||||||
<title>{{ gallery.title }} · {{ settings.title }}</title>
|
<title>{{ gallery.title }} · {{ settings.title }}</title>
|
||||||
</head>
|
</head>
|
||||||
|
|
||||||
|
|||||||
@ -1,7 +1,7 @@
|
|||||||
{% set image = Image(section.image) %}
|
{% set image = Image(section.image) %}
|
||||||
{{ image.copy() }}
|
{{ image.copy() }}
|
||||||
<div class="author-meta">
|
<div class="author-meta">
|
||||||
<img src={{ image.generate_thumbnail("200x200") }} alt="" class="circle">
|
<img src={{ image.generate_thumbnail("80x80") }} alt="" class="circle">
|
||||||
<div>
|
<div>
|
||||||
<span class=author-info>Story by
|
<span class=author-info>Story by
|
||||||
<h4>{{ section.name }}</h4>
|
<h4>{{ section.name }}</h4>
|
||||||
|
|||||||
@ -32,7 +32,7 @@
|
|||||||
{% set image = Image(section.image) %}
|
{% set image = Image(section.image) %}
|
||||||
{{ image.copy() }}
|
{{ 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 %}
|
{% if section.text %}
|
||||||
<div class="picture-text">
|
<div class="picture-text">
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user