Browse Source

Make dates semantic

master
Adrian Short 2 months ago
parent
commit
e0e320c0ef
Signed by: adrian GPG Key ID: 4B54F9AE91AB06BB
3 changed files with 7 additions and 6 deletions
  1. +1
    -1
      layouts/_default/li.html
  2. +2
    -2
      layouts/_default/single.html
  3. +4
    -3
      static/css/main.css

+ 1
- 1
layouts/_default/li.html View File

@@ -1,5 +1,5 @@
<div>
<h2><a href="{{ .Permalink | relURL }}">{{ .Title | markdownify }}</a></h2>
<p>{{ .Description | markdownify }}</p>
<p class=list-date>{{ .Date.Format "January 2006" }}</p>
<time datetime={{ .Date.Format "2006-01-02" }}>{{ .Date.Format "January 2006" }}</time>
</div>

+ 2
- 2
layouts/_default/single.html View File

@@ -5,9 +5,9 @@
{{ .Description | markdownify }}
</div>
<div class=postmeta>
<a href="/">{{ .Site.Params.AuthorName | markdownify }}</a>
<a href=/>{{ .Site.Params.AuthorName | markdownify }}</a>
&middot;
{{ .Date.Format "2 January 2006" }}
<time datetime={{ .Date.Format "2006-01-02" }}>{{ .Date.Format "2 January 2006" }}</time>
</div>
{{ .Content }}
</article>


+ 4
- 3
static/css/main.css View File

@@ -37,9 +37,10 @@ a:visited {
margin: 1rem 0 0rem 0;
}

#articles .list-date {
font-size: 1.0rem;
text-transform: capitalize;
#articles time {
display: block;
font-size: 1.0rem;
text-transform: uppercase;
}

#articles h2 {


Loading…
Cancel
Save