add options to display avatar or not

This commit is contained in:
Joel Glovier
2015-07-22 11:20:57 -04:00
parent c669227915
commit 932ef2e3f7
2 changed files with 4 additions and 0 deletions
+1
View File
@@ -9,6 +9,7 @@ sass:
style: compressed style: compressed
# Resume settings # Resume settings
resume_avatar: "true"
resume_name: "Homer J. Simpson" resume_name: "Homer J. Simpson"
resume_title: "Nuclear Safety Inspector" resume_title: "Nuclear Safety Inspector"
resume_contact_email: resume_contact_email:
+3
View File
@@ -9,7 +9,10 @@
<header class="page-header"> <header class="page-header">
<!-- You can turn off the avatar in _config.yml by setting to false -->
{% if site.resume_avatar == 'true' %}
<img src="images/avatar.jpg" alt="my photo" class="avatar"> <img src="images/avatar.jpg" alt="my photo" class="avatar">
{% endif %}
<!-- Your name is defined in the _config.yml file --> <!-- Your name is defined in the _config.yml file -->
<h1 class="header-name">{{ site.resume_name }}</h1> <h1 class="header-name">{{ site.resume_name }}</h1>