Skip to content

Commit

Permalink
Create byline class
Browse files Browse the repository at this point in the history
  • Loading branch information
clente committed Oct 18, 2023
1 parent 88edea7 commit fc8583e
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 7 deletions.
4 changes: 4 additions & 0 deletions assets/style.css
Original file line number Diff line number Diff line change
Expand Up @@ -146,6 +146,10 @@ h3.blog-filter {
opacity: 0.7;
}

p.byline {
font-style: italic;
}

/* "Skip to main content" link */
.skip-link {
position: absolute;
Expand Down
12 changes: 5 additions & 7 deletions layouts/_default/single.html
Original file line number Diff line number Diff line change
@@ -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>
Expand Down

0 comments on commit fc8583e

Please sign in to comment.