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 | e9dd95b6d50c2030a0efe819257ff557f8fbf2a8 (patch) | |
tree | 5321de27c0dc8d651cc0bf1de37c1f4de7595df5 /users/fcuny/blog/layouts/_default | |
parent | layout: no need for a class to element 'article' (diff) | |
download | world-e9dd95b6d50c2030a0efe819257ff557f8fbf2a8.tar.gz |
CSS: switch from class to id
These elements are unique on each page.
Diffstat (limited to '')
-rw-r--r-- | users/fcuny/blog/layouts/_default/single.html | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/users/fcuny/blog/layouts/_default/single.html b/users/fcuny/blog/layouts/_default/single.html index fe2477e..7a85a05 100644 --- a/users/fcuny/blog/layouts/_default/single.html +++ b/users/fcuny/blog/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> |