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. |
Original from http://jekyllsnippets.com/excluding-jsonify-your-site/
Create a new site.json and add the above code (site.json.rb)
| {% 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: |
| [email protected] |
| {% comment %} | |
| Loops though every collection you defined in _config.yml and grabs the pages they contain; outputting title and full text with good basic html semantics. | |
| Use page.excerpt instead of page.content to grab the first paragraph, blog list style. Markdownify is optional, depends how you authored content in your collections; I typically use Markdown. | |
| {% endcomment % } | |
| {% for collection in site.collections %} | |
| {% assign name = collection.label %} | |
| <section> |
| { | |
| "name": "jekyll-starter-kit", | |
| "version": "1.0.0", | |
| "description": "jekyll, asset build using npm scripts", | |
| "main": "src/scripts/main.js", | |
| "scripts": { | |
| "eslint:dist": "eslint src/scripts/*.js", | |
| "eslint": "npm run eslint:dist", | |
| "uglify:dist": "uglify -s src/scripts/*.js -o dist/scripts/main.min.js", | |
| "uglify:_site": "uglify -s src/scripts/*.js -o _site/dist/scripts/main.min.js", |
| /* | |
| ##Device = Desktops | |
| ##Screen = 1281px to higher resolution desktops | |
| */ | |
| @media (min-width: 1281px) { | |
| /* CSS */ | |
| <script type="application/ld+json"> | |
| { | |
| "@context": "https://schema.org", | |
| "@type": "Restaurant", | |
| "image": [ | |
| "https://example.com/photos/1x1/photo.jpg", | |
| "https://example.com/photos/4x3/photo.jpg", | |
| "https://example.com/photos/16x9/photo.jpg" | |
| ], | |
| "@id": "http://davessteakhouse.example.com", |