admin ui featured blogs

This commit is contained in:
2024-05-09 23:26:06 +02:00
parent 8f5069e207
commit 1e75744b7b
19 changed files with 266 additions and 17 deletions

View File

@ -0,0 +1,15 @@
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<meta name="robots" content="noindex" />
<link rel="icon" type="image/svg+xml" href="/m-logo.svg" />
<link rel="icon" type="image/png" href="/m-logo-192.png" />
<title>Content Manager</title>
</head>
<body>
<!-- Include the script that builds the page and powers Decap CMS -->
<script src="https://unpkg.com/decap-cms@^3.0.0/dist/decap-cms.js"></script>
</body>
</html>

View File

@ -0,0 +1,15 @@
<article class="grid grid-rows-3 grid-flow-col gap-4">
<aside class="row-span-3">
<svg aria-hidden="true" class="h-12 w-12 fill-blue-950">
<use xlink:href="/svg/icons-sprite.svg#mail" />
</svg>
</aside>
<header>
<h3 class="text-lg font-medium mb-1">{{post.metadata.title}}</h3>
</header>
<section class="text-sm leading-5 text-gray-800">{{post.body|description_filter|safe}}</section>
<footer>
Footrik
</footer>
</article>

View File

@ -51,7 +51,11 @@
<hr class="border-blue-950 m-5">
<ul class="mx-5">
{% for post in featured_posts %}
<li>
{% include "components/post_preview.html" %}
</li>
{% endfor %}
</ul>
</section>