2022-11-03 21:46:36 +01:00
<section role="index-header">
2023-03-23 21:55:34 +01:00
<div role="index-header-left">
2022-11-03 21:46:36 +01:00
<h1>Recent</h1>
2022-05-11 03:05:41 +02:00
</div>
2023-04-05 23:40:14 +02:00
<div role="index-header-right"></div>
2022-11-03 21:46:36 +01:00
</section>
<section role="index-recent-pages">
{% if data [ "entryCount" ] != 0 %}
{% for page in data [ 'pages' ] %}
{% if page .media [ 0 ] .type == 'mp4' %}
<a href="/dashboard/page/edit/ {{ page .uuid }} " id=" {{ page .uuid }} " class="post-video-link recent-link">
2023-03-24 22:57:01 +01:00
{{ include ( "dash/partials/recent-meta.twig" ) }}
2022-11-03 21:46:36 +01:00
<video class="post-video" loop muted autoplay>
<source src=" {{ page .media [ 0 ] .file }} " type="video/mp4">
Sorry, your browser doesn't support embedded videos.
</video>
</a>
{% else %}
<a href="/dashboard/page/edit/ {{ page .uuid }} " id=" {{ page .uuid }} " class="post-link recent-link" style="background: url( {{ page .media [ 0 ] .file }} ) no-repeat center center / cover">
{{ include ( "dash/partials/recent-meta.twig" ) }}
</a>
{% endif %}
{% endfor %}
{% else %}
There are no pages
{% endif %}
</section>