Git Product home page Git Product logo

jekyll-vcard's Introduction

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: [email protected]
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>

jekyll-vcard's People

Contributors

inetbiz avatar

Stargazers

 avatar  avatar  avatar  avatar

Watchers

 avatar

jekyll-vcard's Issues

Use GEO & Timezone

Is your feature request related to a problem? Please describe.
Not sure if TZ & GEO are used anymore? I have the vars in the _config.yml

vCard does not import in Win10 People

Describe the bug
The generate vCard 3.0 will not import into Windows 10 People.

To Reproduce
Steps to reproduce the behavior:

  1. Generate site
  2. Click on vcard link on Win10
  3. Try to save it
    Expected behavior
    Import saves.

Desktop (please complete the following information):

  • OS: Win10
  • Browser Chrome

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.