├── .gitignore ├── LICENSE ├── README.md ├── _config.yml ├── _posts └── 2016-04-18-ohai.md ├── assets ├── behaviour.coffee ├── renderjson.js └── style.scss ├── index.md ├── site.github.json └── site.md /.gitignore: -------------------------------------------------------------------------------- 1 | _site/ 2 | .sass-cache/ 3 | .jekyll-metadata 4 | -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- 1 | The MIT License (MIT) 2 | 3 | Copyright (c) 2016 jekyllbot 4 | 5 | Permission is hereby granted, free of charge, to any person obtaining a copy 6 | of this software and associated documentation files (the "Software"), to deal 7 | in the Software without restriction, including without limitation the rights 8 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 9 | copies of the Software, and to permit persons to whom the Software is 10 | furnished to do so, subject to the following conditions: 11 | 12 | The above copyright notice and this permission notice shall be included in all 13 | copies or substantial portions of the Software. 14 | 15 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 16 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 17 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 18 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 19 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 20 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE 21 | SOFTWARE. 22 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # github-pages-site 2 | Example GitHub Pages Site 3 | -------------------------------------------------------------------------------- /_config.yml: -------------------------------------------------------------------------------- 1 | gems: 2 | - jemoji 3 | - jekyll-mentions 4 | - jekyll-sitemap 5 | - jekyll-feed 6 | 7 | github: 8 | i_am_config: hear me roar 9 | 10 | kramdown: 11 | toc_levels: 1..3 12 | 13 | highlighter: rouge 14 | pygments: true 15 | 16 | theme: minima 17 | -------------------------------------------------------------------------------- /_posts/2016-04-18-ohai.md: -------------------------------------------------------------------------------- 1 | --- 2 | title: En Post 3 | layout: post 4 | --- 5 | 6 | Je suis en post. :smile: 7 | 8 | {{ page.date | date_to_long_string }} 9 | -------------------------------------------------------------------------------- /assets/behaviour.coffee: -------------------------------------------------------------------------------- 1 | --- 2 | --- 3 | document.getElementById("output").appendChild renderjson.set_show_to_level(2)(site.github) 4 | -------------------------------------------------------------------------------- /assets/renderjson.js: -------------------------------------------------------------------------------- 1 | // Copyright © 2013-2014 David Caldwell 2 | // 3 | // Permission to use, copy, modify, and/or distribute this software for any 4 | // purpose with or without fee is hereby granted, provided that the above 5 | // copyright notice and this permission notice appear in all copies. 6 | // 7 | // THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES 8 | // WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF 9 | // MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY 10 | // SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES 11 | // WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION 12 | // OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN 13 | // CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. 14 | 15 | // Usage 16 | // ----- 17 | // The module exports one entry point, the `renderjson()` function. It takes in 18 | // the JSON you want to render as a single argument and returns an HTML 19 | // element. 20 | // 21 | // Options 22 | // ------- 23 | // renderjson.set_icons("+", "-") 24 | // This Allows you to override the disclosure icons. 25 | // 26 | // renderjson.set_show_to_level(level) 27 | // Pass the number of levels to expand when rendering. The default is 0, which 28 | // starts with everything collapsed. As a special case, if level is the string 29 | // "all" then it will start with everything expanded. 30 | // 31 | // Theming 32 | // ------- 33 | // The HTML output uses a number of classes so that you can theme it the way 34 | // you'd like: 35 | // .disclosure ("⊕", "⊖") 36 | // .syntax (",", ":", "{", "}", "[", "]") 37 | // .string (includes quotes) 38 | // .number 39 | // .boolean 40 | // .key (object key) 41 | // .keyword ("null", "undefined") 42 | // .object.syntax ("{", "}") 43 | // .array.syntax ("[", "]") 44 | 45 | exports = {}; 46 | exports.renderjson = renderjson = (function() { 47 | var themetext = function(/* [class, text]+ */) { 48 | var spans = []; 49 | while (arguments.length) 50 | spans.push(append(span(Array.prototype.shift.call(arguments)), 51 | text(Array.prototype.shift.call(arguments)))); 52 | return spans; 53 | }; 54 | var append = function(/* el, ... */) { 55 | var el = Array.prototype.shift.call(arguments); 56 | for (var a=0; a 0) 107 | show(); 108 | return el; 109 | }; 110 | 111 | if (json.constructor == Array) { 112 | if (json.length == 0) return themetext(null, my_indent, "array syntax", "[]"); 113 | 114 | return disclosure("[", "]", "array", function () { 115 | var as = append(span("array"), themetext("array syntax", "[", null, "\n")); 116 | for (var i=0; i 14 |
  • Build time: {{ site.time | date_to_rfc822 }}
  • 15 |
  • Unix build time: {{ site.time | date:"%s" }}
  • 16 |
  • Jekyll version: {{ jekyll.version }}
  • 17 | 18 | 19 |

    Plugins

    20 | 21 |
      22 |
    • Hi @jekyllbot, this site is :sparkles:!
    • 23 |
    • sitemap
    • 24 |
    • feed
    • 25 |
    26 | 27 | {% highlight ruby %} 28 | def hi 29 | puts "Hello." 30 | end 31 | {% endhighlight %} 32 | 33 | ```ruby 34 | def hi 35 | puts "Hello." 36 | end 37 | ``` 38 | 39 |

    GitHub Namespace

    40 | 41 |
     
    42 | 43 |

    Pro-tip: The entire Jekyll site object is available via Javascript console.

    44 | 45 | 46 | 47 | 48 | -------------------------------------------------------------------------------- /site.github.json: -------------------------------------------------------------------------------- 1 | --- 2 | --- 3 | {{ site.github | jsonify }} 4 | -------------------------------------------------------------------------------- /site.md: -------------------------------------------------------------------------------- 1 | --- 2 | --- 3 | 4 | I am here. {{ site.github }} 5 | --------------------------------------------------------------------------------