github.com/shohhei1126/hugo@v0.42.2-0.20180623210752-3d5928889ad7/hugolib/author.go (about)

     1  // Copyright 2015 The Hugo Authors. All rights reserved.
     2  //
     3  // Licensed under the Apache License, Version 2.0 (the "License");
     4  // you may not use this file except in compliance with the License.
     5  // You may obtain a copy of the License at
     6  // http://www.apache.org/licenses/LICENSE-2.0
     7  //
     8  // Unless required by applicable law or agreed to in writing, software
     9  // distributed under the License is distributed on an "AS IS" BASIS,
    10  // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
    11  // See the License for the specific language governing permissions and
    12  // limitations under the License.
    13  
    14  package hugolib
    15  
    16  // AuthorList is a list of all authors and their metadata.
    17  type AuthorList map[string]Author
    18  
    19  // Author contains details about the author of a page.
    20  type Author struct {
    21  	GivenName   string
    22  	FamilyName  string
    23  	DisplayName string
    24  	Thumbnail   string
    25  	Image       string
    26  	ShortBio    string
    27  	LongBio     string
    28  	Email       string
    29  	Social      AuthorSocial
    30  }
    31  
    32  // AuthorSocial is a place to put social details per author. These are the
    33  // standard keys that themes will expect to have available, but can be
    34  // expanded to any others on a per site basis
    35  // - website
    36  // - github
    37  // - facebook
    38  // - twitter
    39  // - googleplus
    40  // - pinterest
    41  // - instagram
    42  // - youtube
    43  // - linkedin
    44  // - skype
    45  type AuthorSocial map[string]string