Tailwind for post_list
This commit is contained in:
@ -33,7 +33,7 @@
|
||||
<link rel="icon" type="image/svg+xml" href="/m-logo.svg" />
|
||||
<link rel="icon" type="image/png" href="/m-logo-192.png" />
|
||||
</head>
|
||||
<body>
|
||||
<body class="bg-blue-50">
|
||||
{% include "site_header.html" %}
|
||||
{% block content %} Placeholder {% endblock %}
|
||||
{# footer, should be not dependant on the each individual handler but it should have it's own handler #}
|
||||
|
@ -11,7 +11,7 @@
|
||||
|
||||
<ul>
|
||||
{% for post in posts %}
|
||||
<li>
|
||||
<li class="my-12">
|
||||
{% include "post_preview_card.html" %} {#
|
||||
<ArticlePreviewCard {article} {segment} /> #} {#
|
||||
<ArticleFooter {article} {segment} /> #}
|
||||
|
@ -1,27 +1,29 @@
|
||||
<article>
|
||||
<header>
|
||||
<h2>
|
||||
<header class="px-4 mb-3">
|
||||
<h2 class="text-2xl">
|
||||
<a rel="prefetch" href="/blog/{{post.slug}}">{{post.metadata.title}}</a>
|
||||
</h2>
|
||||
<section class="created-at m-1 text-right text-sm text-gray-600">
|
||||
<span>Published on</span>
|
||||
<time datetime="{post.metadata.date}"> {{post.metadata.date}} </time>
|
||||
</section>
|
||||
</header>
|
||||
{# article preview, maybe implement as a filter? #}
|
||||
</article>
|
||||
|
||||
<footer>
|
||||
<div class="article-tags">
|
||||
{% if post.metadata.tags.len() > 0 %}
|
||||
<span class="lighten">Tags:</span>
|
||||
<ul>
|
||||
{% for tag in post.metadata.tags %}
|
||||
<li class="{tagsListLiClass}">
|
||||
<a href="/blog/tags/{{tag}}">{{tag}}</a>
|
||||
</li>
|
||||
{% endfor %}
|
||||
</ul>
|
||||
{% endif %}
|
||||
</div>
|
||||
<div class="created-at">
|
||||
<span>Published on</span>
|
||||
<time datetime="{post.metadata.date}"> {{post.metadata.date}} </time>
|
||||
</div>
|
||||
</footer>
|
||||
<p class="px-5 text-gray-800"> TODO: article preview, maybe implement as a filter?,
|
||||
Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry's standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book. It has survived not only five centuries, but also the leap into electronic typesetting, remaining essentially unchanged. It was popularised in the 1960s with the release of Letraset sheets containing Lorem Ipsum passages, and more recently with desktop publishing software like Ald </p>
|
||||
<hr class="my-3 mx-4 h-0 border-blue-200 bg-blue-800 text-blue-800" />
|
||||
<footer class="px-4">
|
||||
<section class="article-tags text-base">
|
||||
{% if post.metadata.tags.len() > 0 %}
|
||||
<span class="text-gray-600">Tags:</span>
|
||||
<ul class="inline">
|
||||
{% for tag in post.metadata.tags %}
|
||||
<li class="inline italic text-blue-700 {% if !loop.last %} after:content-[','] {% endif %}">
|
||||
<a href="/blog/tags/{{tag}}">{{tag}}</a>
|
||||
</li>
|
||||
{% endfor %}
|
||||
</ul>
|
||||
{% endif %}
|
||||
</div>
|
||||
</footer>
|
||||
</article>
|
||||
|
@ -1,31 +1,19 @@
|
||||
<header class="min-h-full bg-blue-50">
|
||||
<nav class="">
|
||||
<section>
|
||||
<ul class="">
|
||||
{% for link in header_props.links %}
|
||||
<li>
|
||||
<a
|
||||
rel="prefetch"
|
||||
class=""
|
||||
href="{{link.href}}"
|
||||
>
|
||||
{{link.label}}
|
||||
</a>
|
||||
</li>
|
||||
{% endfor %}
|
||||
</ul>
|
||||
|
||||
<aside class="logo-section ">
|
||||
<a class="logo" href=".">
|
||||
<img
|
||||
class=""
|
||||
src="/m-logo.svg"
|
||||
alt="m logo"
|
||||
width="44px"
|
||||
height="44px"
|
||||
/>
|
||||
<nav class="flex">
|
||||
{% match header_props.back_link %}
|
||||
{% when Some with (link) %}
|
||||
<a
|
||||
class="p-3 text-lg font-medium drop-shadow-md"
|
||||
href="{{link.href}}"
|
||||
>
|
||||
{{link.label}}
|
||||
</a>
|
||||
{% when None %}
|
||||
{% endmatch %}
|
||||
<aside class="flex logo-section flex-grow justify-end content-end">
|
||||
<a class="logo p-3 text-base" href=".">
|
||||
@michalvankodev
|
||||
</a>
|
||||
</aside>
|
||||
</section>
|
||||
</nav>
|
||||
</header>
|
||||
|
Reference in New Issue
Block a user