Skip to content

inetbiz/jekyll-vcard

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Jekyll vCard 3.0 Generator

This Jekyll plugin fetches images from the web and renders their corresponding base64 encoding. THIS IS A WORK IN PROGRESS. See the issues tab and collaborate.

For example, a logo would become:

PHOTO;ENCODING=b;TYPE=JPEG:{% base64 http://legaldemo.strikehawk.com/assets/images/balance-scale-solid.jpg %}`

Installation

ADD jekyll_image_encode.rb to your _plugins folder.

Modify Gemfile

Add mimemagic gem to your Gemfile

source 'https://rubygems.org'

gem "jekyll", group: :jekyll_plugins

group :jekyll_plugins do
  ~~~
end

  gem 'mimemagic', '~> 0.3.3'

Modify _config.yml

Add the following to your config file:

tel: (352) 123-1234
logo: balance-scale-solid.png
email: sales@services.strikehawk.com
addr: 1720 NW 38TH AVE.\n#57
city: Ocala
state: FL
zip: 34482
country: United States
lat: 29.205120
long: -82.318940
timezone: America/New_York
lang: en-US

Add the liquid page template for vcard

Add the vcard template to your pages folder

Insert link into your pages

<a download="/vcard.vcf" href="/vcard.vcf" class="button">Import</a>

Releases

No releases published

Packages

No packages published

Languages