diff options
author | Yixuan Qiu <yixuan.qiu@cos.name> | 2017-07-16 23:57:36 +0300 |
---|---|---|
committer | Yihui Xie <xie@yihui.name> | 2017-07-16 23:57:36 +0300 |
commit | 0afb82da537ec5abbea159900bc1011a988913f4 (patch) | |
tree | ae61d43a9285f0f0ef22329dcff2a18b83a6a9d1 | |
parent | 38fed13f4a1e92addfc28263a3f4f3081c87285d (diff) |
add class attributes to certain elements (#2)
Add class attributes to certain elements so that theme users can format them
-rw-r--r-- | layouts/_default/list.html | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/layouts/_default/list.html b/layouts/_default/list.html index 459fa76..cad7dc9 100644 --- a/layouts/_default/list.html +++ b/layouts/_default/list.html @@ -15,9 +15,9 @@ {{ end }} </div> <h1><a href="{{ .URL }}">{{ .Title }}</a></h1> - <div> - <span>{{ .Date.Format "2006/01/02" }}</span> - {{ with .Params.author }}<span>{{ . }}</span>{{ end }} + <div class="date-author"> + <span class="date">{{ .Date.Format "2006/01/02" }}</span> + {{ with .Params.author }}<span class="author">{{ . }}</span>{{ end }} </div> <div class="summary"> <a href="{{ .URL }}"> |