noir-for-jekyll 1.0.0 → 1.0.1

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: ea555c23968e1afb5aae03e0ed9c1c58ad6caab9159e8f46370980372219738a
4
- data.tar.gz: 7503abe416c8f70694dfa3f0a6b1e61c4afe336f8c0db84b373611eb20d95e8a
3
+ metadata.gz: 4c40a33e5605818d5c6dda4ea67b99bbfdc744115f054a5d35fa6d71d39b4558
4
+ data.tar.gz: 9d4849b2e5f639251516595930b2848010bd644a395f2e2f7a9a7dd6eb3971bd
5
5
  SHA512:
6
- metadata.gz: 4d5ca9dd19874c5a5cfdcb3ffcec48e652b2754ce688d8af8c357f753c02318590d71a01b4225358828905e202bc6451dc4b044423157acb221fdfc02f9621ac
7
- data.tar.gz: 3b78615b1be436b43aa5458a0eaa99fe87797b85389092747c8cf0b263863edeaa92c3f5c28acf7b6e13eb14dec15afb269d9980968616645eb88b478c6cd13d
6
+ metadata.gz: 04c0d0fcc89184977eb2dd25eaf7d96201defd226833cb1d7d888d224af2f0d4b14389696a3a6b0264a4c6bd432fa25e7603dc2a7bed40ace5ebb268447f208e
7
+ data.tar.gz: 2214139498464f034dfe41cc3d709955db541dacb98047123eac5b955704d4beeb056586176a96b936d7d6453c6e5f415c98ed4b88ac48a59ecab8ea16897b3c
data/LICENSE.md CHANGED
@@ -1,9 +1,9 @@
1
- # Released under MIT License
2
-
3
- Copyright (c) 2020 Victor Johnson.
4
-
5
- Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
6
-
7
- The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
8
-
1
+ # Released under MIT License
2
+
3
+ Copyright (c) 2020 Victor Johnson.
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
6
+
7
+ The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
8
+
9
9
  THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
