jekyll-lab-notebook 0.1.0

Sign up to get free protection for your applications and to get access to all the features.
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA1:
3
+ metadata.gz: b6d37d2c940dbadf21b699758cd38df67d6eeba9
4
+ data.tar.gz: 28740150596e85c8d192688aa2a41bd4daef9f4c
5
+ SHA512:
6
+ metadata.gz: eb96a624b25178797eacc93649e3c09258a2c8190bf0d29167bd307c3064019828424823ea03a7a20002d898148da65548ad669c54b02f2727bb3d00b6caf8cf
7
+ data.tar.gz: f934f281af6ca2de3fba0b64f643348c7f6372d4733fb74a0a96b5a5e673c45306d093c4af1069d9f48c6ca74a15468230559412168ec4e86fb835f3d69971c7
@@ -0,0 +1,21 @@
1
+ The MIT License (MIT)
2
+
3
+ Copyright (c) 2017 Tamas Nagy
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
13
+ all 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
21
+ THE SOFTWARE.
@@ -0,0 +1,48 @@
1
+ # jekyll-lab-notebook
2
+
3
+ Welcome to your new Jekyll theme! In this directory, you'll find the files you need to be able to package up your theme into a gem. Put your layouts in `_layouts`, your includes in `_includes` and your sass in `_sass`. To experiment with this code, add some sample content and run `bundle exec jekyll serve` – this directory is setup just like a Jekyll site!
4
+
5
+ TODO: Delete this and the text above, and describe your gem
6
+
7
+ ## Installation
8
+
9
+ Add this line to your Jekyll site's `Gemfile`:
10
+
11
+ ```ruby
12
+ gem "jekyll-lab-notebook"
13
+ ```
14
+
15
+ And add this line to your Jekyll site's `_config.yml`:
16
+
17
+ ```yaml
18
+ theme: jekyll-lab-notebook
19
+ ```
20
+
21
+ And then execute:
22
+
23
+ $ bundle
24
+
25
+ Or install it yourself as:
26
+
27
+ $ gem install jekyll-lab-notebook
28
+
29
+ ## Usage
30
+
31
+ TODO: Write usage instructions here. Describe your available layouts, includes, and/or sass.
32
+
33
+ ## Contributing
34
+
35
+ Bug reports and pull requests are welcome on GitHub at https://github.com/[USERNAME]/hello. This project is intended to be a safe, welcoming space for collaboration, and contributors are expected to adhere to the [Contributor Covenant](http://contributor-covenant.org) code of conduct.
36
+
37
+ ## Development
38
+
39
+ To set up your environment to develop this theme, run `bundle install`.
40
+
41
+ Your theme is setup just like a normal Jekyll site! To test your theme, run `bundle exec jekyll serve` and open your browser at `http://localhost:4000`. This starts a Jekyll server using your theme. Add pages, documents, data, etc. like normal to test your theme's contents. As you make modifications to your theme and to your content, your site will regenerate and you should see the changes in the browser after a refresh, just like normal.
42
+
43
+ When your theme is released, only the files in `_layouts`, `_includes`, and `_sass` tracked with Git will be released.
44
+
45
+ ## License
46
+
47
+ The theme is available as open source under the terms of the [MIT License](https://opensource.org/licenses/MIT).
48
+
@@ -0,0 +1,84 @@
1
+ <script type="text/javascript">
2
+
3
+ var data = {% listdays %};
4
+
5
+ var responsiveCal = function( options ) {
6
+ var now = new Date();
7
+ if ( $(window).width() < 730 ) {
8
+ options.start = now.setMonth(now.getMonth());
9
+ options.range = 1;
10
+ options.cellSize = 20;
11
+ } else if( $(window).width() < 1400 ) {
12
+ options.start = now.setMonth(now.getMonth() - 1);
13
+ options.range = 2;
14
+ options.cellSize = 23;
15
+ } else {
16
+ options.start = now.setMonth(now.getMonth() - 2);
17
+ options.range = 3;
18
+ options.cellSize = 23;
19
+ }
20
+
21
+ if( typeof cal === "object" ) {
22
+ $('#cal-heatmap').html('');
23
+ cal = cal.destroy();
24
+ }
25
+ cal = new CalHeatMap();
26
+ cal.init( options );
27
+
28
+ }
29
+ caloptions = {
30
+ itemSelector: "#cal-heatmap",
31
+ domain: "month",
32
+ subDomain: "x_day",
33
+ data: data,
34
+ dataType: "json",
35
+ cellPadding: 5,
36
+ domainGutter: 20,
37
+ displayLegend: false,
38
+ range: 4,
39
+ highlight: "now",
40
+ considerMissingDataAsZero:false,
41
+ domainDynamicDimension: true,
42
+ previousSelector: "#cal-heatmap-PreviousDomain-selector",
43
+ nextSelector: "#cal-heatmap-NextDomain-selector",
44
+ weekStartOnMonday:false,
45
+ domainLabelFormat: function(date) {
46
+ moment.locale("en");
47
+ return moment(date).format("MMMM").toUpperCase();
48
+ },
49
+ onClick: function(date, nb) {
50
+ year = date.getFullYear();
51
+ month = ("0"+(date.getMonth()+1)).slice(-2);
52
+ day = ("0" + date.getDate()).slice(-2);
53
+ if (nb > 0){
54
+ window.location.href = "/log/" + year + "_" + month + "/#" + year + month + day;
55
+ }
56
+ },
57
+ legendColors: {
58
+ min: "lightgrey",
59
+ max: "#2a7ae2",
60
+ empty: "lightgrey"
61
+ },
62
+ subDomainTextFormat: "%d",
63
+ legend: [0,1,2,3,4,5],
64
+ label: {
65
+ position: "top"
66
+ }
67
+ };
68
+
69
+
70
+ // run first time, put in load if your scripts are in footer
71
+ responsiveCal( caloptions );
72
+
73
+ $(window).resize(function() {
74
+ if(this.resizeTO) clearTimeout(this.resizeTO);
75
+ this.resizeTO = setTimeout(function() {
76
+ $(this).trigger('resizeEnd');
77
+ }, 500);
78
+ });
79
+
80
+ //resize on resizeEnd function
81
+ $(window).bind('resizeEnd', function() {
82
+ responsiveCal( cal.options );
83
+ });
84
+ </script>
@@ -0,0 +1,35 @@
1
+ <script src="https://ajax.googleapis.com/ajax/libs/jquery/2.2.3/jquery.min.js"></script>
2
+ <script src="https://d3js.org/d3.v3.min.js" charset="utf-8"></script>
3
+ <script type="text/javascript" src="//cdn.jsdelivr.net/cal-heatmap/3.3.10/cal-heatmap.min.js"></script>
4
+ <link rel="stylesheet" href="//cdn.jsdelivr.net/cal-heatmap/3.3.10/cal-heatmap.css" />
5
+ <script type="text/javascript" src="//cdnjs.cloudflare.com/ajax/libs/moment.js/2.14.1/moment.min.js"></script>
6
+
7
+ <style type="text/css">
8
+ .content {
9
+ min-width: 400px;
10
+ }
11
+ #calendar {
12
+ width: 700px;
13
+ }
14
+ .subdomain-text {
15
+ fill: #fff;
16
+ }
17
+ #calendar a {
18
+ color: #999;
19
+ }
20
+ @media all and (max-width:1400px) {
21
+ #calendar {
22
+ width: 500px;
23
+ }
24
+ }
25
+ @media all and (max-width:730px) {
26
+ #calendar {
27
+ width:365px;
28
+ }
29
+ }
30
+ @media all and (max-width:420px) {
31
+ #calendar {
32
+ width:191px;
33
+ }
34
+ }
35
+ </style>
@@ -0,0 +1,44 @@
1
+ <footer class="site-footer">
2
+
3
+ <div class="wrapper">
4
+
5
+ <div class="footer-col-wrapper">
6
+ <div class="footer-col footer-col-1">
7
+ <ul class="contact-list">
8
+ <li>
9
+ {% if site.author %}
10
+ {{ site.author | escape }}
11
+ {% else %}
12
+ {{ site.title | escape }}
13
+ {% endif %}
14
+ </li>
15
+ {% if site.email %}
16
+ <li><a href="mailto:{{ site.email }}">{{ site.email }}</a></li>
17
+ {% endif %}
18
+ </ul>
19
+ </div>
20
+
21
+ <div class="footer-col footer-col-2">
22
+ <ul class="social-media-list">
23
+ {% if site.github_username %}
24
+ <li>
25
+ {% include icon-github.html username=site.github_username %}
26
+ </li>
27
+ {% endif %}
28
+
29
+ {% if site.twitter_username %}
30
+ <li>
31
+ {% include icon-twitter.html username=site.twitter_username %}
32
+ </li>
33
+ {% endif %}
34
+ </ul>
35
+ </div>
36
+
37
+ <div class="footer-col footer-col-3">
38
+ <p>Built on {{ site.time | date: '%Y-%m-%d %T %Z'}}</p>
39
+ </div>
40
+ </div>
41
+
42
+ </div>
43
+
44
+ </footer>
@@ -0,0 +1,21 @@
1
+ <head>
2
+ <meta charset="utf-8">
3
+ <meta http-equiv="X-UA-Compatible" content="IE=edge">
4
+ <meta name="viewport" content="width=device-width, initial-scale=1">
5
+
6
+ <title>
7
+ {{ site.short-title}} |
8
+ {% if page.date %}{{ page.date | date: "%B %Y" }}
9
+ {% elsif page.title %}{{ page.title | escape }}
10
+ {% else %}{{ site.title | escape }}{% endif %}
11
+ </title>
12
+ <meta name="description" content="{{ page.excerpt | default: site.description | strip_html | normalize_whitespace | truncate: 160 | escape }}">
13
+
14
+ <link rel="stylesheet" href="{{ "/assets/main.css" | relative_url }}">
15
+ <link rel="canonical" href="{{ page.url | replace:'index.html','' | absolute_url }}">
16
+ <link rel="alternate" type="application/rss+xml" title="{{ site.title | escape }}" href="{{ "/feed.xml" | relative_url }}">
17
+
18
+ {% if jekyll.environment == 'production' and site.google_analytics %}
19
+ {% include google-analytics.html %}
20
+ {% endif %}
21
+ </head>
@@ -0,0 +1,15 @@
1
+ <header class="site-header" role="banner">
2
+
3
+ <div class="wrapper">
4
+ <a class="site-title" href="{{ "/" | relative_url }}">{{ site.title }}</a>
5
+
6
+ <nav class="site-nav">
7
+ <div class="trigger">
8
+ <a class="page-link" href="/projects">Projects</a>
9
+ <a class="page-link" href="/meetings">Meetings</a>
10
+ <a class="page-link" href="http://tamasnagy.com">tamasnagy.com</a>
11
+ </div>
12
+ </nav>
13
+
14
+ </div>
15
+ </header>
@@ -0,0 +1 @@
1
+ <a href="https://github.com/{{ include.username }}"><span class="icon icon--github">{% include icon-github.svg %}</span><span class="username">{{ include.username }}</span></a>
@@ -0,0 +1 @@
1
+ <svg viewBox="0 0 16 16" width="16px" height="16px"><path fill="#828282" d="M7.999,0.431c-4.285,0-7.76,3.474-7.76,7.761 c0,3.428,2.223,6.337,5.307,7.363c0.388,0.071,0.53-0.168,0.53-0.374c0-0.184-0.007-0.672-0.01-1.32 c-2.159,0.469-2.614-1.04-2.614-1.04c-0.353-0.896-0.862-1.135-0.862-1.135c-0.705-0.481,0.053-0.472,0.053-0.472 c0.779,0.055,1.189,0.8,1.189,0.8c0.692,1.186,1.816,0.843,2.258,0.645c0.071-0.502,0.271-0.843,0.493-1.037 C4.86,11.425,3.049,10.76,3.049,7.786c0-0.847,0.302-1.54,0.799-2.082C3.768,5.507,3.501,4.718,3.924,3.65 c0,0,0.652-0.209,2.134,0.796C6.677,4.273,7.34,4.187,8,4.184c0.659,0.003,1.323,0.089,1.943,0.261 c1.482-1.004,2.132-0.796,2.132-0.796c0.423,1.068,0.157,1.857,0.077,2.054c0.497,0.542,0.798,1.235,0.798,2.082 c0,2.981-1.814,3.637-3.543,3.829c0.279,0.24,0.527,0.713,0.527,1.437c0,1.037-0.01,1.874-0.01,2.129 c0,0.208,0.14,0.449,0.534,0.373c3.081-1.028,5.302-3.935,5.302-7.362C15.76,3.906,12.285,0.431,7.999,0.431z"/></svg>
@@ -0,0 +1 @@
1
+ <a href="https://twitter.com/{{ include.username }}"><span class="icon icon--twitter">{% include icon-twitter.svg %}</span><span class="username">{{ include.username }}</span></a>
@@ -0,0 +1 @@
1
+ <svg viewBox="0 0 16 16" width="16px" height="16px"><path fill="#828282" d="M15.969,3.058c-0.586,0.26-1.217,0.436-1.878,0.515c0.675-0.405,1.194-1.045,1.438-1.809c-0.632,0.375-1.332,0.647-2.076,0.793c-0.596-0.636-1.446-1.033-2.387-1.033c-1.806,0-3.27,1.464-3.27,3.27 c0,0.256,0.029,0.506,0.085,0.745C5.163,5.404,2.753,4.102,1.14,2.124C0.859,2.607,0.698,3.168,0.698,3.767 c0,1.134,0.577,2.135,1.455,2.722C1.616,6.472,1.112,6.325,0.671,6.08c0,0.014,0,0.027,0,0.041c0,1.584,1.127,2.906,2.623,3.206 C3.02,9.402,2.731,9.442,2.433,9.442c-0.211,0-0.416-0.021-0.615-0.059c0.416,1.299,1.624,2.245,3.055,2.271 c-1.119,0.877-2.529,1.4-4.061,1.4c-0.264,0-0.524-0.015-0.78-0.046c1.447,0.928,3.166,1.469,5.013,1.469 c6.015,0,9.304-4.983,9.304-9.304c0-0.142-0.003-0.283-0.009-0.423C14.976,4.29,15.531,3.714,15.969,3.058z"/></svg>
@@ -0,0 +1,20 @@
1
+ <!DOCTYPE html>
2
+ <html lang="{{ page.lang | default: site.lang | default: "en" }}">
3
+
4
+ {% include head.html %}
5
+
6
+ <body>
7
+
8
+ {% include header.html %}
9
+
10
+ <main class="page-content" aria-label="Content">
11
+ <div class="wrapper">
12
+ {{ content }}
13
+ </div>
14
+ </main>
15
+
16
+ {% include footer.html %}
17
+
18
+ </body>
19
+
20
+ </html>
@@ -0,0 +1,65 @@
1
+ ---
2
+ layout: default
3
+ ---
4
+ <head>
5
+ {% include calheader.html %}
6
+ <script type="text/javascript">
7
+
8
+ // stolen from here: https://stackoverflow.com/questions/688196/how-to-use-a-link-to-call-javascript
9
+ window.onload = function() {
10
+ // hides the element specified by data-target when a link is clicked
11
+ f = function() {
12
+ var button = document.getElementById(this.id);
13
+ target = document.getElementById(button.dataset.target)
14
+ if (target.style.display === 'block') {
15
+ target.style.display = 'none';
16
+ } else {
17
+ target.style.display = 'block';
18
+ }
19
+ return false;
20
+ }
21
+
22
+ document.getElementById("protocol-link").onclick = f;
23
+ document.getElementById("misc-link").onclick = f;
24
+ }
25
+ </script>
26
+ </head>
27
+ <p>{{ site.description | escape }}</p>
28
+ <div id="calendar" style="margin:0 auto;">
29
+ <div id="cal-heatmap"></div>
30
+ <div style="padding-top: 10px;">
31
+ <a href="#" style="margin-right:10px;" id="cal-heatmap-PreviousDomain-selector">&larr;</a>
32
+ <a href="#" style="float:right;" id="cal-heatmap-NextDomain-selector">&rarr;</a>
33
+ </div>
34
+ </div>
35
+ <div id="home">
36
+ <h1>Daily log</h1>
37
+ <ul class="posts">
38
+ {% for post in site.posts %}
39
+ <li><a href="{{ site.baseurl }}{{ post.url }}">{{ post.date | date: "%B %Y" }}</a></li>
40
+ {% endfor %}
41
+ </ul>
42
+
43
+ <h1><a id="protocol-link" data-target="protocol-list" href="#">Protocols</a></h1>
44
+ <div id="protocol-list">
45
+ <ul class="posts">
46
+ {% for page in site.pages %}
47
+ {% if page.url contains 'protocols/' %}
48
+ <li><a href="{{ site.baseurl }}{{ page.url }}">{{ page.title | escape }}</a></li>
49
+ {% endif %}
50
+ {% endfor %}
51
+ </ul>
52
+ </div>
53
+
54
+ <h1><a id="misc-link" href="#" data-target="misc-list">Miscellaneous</a></h1>
55
+ <div id="misc-list">
56
+ <ul class="posts">
57
+ {% for page in site.pages %}
58
+ {% if page.url contains 'random/' %}
59
+ <li><a href="{{ site.baseurl }}{{ page.url }}">{{ page.title | escape }}</a></li>
60
+ {% endif %}
61
+ {% endfor %}
62
+ </ul>
63
+ </div>
64
+ </div>
65
+ {% include calfooter.html %}
@@ -0,0 +1,37 @@
1
+ ---
2
+ layout: default
3
+ ---
4
+ <article class="post" itemscope itemtype="http://schema.org/BlogPosting">
5
+
6
+ <header class="post-header">
7
+ <h1 class="post-title" itemprop="name headline">{{ page.date | date: "%B %Y"}}</h1>
8
+ <p class="post-meta">
9
+ </header>
10
+
11
+ <div class="postNav cf">
12
+ {% if page.next.url %}
13
+ <a class="next{% if page.next.image %} image{% endif %}" href="{{ page.next.url | prepend: site.baseurl }}"><span>{{ page.next.date | date: "%B %Y" }}&nbsp;&raquo;</span></a>
14
+ {% endif %}
15
+ {% if page.previous.url %}
16
+ <a class="prev{% if page.previous.image %} image{% endif %}" href="{{ page.previous.url | prepend: site.baseurl }}"><span>&laquo;&nbsp;{{ page.previous.date | date: "%B %Y" }}</span></a>
17
+ {% endif %}
18
+ </div>
19
+
20
+ <div class="post-content" itemprop="articleBody">
21
+ {{ content | replace: '<li>[ ]',
22
+ '<li class="box task-list-item">
23
+ <input type="checkbox" class="task-list-item-checkbox" disabled>' |
24
+ replace: '<li>[x]',
25
+ '<li class="box_done task-list-item">
26
+ <input type="checkbox" class="task-list-item-checkbox" value="on" disabled checked>' }}
27
+ </div>
28
+
29
+ <div class="postNav cf">
30
+ {% if page.next.url %}
31
+ <a class="next{% if page.next.image %} image{% endif %}" href="{{ page.next.url | prepend: site.baseurl }}"><span>{{ page.next.date | date: "%B %Y" }}&nbsp;&raquo;</span></a>
32
+ {% endif %}
33
+ {% if page.previous.url %}
34
+ <a class="prev{% if page.previous.image %} image{% endif %}" href="{{ page.previous.url | prepend: site.baseurl }}"><span>&laquo;&nbsp;{{ page.previous.date | date: "%B %Y" }}</span></a>
35
+ {% endif %}
36
+ </div>
37
+ </article>
@@ -0,0 +1,14 @@
1
+ ---
2
+ layout: default
3
+ ---
4
+ <article class="post">
5
+
6
+ <header class="post-header">
7
+ <h1 class="post-title">{{ page.title | escape }}</h1>
8
+ </header>
9
+
10
+ <div class="post-content">
11
+ {{ content }}
12
+ </div>
13
+
14
+ </article>
@@ -0,0 +1,53 @@
1
+ // based on the jekyll-minima theme
2
+ @charset "utf-8";
3
+
4
+ // Define defaults for each variable.
5
+
6
+ $base-font-family: "Helvetica Neue", Helvetica, Arial, sans-serif !default;
7
+ $base-font-size: 16px !default;
8
+ $base-font-weight: 400 !default;
9
+ $small-font-size: $base-font-size * 0.875 !default;
10
+ $base-line-height: 1.5 !default;
11
+
12
+ $spacing-unit: 30px !default;
13
+
14
+ $text-color: #111 !default;
15
+ $background-color: #fdfdfd !default;
16
+ $brand-color: #2a7ae2 !default;
17
+
18
+ $grey-color: #828282 !default;
19
+ $grey-color-light: lighten($grey-color, 40%) !default;
20
+ $grey-color-dark: darken($grey-color, 25%) !default;
21
+
22
+ // Width of the content area
23
+ $content-width: 800px !default;
24
+
25
+ $on-palm: 600px !default;
26
+ $on-laptop: 800px !default;
27
+
28
+ // Use media queries like this:
29
+ // @include media-query($on-palm) {
30
+ // .wrapper {
31
+ // padding-right: $spacing-unit / 2;
32
+ // padding-left: $spacing-unit / 2;
33
+ // }
34
+ // }
35
+ @mixin media-query($device) {
36
+ @media screen and (max-width: $device) {
37
+ @content;
38
+ }
39
+ }
40
+
41
+ @mixin relative-font-size($ratio) {
42
+ font-size: $base-font-size * $ratio;
43
+ }
44
+
45
+ // Import partials.
46
+ @import
47
+ "minima/base",
48
+ "minima/layout",
49
+ "minima/syntax-highlighting",
50
+ "lab-notebook/base",
51
+ "lab-notebook/tables",
52
+ "lab-notebook/log"
53
+ ;