Create byline class

This commit is contained in:
Caio Lente 2023-10-17 23:34:17 -03:00
parent 88edea7e8a
commit fc8583e445
No known key found for this signature in database
GPG Key ID: E66D381776EFC03A
2 changed files with 9 additions and 7 deletions

View File

@ -146,6 +146,10 @@ h3.blog-filter {
opacity: 0.7;
}
p.byline {
font-style: italic;
}
/* "Skip to main content" link */
.skip-link {
position: absolute;

View File

@ -1,13 +1,11 @@
{{ define "main" }}
{{ if not .Params.menu }}
<h1>{{ .Title }}</h1>
<p>
<i>
<time datetime='{{ .Date.Format "2006-01-02" }}' pubdate>
{{ .Date.Format (default "2006-01-02" .Site.Params.dateFormat) }}
</time>
{{ with .Params.author }}· {{.}}{{ end }}
</i>
<p class="byline">
<time datetime='{{ .Date.Format "2006-01-02" }}' pubdate>
{{ .Date.Format (default "2006-01-02" .Site.Params.dateFormat) }}
</time>
{{ with .Params.author }}· {{.}}{{ end }}
</p>
{{ end }}
<content>