Blog Author

An author profile section that looks up an author by name in the site-wide lib/data/author.json data file and renders the portrait, name, profession, social links, and bio. Typically placed at the end of a blog post to introduce the author.

Because the section only stores the author's name, author details are maintained in one place and every page that references the author stays up to date automatically.

Albert Einstein

Albert Einstein

Theoretical Physicist

Albert Einstein was a German-born theoretical physicist who is best known for developing the theory of relativity. Einstein also made important contributions to quantum theory. He received the 1921 Nobel Prize in Physics for his services to theoretical physics, and especially for his discovery of the law of the photoelectric effect.

Configuration

yaml
- sectionType: blog-author
  containerTag: section
  # more settings

  name: 'Albert Einstein' # must match a name in lib/data/author.json
  logoWidth: 30           # width of the social icons in pixels
  isReverse: false        # swap profile and bio columns

Configuration Options

PropertyTypeRequiredDescription
namestringYesAuthor name, matched against the name field in lib/data/author.json
logoWidthnumberNoWidth of the social link icons in pixels
isReversebooleanNoReverses the profile/bio layout when true

Author Data

The section renders nothing if the name does not match an author record. Author records live in lib/data/author.json:

json
{
  "name": "Albert Einstein",
  "profession": "Theoretical Physicist",
  "bio": "Albert Einstein was a German-born theoretical physicist...",
  "portrait": "/assets/images/authors/einstein.jpg",
  "social": [
    {
      "platform": "Wikipedia",
      "url": "https://en.wikipedia.org/wiki/Albert_Einstein",
      "icon": "wikipedia"
    }
  ]
}

portrait, profession, bio, and social are all optional; the section renders only what is present.