5745
Sc
sacenox.github.io / files
sacenox.github.io / index.html
1.6 KB
1--- 2layout: default 3title: posts 4description: notes from the edge 5--- 6 7<div class="content-well"> 8 9 {% for post in site.posts %} 10 <a href="{{ post.url | relative_url }}" class="post-entry group block py-5 border-b border-[#222] hover:border-[#d4a76a] transition-colors no-underline"> 11 12 {%- if forloop.first -%} 13 <!-- Latest post: more presence --> 14 <div class="flex flex-col gap-1.5"> 15 <time class="text-sm font-sans text-[#d4a76a] tabular-nums" datetime="{{ post.date | date_to_xmlschema }}">{{ post.date | date: "%Y-%m-%d" }}</time> 16 <span class="post-entry-title text-xl sm:text-2xl font-semibold text-[#e5e5e5] leading-snug group-hover:text-[#d4a76a] transition-colors">{{ post.title }}</span> 17 {% if post.description %} 18 <p class="text-base text-[#888] max-w-prose leading-relaxed">{{ post.description }}</p> 19 {% endif %} 20 </div> 21 22 {%- else -%} 23 <!-- Older posts: compact --> 24 <div class="flex flex-col sm:flex-row sm:items-baseline gap-1.5 sm:gap-6"> 25 <time class="text-sm font-sans text-[#666] tabular-nums shrink-0 sm:w-[10ch]" datetime="{{ post.date | date_to_xmlschema }}">{{ post.date | date: "%Y-%m-%d" }}</time> 26 <div class="min-w-0"> 27 <span class="post-entry-title text-base sm:text-lg text-[#d1d1d1] leading-snug group-hover:text-[#d4a76a] transition-colors">{{ post.title }}</span> 28 {% if post.description %} 29 <p class="text-sm text-[#666] mt-0.5 max-w-prose truncate hidden lg:block">{{ post.description }}</p> 30 {% endif %} 31 </div> 32 </div> 33 {%- endif -%} 34 35 </a> 36 {% endfor %} 37 38</div>