jekyll-theme-switch 0.1.1

Sign up to get free protection for your applications and to get access to all the features.
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA256:
3
+ metadata.gz: 3f91ae7534bf0e29a2ff7b72e9c885b01c8bcdd2e45cc8cd43028523be64aa4e
4
+ data.tar.gz: d6f1ca2f1b98ec9b1a16f4249ba943b963963b4ffc2b65b3b241efbb03a371d0
5
+ SHA512:
6
+ metadata.gz: 1d34d8d3d912de3e4560a45ac7714681d7cdcd6b4fe3a14ea588dd309783ca35e0481bc2a1c48c7eba119323e23826080776359339e18876575274d612afe054
7
+ data.tar.gz: 402498fef7f2050428619dbb3adeabbcc65661b29f91d20674d39b14cedfd367120d16031f24a945a4ca38eaccbd18404f8afec1fd6dc2a0dad2040dcb6f9177
@@ -0,0 +1,21 @@
1
+ The MIT License (MIT)
2
+
3
+ Copyright (c) 2020 Christian Luijten
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,52 @@
1
+ # jekyll-theme-switch
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`, your sass files in `_sass` and any other assets in `assets`.
4
+
5
+ To experiment with this code, add some sample content and run `bundle exec jekyll serve` – this directory is setup just like a Jekyll site!
6
+
7
+ TODO: Delete this and the text above, and describe your gem
8
+
9
+
10
+ ## Installation
11
+
12
+ Add this line to your Jekyll site's `Gemfile`:
13
+
14
+ ```ruby
15
+ gem "jekyll-theme-switch"
16
+ ```
17
+
18
+ And add this line to your Jekyll site's `_config.yml`:
19
+
20
+ ```yaml
21
+ theme: jekyll-theme-switch
22
+ ```
23
+
24
+ And then execute:
25
+
26
+ $ bundle
27
+
28
+ Or install it yourself as:
29
+
30
+ $ gem install jekyll-theme-switch
31
+
32
+ ## Usage
33
+
34
+ TODO: Write usage instructions here. Describe your available layouts, includes, sass and/or assets.
35
+
36
+ ## Contributing
37
+
38
+ 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.
39
+
40
+ ## Development
41
+
42
+ To set up your environment to develop this theme, run `bundle install`.
43
+
44
+ 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.
45
+
46
+ When your theme is released, only the files in `_layouts`, `_includes`, `_sass` and `assets` tracked with Git will be bundled.
47
+ To add a custom directory to your theme-gem, please edit the regexp in `jekyll-theme-switch.gemspec` accordingly.
48
+
49
+ ## License
50
+
51
+ The theme is available as open source under the terms of the [MIT License](https://opensource.org/licenses/MIT).
52
+
@@ -0,0 +1,4 @@
1
+ <time datetime="{{ include.date | date_to_xmlschema }}">{{ include.date | date: "%-d" }}
2
+ {% assign m = include.date | date: "%-m" %}
3
+ {% include month.html month=m %}
4
+ {{ include.date | date: "%Y" }}</time>
@@ -0,0 +1,16 @@
1
+ <div id="disqus_thread"></div>
2
+ <script>
3
+ var disqus_config = function () {
4
+ this.page.url = '{{ page.url | prepend: site.baseurl | prepend: site.url }}';
5
+ this.page.identifier = '{{ page.id }}';
6
+ };
7
+ (function () { // DON'T EDIT BELOW THIS LINE
8
+ var d = document, s = d.createElement('script');
9
+ s.src = 'https://{{ site.disqus_hostname }}.disqus.com/embed.js';
10
+ s.setAttribute('data-timestamp', +new Date());
11
+ (d.head || d.body).appendChild(s);
12
+ })();
13
+ </script>
14
+ <noscript>
15
+ Please enable JavaScript to view the <a href="https://disqus.com/?ref_noscript">comments powered by Disqus.</a>
16
+ </noscript>
@@ -0,0 +1,85 @@
1
+ <footer class="site-footer">
2
+
3
+ <div class="wrapper">
4
+
5
+ <h2 class="footer-heading">{{ site.title }}</h2>
6
+
7
+ <div class="footer-col-wrapper">
8
+ <div class="footer-col footer-col-1">
9
+ <ul class="contact-list">
10
+ <li>{{ site.title }}</li>
11
+ <li><a href="mailto:{{ site.email }}">{{ site.email }}</a></li>
12
+ </ul>
13
+ </div>
14
+
15
+ <div class="footer-col footer-col-2">
16
+ <ul class="social-media-list">
17
+ {% if site.gitlab_username %}
18
+ <li>
19
+ <a href="https://gitlab.com/{{ site.gitlab_username }}" rel="me">
20
+ <span class="icon icon--gitlab">
21
+ <svg viewBox="0 0 100 100">
22
+ <path d="m50 96h0l18.42-56.63h-36.82z" fill="#9c9b9b"/>
23
+ <path d="m5.79 39.39h0l-5.6 17.22a3.82 3.82 0 0 0 1.38 4.26l48.43 35.19z" fill="#ececec"/>
24
+ <path d="m5.8 39.39h25.8l-11.1-34.12a1.92 1.92 0 0 0-3.63 0z" fill="#9c9b9b"/>
25
+ <path d="m94.21 39.39h0l5.6 17.22a3.82 3.82 0 0 1-1.38 4.26l-48.43 35.13 44.2-56.64z" fill="#ececec"/>
26
+ <path d="m94.22 39.39h-25.8l11.08-34.12a1.92 1.92 0 0 1 3.63 0z" fill="#9c9b9b"/>
27
+ </svg>
28
+ </span>
29
+
30
+ <span class="username">gitlab.com/{{ site.gitlab_username }}</span>
31
+ </a>
32
+ </li>
33
+ {% endif %}
34
+
35
+ {% if site.github_username %}
36
+ <li>
37
+ <a href="https://github.com/{{ site.github_username }}" rel="me">
38
+ <span class="icon icon--github">
39
+ <svg viewBox="0 0 16 16">
40
+ <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"/>
41
+ </svg>
42
+ </span>
43
+
44
+ <span class="username">github.com/{{ site.github_username }}</span>
45
+ </a>
46
+ </li>
47
+ {% endif %}
48
+
49
+ {% if site.twitter_username %}
50
+ <li>
51
+ <a href="https://twitter.com/{{ site.twitter_username }}" rel="me">
52
+ <span class="icon icon--twitter">
53
+ <svg viewBox="0 0 16 16">
54
+ <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.809
55
+ c-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"/>
56
+ </svg>
57
+ </span>
58
+
59
+ <span class="username">twitter.com/{{ site.twitter_username }}</span>
60
+ </a>
61
+ </li>
62
+ {% endif %}
63
+ <li>
64
+ <a href="{{ "/feed.xml" | prepend: site.baseurl }}">
65
+ <span class="icon">
66
+ <svg viewBox="0 0 256 256">
67
+ <circle cx="68" cy="189" r="24" fill="#828282"/>
68
+ <path d="M160 213h-34a82 82 0 0 0 -82 -82v-34a116 116 0 0 1 116 116z" fill="#828282"/>
69
+ <path d="M184 213A140 140 0 0 0 44 73 V 38a175 175 0 0 1 175 175z" fill="#828282"/>
70
+ </svg>
71
+ </span>
72
+ <span class="rss-subscribe">subscribe via rss</span>
73
+ </a>
74
+ </li>
75
+ </ul>
76
+ </div>
77
+
78
+ <div class="footer-col footer-col-3">
79
+ <p class="text">{{ site.description }}</p>
80
+ </div>
81
+ </div>
82
+
83
+ </div>
84
+
85
+ </footer>
@@ -0,0 +1,16 @@
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>{% if page.title %}{{ page.title }}{% else %}{{ site.title }}{% endif %}</title>
7
+ <meta name="description" content="{% if page.excerpt %}{{ page.excerpt | strip_html | strip_newlines | truncate: 160 }}{% else %}{{ site.description }}{% endif %}">
8
+
9
+ <link rel="stylesheet" href="{{ "/assets/css/jekyll-theme-switch.css" | prepend: site.baseurl }}">
10
+ {% if page.previous %}<link rel="prev" href="{{ page.previous.url | absolute_url }}">{% endif %}
11
+ <link rel="canonical" href="{{ page.url | replace:'index.html','' | prepend: site.baseurl | prepend: site.url }}">
12
+ {% if page.next %}<link rel="next" href="{{ page.next.url | absolute_url }}">{% endif %}
13
+ <link rel="alternate" type="application/rss+xml" title="{{ site.title }}" href="{{ "/feed.xml" | prepend: site.baseurl | prepend: site.url }}" />
14
+ <link rel="webmention" href="https://webmention.io/{{ site.hostname }}/webmention" />
15
+ <link rel="pingback" href="https://webmention.io/{{ site.hostname }}/xmlrpc" />
16
+ </head>
@@ -0,0 +1,27 @@
1
+ <header class="site-header">
2
+
3
+ <div class="wrapper">
4
+
5
+ <a class="site-title" href="{{ site.baseurl }}/">{{ site.title }}</a>
6
+
7
+ <nav class="site-nav">
8
+ <a href="#" class="menu-icon">
9
+ <svg viewBox="0 0 18 15">
10
+ <path fill="#424242" d="M18,1.484c0,0.82-0.665,1.484-1.484,1.484H1.484C0.665,2.969,0,2.304,0,1.484l0,0C0,0.665,0.665,0,1.484,0 h15.031C17.335,0,18,0.665,18,1.484L18,1.484z"/>
11
+ <path fill="#424242" d="M18,7.516C18,8.335,17.335,9,16.516,9H1.484C0.665,9,0,8.335,0,7.516l0,0c0-0.82,0.665-1.484,1.484-1.484 h15.031C17.335,6.031,18,6.696,18,7.516L18,7.516z"/>
12
+ <path fill="#424242" d="M18,13.516C18,14.335,17.335,15,16.516,15H1.484C0.665,15,0,14.335,0,13.516l0,0 c0-0.82,0.665-1.484,1.484-1.484h15.031C17.335,12.031,18,12.696,18,13.516L18,13.516z"/>
13
+ </svg>
14
+ </a>
15
+
16
+ <div class="trigger">
17
+ {%- for page in site.pages -%}
18
+ {% if page.site_header %}
19
+ <a class="page-link" href="{{ page.url | prepend: site.baseurl }}">{{ page.site_header }}</a>
20
+ {%- endif -%}
21
+ {% endfor %}
22
+ </div>
23
+ </nav>
24
+
25
+ </div>
26
+
27
+ </header>
@@ -0,0 +1,8 @@
1
+ <div class="unit one-fifth hide-on-mobiles">
2
+ <aside>
3
+ {% for section in site.data.holidays %}
4
+ <h4>{{ section.title }}</h4>
5
+ {% include holidays_ul.html items=section.docs %}
6
+ {% endfor %}
7
+ </aside>
8
+ </div>
@@ -0,0 +1,21 @@
1
+ {% assign items = include.items %}
2
+
3
+ <ul>
4
+ {% for item in items %}
5
+ {% assign item_url = item | prepend:"/holidays/" | append:"/" %}
6
+
7
+ {% if item_url == page.url %}
8
+ {% assign c = "current" %}
9
+ {% else %}
10
+ {% assign c = "" %}
11
+ {% endif %}
12
+
13
+ {% for p in site.holidays %}
14
+ {% if p.url == item_url %}
15
+ <li class="{{ c }}"><a href="{{ p.url }}">{{ p.title }}</a></li>
16
+ {% break %}
17
+ {% endif %}
18
+ {% endfor %}
19
+
20
+ {% endfor %}
21
+ </ul>
@@ -0,0 +1,14 @@
1
+ {% case include.month %}
2
+ {% when '1' %}januari
3
+ {% when '2' %}februari
4
+ {% when '3' %}maart
5
+ {% when '4' %}april
6
+ {% when '5' %}mei
7
+ {% when '6' %}juni
8
+ {% when '7' %}juli
9
+ {% when '8' %}augustus
10
+ {% when '9' %}september
11
+ {% when '10' %}oktober
12
+ {% when '11' %}november
13
+ {% when '12' %}december
14
+ {% endcase %}
@@ -0,0 +1,7 @@
1
+ <span class="post-meta">
2
+ {% include date.html date=include.post.date %}
3
+ door {{ include.post.author | default: site.author }}
4
+ {% if include.post.categories.size > 0 %} in {{ include.post.categories | categorylinks | join: '/' }}{% endif %}
5
+ {% if include.post.tags.size > 0 %} · tags: {{ include.post.tags | taglinks | join: ', ' }}{% endif %}
6
+ {% if include.post.meta %} · {{ include.post.meta }}{% endif %}
7
+ </span>
@@ -0,0 +1,29 @@
1
+ {% assign holidays = site.data.holidays | map: 'docs' | join: ',' | split: ',' %}
2
+
3
+ {% for holiday in holidays %}
4
+ {% assign holiday_url = holiday | prepend:"/holidays/" | append:"/" %}
5
+ {% if holiday_url == page.url %}
6
+ <div class="section-nav">
7
+ <div class="align-left">
8
+ {% if forloop.first %}
9
+ <span class="prev disabled">Back</span>
10
+ {% else %}
11
+ {% assign previous = forloop.index0 | minus: 1 %}
12
+ {% assign previous_page = holidays[previous] | prepend:"/holidays/" | append:"/" %}
13
+ <a href="{{ previous_page }}" class="prev">Back</a>
14
+ {% endif %}
15
+ </div>
16
+ <div class="align-right">
17
+ {% if forloop.last %}
18
+ <span class="next disabled">Next</span>
19
+ {% else %}
20
+ {% assign next = forloop.index0 | plus: 1 %}
21
+ {% assign next_page = holidays[next] | prepend:"/holidays/" | append:"/" %}
22
+ <a href="{{ next_page }}" class="next">Next</a>
23
+ {% endif %}
24
+ </div>
25
+ </div>
26
+ <div class="clear"></div>
27
+ {% break %}
28
+ {% endif %}
29
+ {% endfor %}
@@ -0,0 +1,8 @@
1
+ <div style="padding:75% 0 0 0;position:relative;">
2
+ <iframe title="Vimeo video player"
3
+ src="https://player.vimeo.com/video/{{ vimeo_id }}?portrait=0"
4
+ style="position:absolute;top:0;left:0;width:100%;height:100%;"
5
+ allow="autoplay; fullscreen"
6
+ frameborder="0" allowfullscreen></iframe>
7
+ </div>
8
+ <script src="https://player.vimeo.com/api/player.js"></script>
@@ -0,0 +1,7 @@
1
+
2
+ <div class='youtube-embedder'>
3
+ <iframe title="YouTube video player"
4
+ width="640" height="390"
5
+ src="https://www.youtube-nocookie.com/embed/{{ youtube_id }}"
6
+ frameborder="0" allowfullscreen></iframe>
7
+ </div>
@@ -0,0 +1,15 @@
1
+ ---
2
+ layout: default
3
+ ---
4
+ <div class="archives">
5
+ <div>
6
+ <h1 class="title">Archieven</h1>
7
+ </div>
8
+ <div>
9
+ <ul>
10
+ {% for year in page.years reversed %}
11
+ <li><time><a href="{{ year[0] }}"><strong>{{ year[0] }}</strong><span class="count">{{ year[1] | size }}</span></a></time></li>
12
+ {% endfor %}
13
+ </ul>
14
+ </div>
15
+ </div>
@@ -0,0 +1,24 @@
1
+ ---
2
+ layout: default
3
+ ---
4
+
5
+ <div class="category-index">
6
+ <h1 class="page-heading">{{ page.title | capitalize | replace: "Ij", "IJ" }}</h1>
7
+
8
+ <ul class="post-list">
9
+ {% for post in page.posts %}
10
+ <li {% if post.lead_image %}style="background-image: linear-gradient(90deg, rgba(255,255,255,1) 50%, rgba(255,255,255,0.7) 80%), url('{{ post.lead_image }}'); background-size: contain;"{% endif %}>
11
+
12
+ {% include post_meta.html post=post %}
13
+
14
+ <h2>
15
+ <a class="post-link" href="{{ post.url | prepend: site.baseurl }}">{{ post.title }}</a>
16
+ </h2>
17
+ <div>
18
+ {{ post.excerpt }}
19
+ </div>
20
+ <a href="{{ post.url | prepend: site.baseurl }}">lees verder</a>
21
+ </li>
22
+ {% endfor %}
23
+ </ul>
24
+ </div>
@@ -0,0 +1,21 @@
1
+ <!DOCTYPE html>
2
+ <html>
3
+
4
+ {% include head.html %}
5
+
6
+ <body>
7
+
8
+ {% include header.html %}
9
+
10
+ <div class="page-content">
11
+ <div class="wrapper">
12
+ {{ content }}
13
+ </div>
14
+ </div>
15
+
16
+ {% include footer.html %}
17
+
18
+ <script id="dsq-count-scr" src="//{{ site.disqus_hostname }}.disqus.com/count.js" async></script>
19
+ </body>
20
+
21
+ </html>
@@ -0,0 +1,19 @@
1
+ ---
2
+ layout: default
3
+ ---
4
+ <div class="post">
5
+
6
+ <header class="post-header">
7
+ <h1 class="post-title">{{ page.title }}</h1>
8
+ {% include post_meta.html post=page %}
9
+ </header>
10
+
11
+ <article class="post-content">
12
+ {{ content }}
13
+ </article>
14
+
15
+ {% include section_nav.html %}
16
+
17
+ <!-- {% include holidays_contents.html %} -->
18
+
19
+ </div>
@@ -0,0 +1,52 @@
1
+ ---
2
+ layout: default
3
+ ---
4
+
5
+ <div class="home">
6
+
7
+ <h1 class="page-heading">Posts</h1>
8
+
9
+ <ul class="post-list">
10
+ {% assign first = true %}
11
+ {% for post in paginator.posts %}
12
+ <li {% if post.lead_image %}style="background-image: linear-gradient(90deg, rgba(255,255,255,1) 50%, rgba(255,255,255,0.7) 80%), url('{{ post.lead_image }}'); background-size: contain;"{% endif %}>
13
+ <article>
14
+ {% include post_meta.html post=post %}
15
+
16
+ <h2>
17
+ <a class="post-link" href="{{ post.url | prepend: site.baseurl }}">{{ post.title }}</a>
18
+ </h2>
19
+ {% if paginator.page == 1 and first %}
20
+ <div>
21
+ {{ post.content }}
22
+ {% assign first = false %}
23
+ </div>
24
+ {% else %}
25
+ <div>
26
+ {{ post.excerpt }}
27
+ </div>
28
+ <a class="read-more" href="{{ post.url | prepend: site.baseurl }}">lees verder</a>
29
+ {% endif %}
30
+ </article>
31
+ </li>
32
+ {% endfor %}
33
+ </ul>
34
+
35
+ <!-- Pagination links -->
36
+ <div class="pagination">
37
+ {% if paginator.previous_page %}
38
+ <a href="{{ paginator.previous_page_path }}" class="previous button">Vorige</a>
39
+ {% else %}
40
+ <span class="previous button">Vorige</span>
41
+ {% endif %}
42
+ <span class="page_number ">Pagina: {{ paginator.page }} van {{ paginator.total_pages }}</span>
43
+ {% if paginator.next_page %}
44
+ <a href="{{ paginator.next_page_path }}" class="next button">Volgende</a>
45
+ {% else %}
46
+ <span class="next button">Volgende</span>
47
+ {% endif %}
48
+ </div>
49
+
50
+
51
+
52
+ </div>