0.1.9 • Published 6 years ago

hexo-tag-googleform v0.1.9

Weekly downloads
1
License
MIT
Repository
github
Last release
6 years ago

Introduction

Hexo tag plugin to embed Google Forms.

Inspired by https://github.com/arshad/Google-Form-Octopress

Note: This works with the current iteration of Google Forms. This article explains how to switch back via the Opt out of the new Forms section. I would like to support both versions at some point.

Installation

Run the following command in the root directory of hexo:

npm install hexo-tag-googleform --save

Copy the following files into your theme folders:

  • dist/google-form.css goes in source/css
  • dist/google-form.js goes in source/js

Add the following to the header:

<link rel="stylesheet" href="<%- config.root %>css/google-form.css" media="screen" type="text/css">

Add the following to the footer (or wherever your preferred javascript declarations are):

<!-- jQuery Form Plugin -->  
<script src="http://malsup.github.com/jquery.form.js"></script>  
<!-- jQuery Form Validation Plugin -->  
<script src="http://ajax.aspnetcdn.com/ajax/jquery.validate/1.13.1/jquery.validate.min.js"></script>  
<script src="<%- config.root %>js/google-form.js"></script>  

Usage

{% googleform formkey [message] %}

Example :

{% googleform dGVfY3MwcklDcjVrZERGYlRoZWdJQnc6MQ Thank you. I'll get back to you shortly %}
0.1.9

6 years ago

0.1.8

8 years ago

0.1.7

8 years ago

0.1.6

8 years ago