change class to make sense

the old class was dt-published, at first it was split to keep the
display: block without the rest. this changes the published class to
subtle to be more logical
pull/190/head
Rob Loranger 5 years ago
parent 9c3bee8a7d
commit d7258beacc
No known key found for this signature in database
GPG Key ID: D6F1633A4F0903B8
  1. 4
      templates/chorus-collection-post.tmpl
  2. 4
      templates/collection-post.tmpl

@ -41,7 +41,7 @@ body#post header {
article time.dt {
display: block;
}
article time.dt.published {
article time.dt.subtle {
color: #666;
margin-bottom: 1em;
}
@ -68,7 +68,7 @@ body#post article h2#title{
<article id="post-body" class="{{.Font}} h-entry">
{{if .IsScheduled}}<p class="badge">Scheduled</p>{{end}}
{{if .Title.String}}<h2 id="title" class="p-name">{{.FormattedDisplayTitle}}</h2>{{end}}
{{if .ShowDates}}<time class="dt{{if .Title.String}} published{{end}}" datetime="{{.Created}}" pubdate itemprop="datePublished" content="{{.Created}}">{{.DisplayDate}}</time>{{end}}
{{if .ShowDates}}<time class="dt{{if .Title.String}} subtle{{end}}" datetime="{{.Created}}" pubdate itemprop="datePublished" content="{{.Created}}">{{.DisplayDate}}</time>{{end}}
<div class="e-content">{{.HTMLContent}}</div></article>
{{ if .Collection.ShowFooterBranding }}

@ -40,7 +40,7 @@ body#post header {
article time.dt {
display: block;
}
article time.dt.published {
article time.dt.subtle {
color: #666;
margin-bottom: 1em;
}
@ -77,7 +77,7 @@ body#post article h2#title{
<article id="post-body" class="{{.Font}} h-entry {{if not .IsFound}}error-page{{end}}">
{{if .IsScheduled}}<p class="badge">Scheduled</p>{{end}}
{{if .Title.String}}<h2 id="title" class="p-name">{{.FormattedDisplayTitle}}</h2>{{end}}
{{if .ShowDates}}<time class="dt{{if .Title.String}} published{{end}}" datetime="{{.Created}}" pubdate itemprop="datePublished" content="{{.Created}}">{{.DisplayDate}}</time>{{end}}
{{if .ShowDates}}<time class="dt{{if .Title.String}} subtle{{end}}" datetime="{{.Created}}" pubdate itemprop="datePublished" content="{{.Created}}">{{.DisplayDate}}</time>{{end}}
<div class="e-content">{{.HTMLContent}}</div>
</article>

Loading…
Cancel
Save