Merge pull request #63 from jglovier/jglovier/add-address-phone

Simpler way to display contact info in header
This commit is contained in:
Joel Glovier
2018-05-15 14:09:40 -04:00
committed by GitHub
3 changed files with 14 additions and 4 deletions
+8 -1
View File
@@ -12,10 +12,17 @@ sass:
resume_avatar: "true" resume_avatar: "true"
resume_name: "Lisa M. Simpson" resume_name: "Lisa M. Simpson"
resume_title: "VP of Global Communications" resume_title: "VP of Global Communications"
# used for the contact button in _layouts/resume.html
resume_contact_email: "lisasimpson@youremailaddress.com" resume_contact_email: "lisasimpson@youremailaddress.com"
# the next two items are used for schema itemprops in _layouts/resume.html
resume_contact_telephone: "555-7334" resume_contact_telephone: "555-7334"
resume_contact_address: "742 Evergreen Terrace, Springfield" resume_contact_address: "742 Evergreen Terrace, Springfield"
resume_header_contact_info: "742 Evergreen Terrace, Springfield | 555-7334 | lisasimpson@youremailaddress.com"
resume_header_contact_info: "742 Evergreen Terrace, Springfield • 555-7334 • lisasimpson@youremailaddress.com"
display_header_contact_info: "false"
resume_header_intro: "<p>This is the executive summary. You should write a few brief, concise, and meaningful sentences about yourself from a professional context, and your immediate career goals. Make the length appropriate for your needs, but keep it brief and concise</p>" resume_header_intro: "<p>This is the executive summary. You should write a few brief, concise, and meaningful sentences about yourself from a professional context, and your immediate career goals. Make the length appropriate for your needs, but keep it brief and concise</p>"
# use "yes" to display the email contact button, # use "yes" to display the email contact button,
+4 -2
View File
@@ -19,10 +19,12 @@
<!-- Your name is defined in the _config.yml file --> <!-- Your name is defined in the _config.yml file -->
<h1 class="header-name" itemprop="name">{{ site.resume_name }}</h1> <h1 class="header-name" itemprop="name">{{ site.resume_name }}</h1>
<!-- Contact buttons don't work in print, configure in the _config.yml file, remove "print-only" to display always. --> <!-- To display contact info here, change `display_header_contact_info` value in _config.yml to true -->
<div class="header-contact-info print-only"> {% if site.display_header_contact_info == 'true' %}
<div class="header-contact-info">
<p>{{ site.resume_header_contact_info }}</p> <p>{{ site.resume_header_contact_info }}</p>
</div> </div>
{% endif %}
<div class="title-bar no-print"> <div class="title-bar no-print">
+2 -1
View File
@@ -36,7 +36,7 @@
text-align: center; text-align: center;
letter-spacing: -.15rem; letter-spacing: -.15rem;
line-height: 1; line-height: 1;
margin: 1rem 0 2rem; margin: 1rem 0 0;
} }
.header-contact-info { .header-contact-info {
@@ -49,6 +49,7 @@
.title-bar { .title-bar {
@include section_border; @include section_border;
margin-top: 2rem;
padding: .4rem 0; padding: .4rem 0;
@include clearfix; @include clearfix;