Original from http://jekyllsnippets.com/excluding-jsonify-your-site/
Create a new site.json and add the above code (site.json.rb)
| [email protected] |
| {% comment %} | |
| # | |
| # This is a nested liquid loop for Jekyll to iterate through YAML data with | |
| # a depth of three levels. The example loops through a potential table of | |
| # contents of a book. | |
| # | |
| # This is the example YAML content' | |
| - chapters: 'Einführung' | |
| sub_chapters: |
Original from http://jekyllsnippets.com/excluding-jsonify-your-site/
Create a new site.json and add the above code (site.json.rb)
| /* | |
| This script will take the URL parameters of your choice and save them to cookies during a user session, | |
| so if a user changes pages on your site, the data will still be submitted with your forms. | |
| Be sure to include the JS Cookie plugin https://github.com/js-cookie/js-cookie and jquery. | |
| Add the code below to your website footer. | |
| Adjust variable, parameter, and form input names accordingly, add or remove as necessary. | |
| Note: some servers block files with 'cookie' in the name. Be sure to change the filename if you have problems loading the script. |