| 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 |
// Deprecated: Use taxonomies instead. |
| 18 |
type AuthorList map[string]Author |
| 19 |
|
| 20 |
// Author contains details about the author of a page. |
| 21 |
// Deprecated: Use taxonomies instead. |
| 22 |
type Author struct { |
| 23 |
GivenName string |
| 24 |
FamilyName string |
| 25 |
DisplayName string |
| 26 |
Thumbnail string |
| 27 |
Image string |
| 28 |
ShortBio string |
| 29 |
LongBio string |
| 30 |
Email string |
| 31 |
Social AuthorSocial |
| 32 |
} |
| 33 |
|
| 34 |
// AuthorSocial is a place to put social details per author. These are the |
| 35 |
// standard keys that themes will expect to have available, but can be |
| 36 |
// expanded to any others on a per site basis |
| 37 |
// - website |
| 38 |
// - github |
| 39 |
// - facebook |
| 40 |
// - twitter |
| 41 |
// - pinterest |
| 42 |
// - instagram |
| 43 |
// - youtube |
| 44 |
// - linkedin |
| 45 |
// - skype |
| 46 |
// Deprecated: Use taxonomies instead. |
| 47 |
type AuthorSocial map[string]string |