Skip to content

Commit

Permalink
Add GitHub to interface.json
Browse files Browse the repository at this point in the history
  • Loading branch information
sunnyyoung committed Oct 27, 2016
1 parent 2e042e5 commit f62095c
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 0 deletions.
6 changes: 6 additions & 0 deletions interface.json
Original file line number Diff line number Diff line change
Expand Up @@ -260,6 +260,12 @@
"title": "Dribbble",
"placeholder": "Dribbble ID",
"model": "text"
},
{
"key": "github",
"title": "GitHub",
"placeholder": "GitHub ID",
"model": "text"
}
]
}
Expand Down
6 changes: 6 additions & 0 deletions layout/macro/sidebar.jade
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,7 @@ mixin render(is_post)
- var twitter = site.configs.twitter
- var instagram = site.configs.instagram
- var dribbble = site.configs.dribbble
- var github = site.configs.github
if weibo
span.links-of-author-item
a(href='//www.weibo.com/%s'%weibo, target='blank', title='Weibo')
Expand All @@ -74,6 +75,11 @@ mixin render(is_post)
a(href='//www.dribbble.com/%s'%dribbble, target='blank', title='Dribbble')
i.fa.fa-fw.fa-dribbble
| Dribbble
if github
span.links-of-author-item
a(href='//www.github.com/%s'%github, target='blank', title='GitHub')
i.fa.fa-fw.fa-github
| GitHub

- var cc = ['by', 'by-nc', 'by-nc-nd', 'by-nc-sa', 'by-nd', 'by-sa', 'zero']
if site.configs.creative_commons in cc
Expand Down

0 comments on commit f62095c

Please sign in to comment.