this repo has no description
at master 49 lines 1.5 kB view raw
1<!doctype html> 2<html lang=en> 3 <head> 4 {{ template "partials/head.html" }} 5 <link rel="alternate" type="application/rss+xml" title="RSS" href="https://tangled.sh/blog/feed.xml"> 6 <meta name="description" content="{{ index .Meta "subtitle" }}"> 7 </head> 8 9 <title> 10 {{ .Meta.title }} 11 </title> 12 13 <body class="bg-slate-100"> 14 <div class="prose mx-auto px-1 pt-4 min-h-screen flex flex-col"> 15 <main> 16 <header class="px-12"> 17 <h1 class="mb-0">{{ index .Meta "title" }}</h1> 18 <h2 class="font-light mt-1 mb-0 text-lg">{{ index .Meta "subtitle" }}</h2> 19 </header> 20 21 {{ .Body }} 22 23 <section class="py-4"> 24 <ul class="px-6"> 25 {{ $posts := .Extra.blog }} 26 {{ range $posts }} 27 <li class="mt-5 bg-white py-4 px-6 rounded drop-shadow-sm list-none"> 28 <div> 29 <a class="title mb-0 text-lg" href="/{{ .Meta.slug }}.html">{{ .Meta.title }}</a> 30 {{ if .Meta.draft }} 31 (<span class="draft">draft</span>) 32 {{ end }} 33 <p class="italic mt-1 mb-0">{{ .Meta.subtitle }}</p> 34 </div> 35 {{ $dateStr := .Meta.date }} 36 {{ $date := parsedate $dateStr }} 37 <div class="post-date py-1 mb-0 text-sm">{{ $date.Format "02 Jan, 2006" }}</div> 38 </li> 39 {{ end }} 40 </ul> 41 </section> 42 </main> 43 <footer class="px-6"> 44 {{ template "partials/footer.html" }} 45 </footer> 46 </div> 47</body> 48 49</html>