hexo-tag-googleform

0.1.9 • Public • Published

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 %}

Readme

Keywords

Package Sidebar

Install

npm i hexo-tag-googleform

Weekly Downloads

3

Version

0.1.9

License

MIT

Unpacked Size

10.1 kB

Total Files

12

Last publish

Collaborators

  • w0rd-driven