about summary refs log tree commit diff
path: root/layouts/_default
diff options
context:
space:
mode:
authorFranck Cuny <franck@fcuny.net>2021-08-23 09:32:05 -0700
committerFranck Cuny <franck@fcuny.net>2021-08-23 09:32:05 -0700
commit87132a32ca9e3560d80ebfa4e7254a7a42d40ff5 (patch)
treec40827a4bf011391147279e333091a7acd43df20 /layouts/_default
parentCSS: rename the class for the tags (diff)
downloadfcuny.net-87132a32ca9e3560d80ebfa4e7254a7a42d40ff5.tar.gz
CSS: use decoration on headers only for articles
Add an element "article" to the single page template, and change the CSS
to use the decoration for headers only for that kind of content.

Having decoration for all headers is distracting, it's more suited for
actual content.

We also don't need decoration for h1, only smaller headers.
Diffstat (limited to 'layouts/_default')
-rw-r--r--layouts/_default/single.html8
1 files changed, 6 insertions, 2 deletions
diff --git a/layouts/_default/single.html b/layouts/_default/single.html
index b4c5443..165c568 100644
--- a/layouts/_default/single.html
+++ b/layouts/_default/single.html
@@ -1,5 +1,7 @@
 {{ define "main" }}
 
+<article class="article">
+
 <h1>{{ .Title }}</h1>
 
 <div class="meta">
@@ -18,9 +20,9 @@
   {{ if .Params.tags }}
   <div>
   {{ if eq (len .Params.tags) 1 }}
-  in tag
+  tag:
   {{ else }}
-  in tags
+  tags:
   {{ end }}
   {{ range $idx, $tag := .Params.tags }}
   <span class="meta_tags"><a href="/tags/{{ $tag | urlize }}/">{{ $tag }}</a></span>
@@ -38,4 +40,6 @@
 
 {{ .Content }}
 
+<article>
+
 {{ end }}