diff options
author | Caio Lente <7017340+clente@users.noreply.github.com> | 2023-10-17 23:34:17 -0300 |
---|---|---|
committer | Caio Lente <7017340+clente@users.noreply.github.com> | 2023-10-17 23:34:17 -0300 |
commit | fc8583e4458ee8675b5a982fbdcf523d4f05373e (patch) | |
tree | fd09f0d410509fd9242a204237191e6343dfbdf7 | |
parent | 88edea7e8ab507cb2f48d0a3cb64b6c9fad8409e (diff) | |
download | hugo-bearcub-fc8583e4458ee8675b5a982fbdcf523d4f05373e.tar.gz hugo-bearcub-fc8583e4458ee8675b5a982fbdcf523d4f05373e.tar.bz2 |
Create byline class
-rw-r--r-- | assets/style.css | 4 | ||||
-rw-r--r-- | layouts/_default/single.html | 12 |
2 files changed, 9 insertions, 7 deletions
diff --git a/assets/style.css b/assets/style.css index afa00b3..0b600e6 100644 --- a/assets/style.css +++ b/assets/style.css @@ -146,6 +146,10 @@ h3.blog-filter { opacity: 0.7; } +p.byline { + font-style: italic; +} + /* "Skip to main content" link */ .skip-link { position: absolute; diff --git a/layouts/_default/single.html b/layouts/_default/single.html index 371a382..89b58d5 100644 --- a/layouts/_default/single.html +++ b/layouts/_default/single.html @@ -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> |