about summary refs log tree commit diff
path: root/users/fcuny/notes/layouts
diff options
context:
space:
mode:
authorFranck Cuny <franck@fcuny.net>2022-01-23 19:11:39 -0800
committerFranck Cuny <franck@fcuny.net>2022-01-23 19:11:39 -0800
commit24cebe8b0005ffd6e0dc390780ce54139a1179ec (patch)
tree58cea283b907e46b26c14e9f3bbc1bdc52f50ca5 /users/fcuny/notes/layouts
parentlayout: no need for a class to element 'article' (diff)
downloadworld-24cebe8b0005ffd6e0dc390780ce54139a1179ec.tar.gz
CSS: switch from class to id
These elements are unique on each page.
Diffstat (limited to 'users/fcuny/notes/layouts')
-rw-r--r--users/fcuny/notes/layouts/_default/single.html10
1 files changed, 5 insertions, 5 deletions
diff --git a/users/fcuny/notes/layouts/_default/single.html b/users/fcuny/notes/layouts/_default/single.html
index fe2477e..7a85a05 100644
--- a/users/fcuny/notes/layouts/_default/single.html
+++ b/users/fcuny/notes/layouts/_default/single.html
@@ -4,7 +4,7 @@
 
 <h1>{{ .Title }}</h1>
 
-<div class="meta">
+<div id="meta">
   {{- $pub := .Date.Format "Jan 2, 2006" -}}
   {{- $mod := "" -}}
   {{- if (not .GitInfo) }}
@@ -13,9 +13,9 @@
   {{- $mod = .Page.GitInfo.CommitDate.Format "Jan 2, 2006" -}}
   {{ end -}}
   {{ if eq $pub $mod }}
-  <div class="meta_date">published {{ $pub }}</div>
+  <div id="meta_date">published {{ $pub }}</div>
   {{ else }}
-  <div class="meta_date">published {{ $pub }} - last modified {{ $mod }}</div>
+  <div id="meta_date">published {{ $pub }} - last modified {{ $mod }}</div>
   {{ end }}
   {{ if .Params.tags }}
   <div>
@@ -25,7 +25,7 @@
   tags:
   {{ end }}
   {{ range $idx, $tag := .Params.tags }}
-  <span class="meta_tags"><a href="/tags/{{ $tag | urlize }}/">{{ $tag }}</a></span>
+  <span id="meta_tags"><a href="/tags/{{ $tag | urlize }}/">{{ $tag }}</a></span>
   {{ end }}
   </div>
   {{ end }}
@@ -45,7 +45,7 @@
 </div>
 
 {{ if .Params.toc }}
-<div class="toc">
+<div id="toc">
   <strong>Table of contents</strong>
   {{ .TableOfContents }}
 </div>