jekyll-theme-isabelline 0.1.6

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml ADDED
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA256:
3
+ metadata.gz: 8be1dedd76fa1d4652694ed6bc2236ced9ea49cb00f76a752df2e8a989ab204c
4
+ data.tar.gz: 8740b4e636761de14e13eeaadb74673f50f462687db1aa0e30c9441d686bda46
5
+ SHA512:
6
+ metadata.gz: 26ce8fe04380f1c4649ce5b163c3d1658918f72101354af0957152cce2f4510936aadb9d5e36af9a26d3913d9a5ff3e61950289bbda0fedbbdca4adcb08e2f59
7
+ data.tar.gz: 63d863940b9252cbf5b04b01169e27bf097f28b17ab8d1f2c7d29bd869ff293896458785c4aa964beb7f24294f0adaedfd895d0311996ade8a9a36ffed47a0ad
data/CHANGELOG.md ADDED
@@ -0,0 +1,6 @@
1
+ # CHANGELOG
2
+
3
+ - *Ver 0.1.x*: Initial development versions. Never released.
4
+ - *Ver 0.2.x*: Public beta releases. Primarily for internal use.
5
+ - *Ver 0.3.x*: Public beta releases for general use.
6
+ - *Ver 1.0.0*: General release. (ETA 9/1/2019)
data/LICENSE.txt ADDED
@@ -0,0 +1,21 @@
1
+ The MIT License (MIT)
2
+
3
+ Copyright (c) 2019
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.
data/README.md ADDED
@@ -0,0 +1,56 @@
1
+ # jekyll-theme-isabelline
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-isabelline"
16
+ ```
17
+
18
+ And add this line to your Jekyll site's `_config.yml`:
19
+
20
+ ```yaml
21
+ theme: jekyll-theme-isabelline
22
+ ```
23
+
24
+ And then execute:
25
+
26
+ $ bundle
27
+
28
+ Or install it yourself as:
29
+
30
+ $ gem install jekyll-theme-isabelline
31
+
32
+ ## Usage
33
+
34
+ This theme supports pages, posts and blogs. Unlike posts, blogs can be setup to not show the date of the post in the article's URL.
35
+
36
+ Theme can be configured by tweaking `_sass/_config.scss`. To do so you need to first copy it from [github]() and place in `_sass/_config.scss`.
37
+
38
+ All colors are derived from `$hue`. You can tweak individual colors to your liking further down the config file.
39
+
40
+ ## Contributing
41
+
42
+ Bug reports and pull requests are welcome on GitHub at https://github.com/rzen/jekyll-theme-isabelline. 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.
43
+
44
+ ## Development
45
+
46
+ To set up your environment to develop this theme, run `bundle install`.
47
+
48
+ 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.
49
+
50
+ When your theme is released, only the files in `_layouts`, `_includes`, `_sass` and `assets` tracked with Git will be bundled.
51
+ To add a custom directory to your theme-gem, please edit the regexp in `jekyll-theme-isabelline.gemspec` accordingly.
52
+
53
+ ## License
54
+
55
+ The theme is available as open source under the terms of the [MIT License](https://opensource.org/licenses/MIT).
56
+
@@ -0,0 +1,19 @@
1
+ <footer>
2
+ <nav>
3
+ <p>
4
+ <span class="copy">&copy;</span> {{ 'now' | date: '%Y' }} {{ site.copyright_owner.full_name }}.
5
+ <a href="/legal/">MIT License</a>.
6
+ <a class="edit" href="{{ site.edit_url | append: page.path }}">Edit</a>.
7
+ </p>
8
+ </nav>
9
+ <nav>
10
+ <p class="mode"></p>
11
+ </nav>
12
+ <!-- <style>
13
+ @import url('https://fonts.googleapis.com/css?family=Bree+Serif');
14
+ </style> -->
15
+ </footer>
16
+
17
+ <div id="snackbar">Loading...</div>
18
+ <!-- <script src='/assets/js/slides.js'></script> -->
19
+ <script src='/assets/js/clipboard.js'></script>
@@ -0,0 +1,11 @@
1
+ {% if site.google_analytics_token %}
2
+ <!-- Google Analytics: change UA-XXXXX-X to be your site's ID. -->
3
+ <script>
4
+ (function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
5
+ (i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
6
+ m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
7
+ })(window,document,'script','//www.google-analytics.com/analytics.js','ga');
8
+ ga('create', '{{ site.google_analytics_token }}', 'auto');
9
+ ga('send', 'pageview');
10
+ </script>
11
+ {% endif %}
@@ -0,0 +1,22 @@
1
+ <meta charset="utf-8" />
2
+ <meta http-equiv="X-UA-Compatible" content="IE=edge">
3
+
4
+ <meta name="viewport" content="width=device-width, initial-scale=1">
5
+
6
+ {% if page.description %}
7
+ <meta name="description" content="{{ page.description }}" />
8
+ {% else if site.description %}
9
+ <meta name="description" content="{{ site.description }}" />
10
+ {% endif %}
11
+
12
+ <!-- favicons & more -->
13
+ <link rel="shortcut icon" href="{{ site.baseurl }}/assets/favicon/favicon.ico">
14
+ <link rel="apple-touch-icon" href="{{ site.baseurl }}/assets/favicon/iphone.png">
15
+ <link rel="apple-touch-icon" sizes="180x180" href="{{ site.baseurl }}/assets/favicon/iphone-6plus.png">
16
+ <link rel="apple-touch-icon" sizes="152x152" href="{{ site.baseurl }}/assets/favicon/ipad-retina.png">
17
+ <link rel="apple-touch-icon" sizes="167x167" href="{{ site.baseurl }}/assets/favicon/ipad-pro.png">
18
+
19
+ <!-- feeds -->
20
+ <link rel="alternate" type="application/rss+xml" title="RSS" href="{{ site.baseurl }}/feed.xml">
21
+
22
+ <!-- TODO: should add more extensive yet sensible rel meta -->
@@ -0,0 +1,11 @@
1
+ <head>
2
+ {% include head-meta.html %}
3
+ <title>
4
+ {% if page.title == "Home" %}
5
+ {{ site.title }} &middot; {{ site.tagline }}
6
+ {% else %}
7
+ {{ page.title }} &middot; {{ site.title }}
8
+ {% endif %}
9
+ </title>
10
+ <link rel="stylesheet" href="{{ site.baseurl }}/assets/css/style.css">
11
+ </head>
@@ -0,0 +1,15 @@
1
+ <header>
2
+ <nav>
3
+ <ul>
4
+ <li><a href="{{ site.baseurl | append: '/' }}">Home</a>
5
+ {% if jekyll.environment == 'local' %}
6
+ <li><a href="{{ site.baseurl | append: '/private/' }}">Private</a>
7
+ {% endif %}
8
+ {% for page in site.pages | sort: 'sort_order', 'title' %}
9
+ {% if page.categories contains 'global' %}
10
+ <li><a href="{{ site.baseurl | append: page.url }}">{{ page.title }}</a>
11
+ {% endif %}
12
+ {% endfor %}
13
+ </ul>
14
+ </nav>
15
+ </header>
@@ -0,0 +1,17 @@
1
+ {% capture imagePath %}{{ page.id | split: "/" | last }}/{{ include.name }}{% endcapture %}
2
+
3
+ {% if include.frame == false %}
4
+ {% assign frame = false %}
5
+ {% else %}
6
+ {% assign frame = true %}
7
+ {% endif %}
8
+
9
+ <figure class="figure {% if include.caption %}figure-caption{% endif %} {% if frame %}figure--frame{% endif %}">
10
+ <div class="figure__inner">
11
+ <img Xwidth="100%" class="figure__image" src="/assets/blog/{{ imagePath }}" {% if include.alt %} alt="{{ include.alt }}" {% endif %} {% if include.width %} width="{{ include.width }}" {% endif %}/>
12
+
13
+ {% if include.caption %}
14
+ <figcaption class="figure__caption">{{ include.caption }} {% if include.source %}<a class="source" href="{{ include.source }}" title="{{ include.source }}">Source</a>.{% endif %}</figcaption>
15
+ {% endif %}
16
+ </div>
17
+ </figure>
@@ -0,0 +1,35 @@
1
+ {% if include.title == blank %}
2
+ <h1>{{ include.posts | size }} blogs since {{ include.posts | sort: 'date' | map: 'date' | compact | first | date: '%Y' }}</h1>
3
+ {% else if %}
4
+ <h1>{{ include.title }}</h1>
5
+ {% endif %}
6
+
7
+ {% assign prev_year = 'first run' %}
8
+ {% assign sorted_posts = include.posts | sort: "date" | reverse %}
9
+ {% for post in sorted_posts %}
10
+
11
+ {% assign current_year = post.date | date: "%Y" %}
12
+
13
+ {% if current_year != prev_year %}
14
+ {% if prev_year != 'first run' %}
15
+ </ul>
16
+ {% endif %}
17
+ {% assign prev_year = current_year %}
18
+ <h2 class="year">{{ current_year | default: '<em>undated</em>' }}</h2>
19
+ <ul class="index">
20
+ {% endif %}
21
+
22
+ <li>
23
+ <a href="{{ site.baseurl }}{{ post.url }}">{{ post.title }}</a>
24
+ <span class="posted">{{ post.date | date: "%b %-d" }}</span>
25
+ {% if jekyll.environment == "local" %}
26
+ <span class="badge collection {{ post.collection }}">{{ post.collection }}</span>
27
+ {% if post.draft %}
28
+ <span class="badge draft">draft</span>
29
+ {% endif %}
30
+ {% endif %}
31
+ </li>
32
+
33
+ {% if current_year != date %}
34
+ {% endif %}
35
+ {% endfor %}
Binary file
@@ -0,0 +1,15 @@
1
+ <!DOCTYPE html>
2
+ <html lang="{{page.lang | default:"en"}}">
3
+ {% include head.html %}
4
+ <body>
5
+ {% include header.html %}
6
+ {{ content
7
+ | replace: '<!--qed-->', ' <span class=qed>&#8718;</span>'
8
+ | replace: '\=\>', '&#8658;'
9
+ }}
10
+ {% include footer.html %}
11
+ {% include google_analytics.html %}
12
+ <!-- Page generated {{ site.time }} -->
13
+ <!-- Page ID {{ page.id }} -->
14
+ </body>
15
+ </html>
@@ -0,0 +1,8 @@
1
+ ---
2
+ layout: base
3
+ ---
4
+ <main>
5
+ <article>
6
+ {{ content }}
7
+ </article>
8
+ </main>
@@ -0,0 +1,9 @@
1
+ ---
2
+ layout: base
3
+ ---
4
+ <main>
5
+ <article>
6
+ <h1>{{ page.title }}</h1>
7
+ {{ content }}
8
+ </article>
9
+ </main>
@@ -0,0 +1,48 @@
1
+ ---
2
+ layout: base
3
+ ---
4
+ <main>
5
+
6
+ <h1>{{ page.tag }}</h1>
7
+
8
+ <table>
9
+ <tbody>
10
+
11
+ <tr>
12
+ <td width="60%" cellpadding=10>
13
+
14
+ {% assign prev_year = 'first run' %}
15
+ {% assign sorted_posts = page.posts | sort: "date" | reverse %}
16
+ {% for post in sorted_posts %}
17
+
18
+ {% assign current_year = post.date | date: "%Y" %}
19
+
20
+ {% if current_year != prev_year %}
21
+ {% if prev_year != 'first run' %}
22
+ </ul>
23
+ {% endif %}
24
+ {% assign prev_year = current_year %}
25
+ <h2 class="year">{{ current_year | default: '<em>undated</em>' }}</h2>
26
+ <ul class="index">
27
+ {% endif %}
28
+
29
+ <li><a href="{{ site.baseurl }}{{ post.url }}">{{ post.title }}</a><span class="posted">{{ post.date | date: "%b %-d" }}</span></li>
30
+
31
+ {% if current_year != date %}
32
+ {% endif %}
33
+
34
+ {% endfor %}
35
+
36
+ </td>
37
+
38
+ <td>
39
+ <div id="tag-cloud">
40
+ {{ site | tag_cloud }}
41
+ </div>
42
+ </td>
43
+ </tr>
44
+
45
+ </tbody>
46
+ </table>
47
+ </main>
48
+
@@ -0,0 +1,81 @@
1
+ // config
2
+
3
+ // 0° red
4
+ // 60° yellow
5
+ // 120° green
6
+ // 180° cyan
7
+ // 240° blue
8
+
9
+ // Isabelline
10
+ // https://html-color.codes/hex/f4f0ec
11
+ // hsl(30, 26.67%, 94.12%)
12
+
13
+ // base hue
14
+ $hue: 30;
15
+
16
+ // TODO
17
+ $drop-caps: false;
18
+
19
+ // layout
20
+ $mobile-breakpoint-max-width: 500px;
21
+ $tablet-breakpoint-max-width: 800px;
22
+ $desktop-breakpoint-min-width: 801px;
23
+
24
+ // color theming
25
+ $link-color: hsl($hue,50,30);
26
+ $link-active-color: lighten($link-color,10%);
27
+ $link-hover-color: lighten($link-color,10%);
28
+ $link-visited-color: darken($link-color,10%);
29
+
30
+ $selection-color: hsl($hue,75,90);
31
+ $selection-background-color: hsl($hue,100,30);
32
+
33
+ $body-color: black;
34
+ $body-background-color: hsl($hue,3,96); // hsl($hue,25,95);
35
+
36
+ // see the bottom of _layouts/base.html
37
+ // @import url('https://fonts.googleapis.com/css?family=Bree+Serif');
38
+
39
+ $sans-serif: Helvetica, Arial, sans-serif;
40
+ $serif: xGeorgia, Times, serif;
41
+
42
+ $header-serif: "Bree Serif",$serif;
43
+ $body-serif: "Bree Serif",$serif;
44
+ $header-color: darken($body-background-color,80%);
45
+ $header-link-color: darken($body-background-color,70%);
46
+
47
+ $main-link-color: darken($body-background-color,80%);
48
+ $main-heading-color: hsl($hue,50,30);
49
+ $main-aside-color: hsl($hue,70,30);
50
+ $main-blockquote-color: hsl($hue,70,30);
51
+ $main-blockquote-before-color: hsl($hue,50,80);
52
+ $main-index-color: hsl($hue,20,50);
53
+ $main-dropcaps-color: hsl($hue,90,50);
54
+ $main-dropcaps-font-size: 3em;
55
+ $main-table-header-bg-color: darken($body-background-color,10%);
56
+
57
+
58
+ $footer-color: hsl($hue,10,50);
59
+ $footer-link-color: lighten($footer-color,10%);
60
+ $footer-serif: $serif;
61
+
62
+
63
+ //
64
+ $local-google-fonts: true; // TODO
65
+
66
+ /* latin-ext */
67
+ @font-face {
68
+ font-family: 'Bree Serif';
69
+ font-style: normal;
70
+ font-weight: 400;
71
+ src: local('Bree Serif Regular'), local('BreeSerif-Regular'), url(../fonts/BreeSerif-Regular-Pw.woff2) format('woff2');
72
+ unicode-range: U+0100-024F, U+0259, U+1E00-1EFF, U+2020, U+20A0-20AB, U+20AD-20CF, U+2113, U+2C60-2C7F, U+A720-A7FF;
73
+ }
74
+ /* latin */
75
+ @font-face {
76
+ font-family: 'Bree Serif';
77
+ font-style: normal;
78
+ font-weight: 400;
79
+ src: local('Bree Serif Regular'), local('BreeSerif-Regular'), url(../fonts/BreeSerif-Regular.woff2) format('woff2');
80
+ unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
81
+ }
@@ -0,0 +1,9 @@
1
+ @function complement($color,$offset: 180) {
2
+ @return ($color+$offset)%360
3
+ }
4
+
5
+ @mixin border-radius($radius: 0.5em) {
6
+ -webkit-border-radius: $radius;
7
+ -moz-border-radius: $radius;
8
+ border-radius: $radius;
9
+ }