diff options
author | Franck Cuny <franck@fcuny.net> | 2022-01-23 19:11:39 -0800 |
---|---|---|
committer | Franck Cuny <franck@fcuny.net> | 2022-01-23 19:11:39 -0800 |
commit | 24cebe8b0005ffd6e0dc390780ce54139a1179ec (patch) | |
tree | 58cea283b907e46b26c14e9f3bbc1bdc52f50ca5 /users/fcuny/notes/layouts/_default/single.html | |
parent | layout: no need for a class to element 'article' (diff) | |
download | world-24cebe8b0005ffd6e0dc390780ce54139a1179ec.tar.gz |
CSS: switch from class to id
These elements are unique on each page.
Diffstat (limited to 'users/fcuny/notes/layouts/_default/single.html')
-rw-r--r-- | users/fcuny/notes/layouts/_default/single.html | 10 |
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> |