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
This commit is contained in:
Rob Loranger 2019-10-02 13:33:28 -07:00
parent 9c3bee8a7d
commit d7258beacc
No known key found for this signature in database
GPG Key ID: D6F1633A4F0903B8
2 changed files with 4 additions and 4 deletions

View File

@ -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 }}

View File

@ -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>