-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add new shortcode for availability, better words
- Loading branch information
Showing
6 changed files
with
24 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
module.exports = function availability(availability, availabilityString, short = false) { | ||
if (short) { | ||
if (!availability) return "None currently"; | ||
if(availabilityString && availabilityString.length) return `from ${availabilityString}`; | ||
return "Currently available"; | ||
} | ||
|
||
if (!availability) return "I presently have no availability for new engagements."; | ||
|
||
if(availabilityString && availabilityString.length) return `<strong>I have availability for new engagements from ${availabilityString}</strong>, either remotely or on-site in London.`; | ||
|
||
return "<strong>I have current availability for new engagements</strong>, either remotely or on-site in London."; | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,10 +4,10 @@ layout: page.njk | |
description: Hire Alex Jegtnes, a versatile freelance front-end developer with ten years of experience working for everything from small design studios to banks and newspapers. | ||
eleventyComputed: | ||
twitterLabel1: Availability | ||
twitterData1: "{%if global.availability%}{{global.availabilityDate}}{%else%}None{%endif%}" | ||
twitterData1: "{% availability global.availability, global.availabilityString, true %}" | ||
twitterLabel2: Proficiencies | ||
twitterData2: JavaScript, well-crafted HTML & CSS, accessibility, React, web performance | ||
intro: <p>Hi there! I'm Alex, an independent web development contractor based in London. I develop fast, accessible, and beautiful websites and web apps.</p>{% if global.availability %}<p><strong>I have availability for new projects {{ global.availabilityDate }}</strong>, either remotely or on-site in London.</p><p>I have ten years of experience working with clients ranging from startups and design studios to large corporations and banks. Read on to find out what I can bring to your organisation.</p>{% endif %} | ||
intro: <p>Hi there! I'm Alex, an independent web development contractor based in London. I develop fast, accessible, and beautiful websites and web apps.</p>{% if global.availability %}<p><p>{% availability global.availability, global.availabilityString %}</p></p><p>I have ten years of experience working with clients ranging from startups and design studios to large corporations and banks. Read on to find out what I can bring to your organisation.</p>{% endif %} | ||
--- | ||
|
||
## Quick summary | ||
|
@@ -96,6 +96,6 @@ Speaking of responsive images, in the dark days when responsive images weren't n | |
|
||
## Let's make a nice website together? | ||
|
||
If my skills sound relevant to anything you need help with I'd love to hear from you and to discuss your next project. | ||
If my skills sound relevant to anything you need help with, I'd love to hear from you and to discuss your next project. | ||
|
||
<a class="btn" href="mailto:[email protected]?subject=Contracting%20inquiry">Toss an email my way!</a> |