admin ui featured blogs
This commit is contained in:
15
axum_server/templates/admin.html
Normal file
15
axum_server/templates/admin.html
Normal 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>
|
15
axum_server/templates/components/post_preview.html
Normal file
15
axum_server/templates/components/post_preview.html
Normal 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>
|
||||
|
@ -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>
|
||||
|
||||
|
Reference in New Issue
Block a user