Reference site settings for site author (default)
This commit is contained in:
parent
0bb176b456
commit
1a2f3b8025
2 changed files with 15 additions and 15 deletions
26
_config.yml
26
_config.yml
|
@ -8,16 +8,17 @@
|
||||||
# Site Settings
|
# Site Settings
|
||||||
locale : en_US
|
locale : en_US
|
||||||
title : "Your awesome site"
|
title : "Your awesome site"
|
||||||
name : "Your Name"
|
name : &name "Your Name"
|
||||||
title_separator : "-"
|
title_separator : "-"
|
||||||
description : "Write an awesome description for your new site here."
|
description : &description "Write an awesome description for your new site here."
|
||||||
url : "http://localhost:4000" # the base hostname & protocol for your site
|
url : "http://localhost:4000" # the base hostname & protocol for your site
|
||||||
baseurl : "/test" # the subpath of your site, e.g. /blog
|
baseurl : "/test" # the subpath of your site, e.g. /blog
|
||||||
email : "your-email@domain.com"
|
email : "your-email@domain.com"
|
||||||
logo : "default-thumb.png"
|
logo : &avatar "default-thumb.png"
|
||||||
twitter:
|
twitter:
|
||||||
username : site_twitter
|
username : &twitter "site_twitter"
|
||||||
facebook:
|
facebook:
|
||||||
|
username : &facebook "site_facebook"
|
||||||
app_id :
|
app_id :
|
||||||
publisher :
|
publisher :
|
||||||
disqus_shortname : "mmistakes-dev" # https://help.disqus.com/customer/portal/articles/466208-what-s-a-shortname-
|
disqus_shortname : "mmistakes-dev" # https://help.disqus.com/customer/portal/articles/466208-what-s-a-shortname-
|
||||||
|
@ -114,17 +115,16 @@ compress_html:
|
||||||
ignore:
|
ignore:
|
||||||
envs: development
|
envs: development
|
||||||
|
|
||||||
# Site Owner
|
# Site Author
|
||||||
owner:
|
author:
|
||||||
name : "Your Name"
|
name : *name
|
||||||
avatar : "bio-photo.jpg" # external URLs are also acceptable
|
avatar : *avatar
|
||||||
bio : "Describe your self."
|
bio : *description
|
||||||
email :
|
email : *email
|
||||||
bing-verify :
|
|
||||||
codepen :
|
codepen :
|
||||||
dribbble :
|
dribbble :
|
||||||
flickr :
|
flickr :
|
||||||
facebook :
|
facebook : *facebook
|
||||||
foursquare :
|
foursquare :
|
||||||
github :
|
github :
|
||||||
google :
|
google :
|
||||||
|
@ -140,7 +140,7 @@ owner:
|
||||||
stackoverflow : # http://stackoverflow.com/users/123456/username
|
stackoverflow : # http://stackoverflow.com/users/123456/username
|
||||||
steam :
|
steam :
|
||||||
tumblr :
|
tumblr :
|
||||||
twitter :
|
twitter : *twitter
|
||||||
weibo :
|
weibo :
|
||||||
xing :
|
xing :
|
||||||
youtube :
|
youtube :
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
{% if page.author %}
|
{% if page.author %}
|
||||||
{% assign author = site.data.authors[page.author] %}{% else %}{% assign author = site.owner %}
|
{% assign author = site.data.authors[page.author] %}{% else %}{% assign author = site.author %}
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
|
||||||
<div itemscope itemtype="http://schema.org/Person">
|
<div itemscope itemtype="http://schema.org/Person">
|
||||||
|
@ -7,7 +7,7 @@
|
||||||
{% if author.avatar contains "http" %}
|
{% if author.avatar contains "http" %}
|
||||||
<img src="{{ author.avatar }}" class="author-avatar" alt="{{ author.name }} photo">
|
<img src="{{ author.avatar }}" class="author-avatar" alt="{{ author.name }} photo">
|
||||||
{% else %}
|
{% else %}
|
||||||
<img src="{{ author.avatar | prepend: absurl }}" class="author-avatar" alt="{{ author.name }} photo">
|
<img src="{{ author.avatar | prepend: "/images/" | prepend: absurl }}" class="author-avatar" alt="{{ author.name }} photo">
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
|
||||||
<h3 class="author-name">{{ author.name }}</h3>
|
<h3 class="author-name">{{ author.name }}</h3>
|
||||||
|
|
Loading…
Reference in a new issue