1
0
mirror of https://github.com/typemill/typemill.git synced 2025-08-05 05:37:45 +02:00

Version 1.4.7: Fix image error for post lists and improve design

This commit is contained in:
trendschau
2021-07-01 13:01:19 +02:00
parent 64d45c67c1
commit a8537f6426
4 changed files with 31 additions and 15 deletions

View File

@@ -16,7 +16,7 @@ class Assets
$this->inlineJS = array();
$this->inlineCSS = array();
$this->editorJS = array();
$this->editorCSS = array();
$this->editorCSS = array();
$this->editorInlineJS = array();
$this->svgSymbols = array();
$this->imageUrl = false;
@@ -136,7 +136,12 @@ class Assets
public function src()
{
return $this->baseUrl . '/' . $this->imageUrl;
# when we finish it, we shoud reset all settings
$imagePath = $this->baseUrl . '/' . $this->imageUrl;
$this->imageUrl = false;
$this->imageFolder = 'original';
return $imagePath;
}
public function addCSS($CSS)

View File

@@ -516,6 +516,7 @@ span.level-2{ padding-left: 40px; }
span.level-3{ padding-left: 50px; }
span.level-4{ padding-left: 60px; }
span.level-5{ padding-left: 70px; }
span.level-6{ padding-left: 80px; }
.addBaseItem{
margin-left: -10px;

View File

@@ -155,7 +155,7 @@
background: {{ settings.themes.cyanine.contentnavihoverbackground|default('lightseagreen') }};
color: {{ settings.themes.cyanine.contentnavihovercolor|default('white') }};
}
.landingpagenews li{
.landingpagenews li, .newsbox{
background: {{ settings.themes.cyanine.newsbackground|default('white') }};
}
.landingpagenews li a{

View File

@@ -10,18 +10,28 @@
{% set post = getPageMeta(settings, element) %}
{% set date = element.order[0:4] ~ '-' ~ element.order[4:2] ~ '-' ~ element.order[6:2] %}
<li class="post-entry">
<header>
{% if settings.themes.cyanine.blogimage and post.meta.heroimage != '' %}
<figure>
<img src="{{ assets.image(post.meta.heroimage).resize(820,500).src() }}"{% if post.meta.heroimage != '' %} alt="{{ post.meta.heroimage }}"{% endif %} />
</figure>
{% endif %}
<a class="link f-link underline-hover" href="{{ element.urlAbs }}"><h2 class="mt4 mb2">{{ post.meta.title }}</h2></a>
<div class="mt3"><small><time datetime="{{date}}">{{ date | date("d.m.Y") }}</time> | {{ post.meta.author }}</small></div>
</header>
<p>{{ post.meta.description }}</p>
</li>
{% if settings.themes.cyanine.blogimage and post.meta.heroimage != '' %}
<li class="post-entry newsbox dib list pa0 w-100 mh0 mv4">
<figure class="ma0">
<img src="{{ assets.image(post.meta.heroimage).resize(820,500).src() }}"{% if post.meta.heroimagealt and post.meta.heroimagealt != '' %} alt="{{ post.meta.heroimagealt }}"{% endif %} />
</figure>
<div class="pa2 ph4-ns pb4-ns">
<header>
<a class="link f-link underline-hover" href="{{ element.urlAbs }}"><h2 class="mt4 mb2">{{ post.meta.title }}</h2></a>
<div class="mt3"><small><time datetime="{{date}}">{{ date | date("d.m.Y") }}</time> | {{ post.meta.author }}</small></div>
</header>
<p>{{ post.meta.description }}</p>
</div>
</li>
{% else %}
<li class="post-entry">
<header>
<a class="link f-link underline-hover" href="{{ element.urlAbs }}"><h2 class="mt4 mb2">{{ post.meta.title }}</h2></a>
<div class="mt3"><small><time datetime="{{date}}">{{ date | date("d.m.Y") }}</time> | {{ post.meta.author }}</small></div>
</header>
<p>{{ post.meta.description }}</p>
</li>
{% endif %}
{% endfor %}