data/README.md CHANGED
@@ -1,9 +1,21 @@
1
- # Released under MIT License
2
-
3
- Copyright (c) 2020 Victor Johnson.
4
-
5
- Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
6
-
7
- The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
8
-
9
- THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
1
+ ### Demo
2
+
3
+ You can see a live demo of Noir: [https://noir.essentialenemy.com](https://noir.essentialenemy.com)
4
+
5
+ ### Installation
6
+
7
+ First you will need to setup your Ruby environment and add the Jekyll and Bundler gems to it.
8
+
9
+ Detailed instructions for getting Ruby setup can be found [here](https://www.ruby-lang.org/en/documentation/installation/) and the installation guide for Jekyll can be found [here](https://jekyllrb.com/docs/installation/). Bundler makes managing Jekyll sites a lot easier and you can learn how to install that gem [here](https://bundler.io) (this theme’s installation guide uses Bundler).
10
+
11
+ Once that’s done it’s time for the fun part. Don’t even bother with the `jekyll new site` command, I am going to provide a more foolproof way so that you don’t wind up in dependencies hell.
12
+
13
+ 1. Download the [zip archive](https://github.com/essentialenemy/noir/archive/master.zip) of this repository and copy the files into a new directory where you want your site’s configuration files to live.
14
+ 2. In your terminal or command prompt `cd` into the new directory you just made for those files.
15
+ 3. Run the command: `bundle install` as this will install all of the dependencies I have named in `Gemfile.lock`.
16
+ 4. Test that the site can be built with no issues, run the command: `bundle exec jekyll serve` and view the site by navigating to `127.0.0.1:4000` in your web browser.
17
+ 5. If all is working fine you can begin customizing your site by making changes to `_config.yml`.
18
+
19
+ If you have any problems that arise I am glad to help you as much as I can. You can open a [new issue](https://github.com/essentialenemy/noir/issues), reach out to me on [Twitter](https://twitter.com/essentialenemy) or email me at the address found inside of `_config.yml`. I welcome your feedback and requests as well.
20
+
21
+ Thank you for your interest in Noir!
data/_includes/head.html CHANGED
@@ -1,19 +1,19 @@
1
- <head>
2
- <meta charset="UTF-8">
3
- <meta name="viewport" content="width=device-width, initial-scale=1.0">
4
-
5
- <title>
6
- {% if page.title == "Home" %}
7
- {{ site.title }}{% if site.tagline %} &middot; {{ site.tagline }}{% endif %}
8
- {% else %}
9
- {{ page.title }} &middot; {{ site.title }}
10
- {% endif %}
11
- </title>
12
-
13
- <link rel="stylesheet" href="{{ site.baseurl }}/styles.css">
14
- <link rel="apple-touch-icon-precomposed" sizes="144x144" href="{{ site.baseurl }}/assets/apple-touch-icon-precomposed.png">
15
- <link rel="shortcut icon" href="{{ site.baseurl }}/assets/favicon.ico">
16
- <link rel="alternate" type="application/atom+xml" title="{{ site.title }}" href="{{ site.baseurl }}/atom.xml">
17
-
18
- {% seo title=false %}
19
- </head>
1
+ <head>
2
+ <meta charset="UTF-8">
3
+ <meta name="viewport" content="width=device-width, initial-scale=1.0">
4
+
5
+ <title>
6
+ {% if page.title == "Home" %}
7
+ {{ site.title }}{% if site.tagline %} &middot; {{ site.tagline }}{% endif %}
8
+ {% else %}
9
+ {{ page.title }} &middot; {{ site.title }}
10
+ {% endif %}
11
+ </title>
12
+
13
+ <link rel="stylesheet" href="{{ site.baseurl }}/styles.css">
14
+ <link rel="apple-touch-icon-precomposed" sizes="144x144" href="{{ site.baseurl }}/assets/apple-touch-icon-precomposed.png">
15
+ <link rel="shortcut icon" href="{{ site.baseurl }}/assets/favicon.ico">
16
+ <link rel="alternate" type="application/atom+xml" title="{{ site.title }}" href="{{ site.baseurl }}/atom.xml">
17
+
18
+ {% seo title=false %}
19
+ </head>
@@ -1,38 +1,38 @@
1
- <!doctype html>
2
- <html lang="en">
3
-
4
- {% include head.html %}
5
-
6
- <body>
7
-
8
- <div class="container content">
9
- <header class="masthead">
10
- <h3 class="masthead-title">
11
- <a href="{{ site.baseurl }}/" title="Home">{{ site.title }}</a>
12
- <small>{{ site.tagline }}</small>
13
- </h3>
14
- </header>
15
-
16
- <main>
17
- {{ content }}
18
- </main>
19
-
20
- <footer class="footer">
21
- <small>
22
- Copyright &copy; <time datetime="{{ site.time | date_to_xmlschema }}">{{ site.time | date: '%Y' }}</time>. Change this text in _layouts/default.html
23
- </small>
24
- </footer>
25
- </div>
26
-
27
- {% if site.ga_analytics %}
28
- <script>
29
- (function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
30
- (i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
31
- m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
32
- })(window,document,'script','https://www.google-analytics.com/analytics.js','ga');
33
- ga('create', '{{ site.ga_analytics }}', 'auto');
34
- ga('send', 'pageview');
35
- </script>
36
- {% endif %}
37
- </body>
38
- </html>
1
+ <!doctype html>
2
+ <html lang="en">
3
+
4
+ {% include head.html %}
5
+
6
+ <body>
7
+
8
+ <div class="container content">
9
+ <header class="masthead">
10
+ <h3 class="masthead-title">
11
+ <a href="{{ site.baseurl }}/" title="Home">{{ site.title }}</a>
12
+ <small>{{ site.tagline }}</small>
13
+ </h3>
14
+ </header>
15
+
16
+ <main>
17
+ {{ content }}
18
+ </main>
19
+
20
+ <footer class="footer">
21
+ <small>
22
+ Copyright &copy; <time datetime="{{ site.time | date_to_xmlschema }}">{{ site.time | date: '%Y' }}</time>. Change this text in _layouts/default.html
23
+ </small>
24
+ </footer>
25
+ </div>
26
+
27
+ {% if site.ga_analytics %}
28
+ <script>
29
+ (function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
30
+ (i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
31
+ m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
32
+ })(window,document,'script','https://www.google-analytics.com/analytics.js','ga');
33
+ ga('create', '{{ site.ga_analytics }}', 'auto');
34
+ ga('send', 'pageview');
35
+ </script>
36
+ {% endif %}
37
+ </body>
38
+ </html>
data/_layouts/page.html CHANGED
@@ -1,8 +1,8 @@
1
- ---
2
- layout: default
3
- ---
4
-
5
- <article class="page">
6
- <h1 class="page-title">{{ page.title }}</h1>
7
- {{ content }}
8
- </article>
1
+ ---
2
+ layout: default
3
+ ---
4
+
5
+ <article class="page">
6
+ <h1 class="page-title">{{ page.title }}</h1>
7
+ {{ content }}
8
+ </article>
data/_layouts/post.html CHANGED
@@ -1,25 +1,25 @@
1
- ---
2
- layout: default
3
- ---
4
-
5
- <article class="post">
6
- <h1 class="post-title">{{ page.title }}</h1>
7
- <time datetime="{{ page.date | date_to_xmlschema }}" class="post-date">{{ page.date | date_to_string }}</time>
8
- {{ content }}
9
- </article>
10
-
11
- {% if site.related_posts != empty %}
12
- <aside class="related">
13
- <h3>Related posts</h3>
14
- <ul class="related-posts">
15
- {% for post in site.related_posts limit:3 %}
16
- <li>
17
- <a href="{{ site.baseurl }}{{ post.url }}">
18
- {{ post.title }}
19
- <small><time datetime="{{ post.date | date_to_xmlschema }}">{{ post.date | date_to_string }}</time></small>
20
- </a>
21
- </li>
22
- {% endfor %}
23
- </ul>
24
- </aside>
25
- {% endif %}
1
+ ---
2
+ layout: default
3
+ ---
4
+
5
+ <article class="post">
6
+ <h1 class="post-title">{{ page.title }}</h1>
7
+ <time datetime="{{ page.date | date_to_xmlschema }}" class="post-date">{{ page.date | date_to_string }}</time>
8
+ {{ content }}
9
+ </article>
10
+
11
+ {% if site.related_posts != empty %}
12
+ <aside class="related">
13
+ <h3>Related posts</h3>
14
+ <ul class="related-posts">
15
+ {% for post in site.related_posts limit:3 %}
16
+ <li>
17
+ <a href="{{ site.baseurl }}{{ post.url }}">
18
+ {{ post.title }}
19
+ <small><time datetime="{{ post.date | date_to_xmlschema }}">{{ post.date | date_to_string }}</time></small>
20
+ </a>
21
+ </li>
22
+ {% endfor %}
23
+ </ul>
24
+ </aside>
25
+ {% endif %}
data/_sass/_base.scss CHANGED
@@ -1,91 +1,91 @@
1
- // Body resets
2
- //
3
- // Update the foundational and global aspects of the page.
4
-
5
- * {
6
- -webkit-box-sizing: border-box;
7
- -moz-box-sizing: border-box;
8
- box-sizing: border-box;
9
- }
10
-
11
- html,
12
- body {
13
- margin: 0;
14
- padding: 0;
15
- }
16
-
17
- html {
18
- font-family: $root-font-family;
19
- font-size: $root-font-size;
20
- line-height: $root-line-height;
21
-
22
- @media (min-width: $large-breakpoint) {
23
- font-size: $large-font-size;
24
- }
25
- }
26
-
27
- body {
28
- color: $body-color;
29
- background-color: $body-bg;
30
- -webkit-text-size-adjust: 100%;
31
- -ms-text-size-adjust: 100%;
32
-
33
- @media (prefers-color-scheme: dark) {
34
- color: $body-color-dark;
35
- background-color: $body-bg-dark;
36
- }
37
- }
38
-
39
- // No `:visited` state is required by default (browsers will use `a`)
40
- a {
41
- color: $link-color;
42
- text-decoration: none;
43
-
44
- // `:focus` is linked to `:hover` for basic accessibility
45
- &:hover,
46
- &:focus {
47
- text-decoration: underline;
48
- }
49
-
50
- strong {
51
- color: inherit;
52
- }
53
- }
54
-
55
- img {
56
- display: block;
57
- max-width: 100%;
58
- margin: 0 0 1rem;
59
- border-radius: 5px;
60
- }
61
-
62
- table {
63
- margin-bottom: 1rem;
64
- width: 100%;
65
- font-size: 85%;
66
- border: 1px solid #e5e5e5;
67
- border-collapse: collapse;
68
- }
69
-
70
- td,
71
- th {
72
- padding: .25rem .5rem;
73
- border: 1px solid #e5e5e5;
74
-
75
- @media (prefers-color-scheme: dark) {
76
- border: 1px solid #898989;
77
- }
78
- }
79
-
80
- th {
81
- text-align: left;
82
- }
83
-
84
- tbody tr:nth-child(odd) td,
85
- tbody tr:nth-child(odd) th {
86
- background-color: #f9f9f9;
87
-
88
- @media (prefers-color-scheme: dark) {
89
- background-color: #2d2d2d;
90
- }
91
- }
1
+ // Body resets
2
+ //
3
+ // Update the foundational and global aspects of the page.
4
+
5
+ * {
6
+ -webkit-box-sizing: border-box;
7
+ -moz-box-sizing: border-box;
8
+ box-sizing: border-box;
9
+ }
10
+
11
+ html,
12
+ body {
13
+ margin: 0;
14
+ padding: 0;
15
+ }
16
+
17
+ html {
18
+ font-family: $root-font-family;
19
+ font-size: $root-font-size;
20
+ line-height: $root-line-height;
21
+
22
+ @media (min-width: $large-breakpoint) {
23
+ font-size: $large-font-size;
24
+ }
25
+ }
26
+
27
+ body {
28
+ color: $body-color;
29
+ background-color: $body-bg;
30
+ -webkit-text-size-adjust: 100%;
31
+ -ms-text-size-adjust: 100%;
32
+
33
+ @media (prefers-color-scheme: dark) {
34
+ color: $body-color-dark;
35
+ background-color: $body-bg-dark;
36
+ }
37
+ }
38
+
39
+ // No `:visited` state is required by default (browsers will use `a`)
40
+ a {
41
+ color: $link-color;
42
+ text-decoration: none;
43
+
44
+ // `:focus` is linked to `:hover` for basic accessibility
45
+ &:hover,
46
+ &:focus {
47
+ text-decoration: underline;
48
+ }
49
+
50
+ strong {
51
+ color: inherit;
52
+ }
53
+ }
54
+
55
+ img {
56
+ display: block;
57
+ max-width: 100%;
58
+ margin: 0 0 1rem;
59
+ border-radius: 5px;
60
+ }
61
+
62
+ table {
63
+ margin-bottom: 1rem;
64
+ width: 100%;
65
+ font-size: 85%;
66
+ border: 1px solid $border-color;
67
+ border-collapse: collapse;
68
+ }
69
+
70
+ td,
71
+ th {
72
+ padding: .25rem .5rem;
73
+ border: 1px solid $border-color;
74
+
75
+ @media (prefers-color-scheme: dark) {
76
+ border: 1px solid $gray-9;
77
+ }
78
+ }
79
+
80
+ th {
81
+ text-align: left;
82
+ }
83
+
84
+ tbody tr:nth-child(odd) td,
85
+ tbody tr:nth-child(odd) th {
86
+ background-color: $gray-1;
87
+
88
+ @media (prefers-color-scheme: dark) {
89
+ background-color: #2d2d2d;
90
+ }
91
+ }
data/_sass/_code.scss CHANGED
@@ -1,76 +1,75 @@
1
- // Code
2
- //
3
- // Inline and block-level code snippets. Includes tweaks to syntax highlighted
4
- // snippets from Pygments/Rouge and Gist embeds.
5
-
6
- code,
7
- pre {
8
- font-family: $code-font-family;
9
- }
10
-
11
- code {
12
- font-size: 70%;
13
- }
14
-
15
- pre {
16
- display: block;
17
- margin-top: 0;
18
- margin-bottom: 1rem;
19
- overflow: auto;
20
- }
21
-
22
- .highlighter-rouge {
23
- padding: 3px 4px;
24
- border: 1px solid #1ba77e;
25
- border-radius: 6px;
26
- background-color: #eee;
27
- color: #1ba77e;
28
- white-space: nowrap;
29
- font-size: 85%;
30
-
31
- @media (prefers-color-scheme: dark) {
32
- background-color: #202020;
33
- color: #1ba77e;
34
- }
35
-
36
- .highlight {
37
- padding: 1rem;
38
- margin-bottom: 1rem;
39
- background-color: #f9f9f9;
40
- border-radius: .25rem;
41
-
42
- pre {
43
- margin-bottom: 0;
44
- }
45
- }
46
-
47
- // Triple backticks (code fencing) doubles the .highlight elements
48
- .highlight {
49
- padding: 0;
50
- }
51
- }
52
-
53
- .rouge-table {
54
- margin-bottom: 0;
55
- font-size: 100%;
56
-
57
- &,
58
- td,
59
- th {
60
- border: 0;
61
- }
62
-
63
- .gutter {
64
- color: rgba(0,0,0,.25);
65
- vertical-align: top;
66
- // Make sure numbers aren't selectable
67
- -webkit-user-select: none;
68
- -ms-user-select: none;
69
- user-select: none;
70
- }
71
- }
72
-
73
- // Gist via GitHub Pages
74
- .gist .markdown-body {
75
- padding: 15px !important;
76
- }
1
+ // Code
2
+ //
3
+ // Inline and block-level code snippets. Includes tweaks to syntax highlighted
4
+ // snippets from Pygments/Rouge and Gist embeds.
5
+
6
+ code,
7
+ pre {
8
+ font-family: $code-font-family;
9
+ }
10
+
11
+ code {
12
+ font-size: 70%;
13
+ }
14
+
15
+ pre {
16
+ display: block;
17
+ margin-top: 0;
18
+ margin-bottom: 1rem;
19
+ overflow: auto;
20
+ }
21
+
22
+ .highlighter-rouge {
23
+ padding: 3px 4px;
24
+ border: 1px solid $green;
25
+ border-radius: 6px;
26
+ background-color: #eee;
27
+ color: $green;
28
+ white-space: nowrap;
29
+ font-size: 85%;
30
+
31
+ @media (prefers-color-scheme: dark) {
32
+ background-color: #202020;
33
+ }
34
+
35
+ .highlight {
36
+ padding: 1rem;
37
+ margin-bottom: 1rem;
38
+ background-color: $gray-1;
39
+ border-radius: .25rem;
40
+
41
+ pre {
42
+ margin-bottom: 0;
43
+ }
44
+ }
45
+
46
+ // Triple backticks (code fencing) doubles the .highlight elements
47
+ .highlight {
48
+ padding: 0;
49
+ }
50
+ }
51
+
52
+ .rouge-table {
53
+ margin-bottom: 0;
54
+ font-size: 100%;
55
+
56
+ &,
57
+ td,
58
+ th {
59
+ border: 0;
60
+ }
61
+
62
+ .gutter {
63
+ color: rgba(0,0,0,.25);
64
+ vertical-align: top;
65
+ // Make sure numbers aren't selectable
66
+ -webkit-user-select: none;
67
+ -ms-user-select: none;
68
+ user-select: none;
69
+ }
70
+ }
71
+
72
+ // Gist via GitHub Pages
73
+ .gist .markdown-body {
74
+ padding: 15px !important;
75
+ }