hugo-ataru

Hugo theme with titleless posts and microformats2 support

git clone git://git.shimmy1996.com/hugo-ataru.git
commit 558392bfa7b1e325e32b2e38a03b3cd9e090d7ab
parent e304c00b8cd0e6c637b4a9b434e100c0983e63a3
Author: Shimmy Xu <shimmy.xu@shimmy1996.com>
Date:   Sun, 12 Apr 2020 11:22:10 -0500

Use CSS instead of <hr/>

Diffstat:
Mlayouts/_default/list.html | 3---
Mlayouts/_default/single.html | 2--
Alayouts/partials/css/custom.css | 0
Mlayouts/partials/head.html | 19++++++++++++++++++-
Alayouts/partials/head_custom.html | 0
5 files changed, 18 insertions(+), 6 deletions(-)
diff --git a/layouts/_default/list.html b/layouts/_default/list.html
@@ -1,10 +1,8 @@
 {{ define "main" }}
-<hr/>
 <main>
   {{ $pag := partial "get_paginator.html" . }}
   {{ if (and .IsHome (not $pag.HasPrev)) }}
   <div class="h-card">{{ .Content }}</div>
-  <hr/>
   {{ end }}
   {{ range $pag.Pages }}
   <article class="h-entry">
@@ -15,7 +13,6 @@
     <div class="e-content">{{ .Content }}</div>
     {{ end }}
   </article>
-  <hr/>
   {{ end }}
 </main>
 {{ end }}
diff --git a/layouts/_default/single.html b/layouts/_default/single.html
@@ -1,9 +1,7 @@
 {{ define "main" }}
-<hr/>
 <main class="h-entry">
   {{ partial "header.html" . }}
   <div class="e-content">{{ .Content }}</div>
   {{ partial "hyperskip.html" . }}
 </main>
-<hr/>
 {{ end }}
diff --git a/layouts/partials/css/custom.css b/layouts/partials/css/custom.css
diff --git a/layouts/partials/head.html b/layouts/partials/head.html
@@ -4,13 +4,30 @@
         padding: 1em;
         margin: auto;
         max-width: 60ch;
-        font-family: sans-serif;
+        line-height: 1.5;
+    }
+    img, video, audio {
+        max-width: 100%;
+    }
+    table {
+        margin: auto;
+    }
+    td {
+        padding: 2px 5px 1px 5px;
+        border-top: 1px dotted;
     }
     pre {
         overflow-x: auto;
     }
+    .h-entry {
+        margin-top: 0.5em;
+        padding-top: 0.5em;
+        border-top: 1px dotted;
+    }
+    {{ partial "css/custom.css" . | safeCSS }}
   </style>
   <meta charset="utf-8">
   <meta name="viewport" content="width=device-width, initial-scale=1">
+  {{ partial "head_custom.html" . }}
   <title>{{ .Title }}</title>
 </head>
diff --git a/layouts/partials/head_custom.html b/layouts/partials/head_custom.html