mirror of https://github.com/jpanther/congo.git
✨ Add `headline` parameter to author
parent
ca5d0bd057
commit
9ead2c33e8
|
@ -11,6 +11,7 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
|
||||||
- Multilingual support
|
- Multilingual support
|
||||||
- Right-to-left (RTL) language support
|
- Right-to-left (RTL) language support
|
||||||
- Performance and Accessibility improvements to achieve perfect Lighthouse scores
|
- Performance and Accessibility improvements to achieve perfect Lighthouse scores
|
||||||
|
- Author `headline` parameter
|
||||||
|
|
||||||
### Changed
|
### Changed
|
||||||
|
|
||||||
|
|
|
@ -13,6 +13,7 @@ dateFormat = "2 January 2006"
|
||||||
[author]
|
[author]
|
||||||
# name = "Your name here"
|
# name = "Your name here"
|
||||||
# image = "img/author.jpg"
|
# image = "img/author.jpg"
|
||||||
|
# headline = "I'm only human"
|
||||||
# bio = "A little bit about you"
|
# bio = "A little bit about you"
|
||||||
# links = [
|
# links = [
|
||||||
# { email = "mailto:hello@your_domain.com" },
|
# { email = "mailto:hello@your_domain.com" },
|
||||||
|
|
|
@ -13,6 +13,7 @@ dateFormat = "2 January 2006"
|
||||||
[author]
|
[author]
|
||||||
name = "Congo"
|
name = "Congo"
|
||||||
image = "author.jpg"
|
image = "author.jpg"
|
||||||
|
# headline = ""
|
||||||
bio = "This is an example author bio, and although there's a stock photo of a dog here, this article was actually created by a human. :dog:"
|
bio = "This is an example author bio, and although there's a stock photo of a dog here, this article was actually created by a human. :dog:"
|
||||||
links = [
|
links = [
|
||||||
{ twitter = "https://twitter.com/" },
|
{ twitter = "https://twitter.com/" },
|
||||||
|
|
|
@ -20,6 +20,11 @@
|
||||||
<h1 class="text-4xl font-extrabold">
|
<h1 class="text-4xl font-extrabold">
|
||||||
{{ .Site.Author.name | default .Site.Title }}
|
{{ .Site.Author.name | default .Site.Title }}
|
||||||
</h1>
|
</h1>
|
||||||
|
{{ with .Site.Author.headline }}
|
||||||
|
<h2 class="text-xl text-neutral-500 dark:text-neutral-400">
|
||||||
|
{{ . }}
|
||||||
|
</h2>
|
||||||
|
{{ end }}
|
||||||
<div class="mt-1 text-2xl">
|
<div class="mt-1 text-2xl">
|
||||||
{{ partialCached "author-links.html" . }}
|
{{ partialCached "author-links.html" . }}
|
||||||
</div>
|
</div>
|
||||||
|
|
Loading…
Reference in New Issue