hugo

Fork of github.com/gohugoio/hugo with reverse pagination support

git clone git://git.shimmy1996.com/hugo.git

page_author.go (1330B)

    1 // Copyright 2019 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 page
   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 // - pinterest
   40 // - instagram
   41 // - youtube
   42 // - linkedin
   43 // - skype
   44 type AuthorSocial map[string]string