blog/themes/icarus/include/schema/widget/profile.json

92 lines
2.7 KiB
JSON
Executable File

{
"$schema": "http://json-schema.org/draft-07/schema#",
"$id": "/widget/profile.json",
"description": "Profile widget configurations",
"type": "object",
"properties": {
"type": {
"type": "string",
"const": "profile",
"nullable": true
},
"author": {
"type": "string",
"description": "Author name",
"examples": [
"Your name"
],
"nullable": true
},
"author_title": {
"type": "string",
"description": "Author title",
"examples": [
"Your title"
],
"nullable": true
},
"location": {
"type": "string",
"description": "Author's current location",
"examples": [
"Your location"
],
"nullable": true
},
"avatar": {
"type": "string",
"description": "URL or path to the avatar image",
"nullable": true
},
"avatar_rounded": {
"type": "boolean",
"description": "Whether show the rounded avatar image",
"default": false,
"nullable": true
},
"gravatar": {
"type": "string",
"description": "Email address for the Gravatar",
"nullable": true
},
"follow_link": {
"type": "string",
"description": "URL or path for the follow button",
"examples": [
"https://github.com/ppoffice"
],
"nullable": true
},
"social_links": {
"$ref": "/misc/poly_links.json",
"description": "Links to be shown on the bottom of the profile widget",
"examples": [
{
"Github": {
"icon": "fab fa-github",
"url": "https://github.com/ppoffice"
},
"Facebook": {
"icon": "fab fa-facebook",
"url": "https://facebook.com"
},
"Twitter": {
"icon": "fab fa-twitter",
"url": "https://twitter.com"
},
"Dribbble": {
"icon": "fab fa-dribbble",
"url": "https://dribbble.com"
},
"RSS": {
"icon": "fas fa-rss",
"url": "/"
}
}
]
}
},
"required": [
"type"
]
}