1
0
mirror of https://github.com/typemill/typemill.git synced 2025-07-31 11:20:15 +02:00

Sort media lib by timestamp again

This commit is contained in:
trendschau
2024-06-26 21:29:20 +02:00
parent 198e582bd3
commit 2ba51b0eaf
2 changed files with 7 additions and 4 deletions

View File

@@ -665,10 +665,13 @@ class Storage
{
$imagelist[] = [
'name' => $name,
'timestamp' => filemtime($this->thumbsFolder . $name),
'src_thumb' => 'media/thumbs/' . $name,
'src_live' => 'media/live/' . $name,
];
}
$imagelist = Helpers::array_sort($imagelist, 'timestamp', SORT_DESC);
return $imagelist;
}

View File

@@ -1,10 +1,10 @@
<main class="w-100 dib bt bl br bb">
<main class="landingpagetemplate w-100 dib bt bl br bb f4-l f5">
<header class="mw8 center tc pt4 flex-l justify-between">
<div class="logo tl-l">
<p class="pv2 ma0">
<a class="link f3 fw4" href="{{ base_url }}" title="My Title">
<a class="link f4 fw4" href="{{ base_url }}" title="My Title">
{% if logo %}
<img src="{{ base_url }}/{{ logo }}" class="logo-image"/>
{% else %}
@@ -32,10 +32,10 @@
</header>
<div class="mw8 pb3 pt6 ph3 center">
<div class="mw8 pb3 pt3 pt6-l ph3 center">
<header>
<h1 class="f-large lh-title mv2">{{ title }}</h1>
<h1 class="f2 f-large-l lh-title-l mv2">{{ title }}</h1>
</header>
<div class="f5 f4-ns fw3 lh-copy">