mere-blog-theme 0.1.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (84) hide show
  1. checksums.yaml +7 -0
  2. data/LICENSE.txt +21 -0
  3. data/README.md +98 -0
  4. data/_includes/google-analytics.html +8 -0
  5. data/_includes/head-scripts.html +0 -0
  6. data/_includes/head.html +13 -0
  7. data/_includes/hero.html +8 -0
  8. data/_includes/navbar.html +19 -0
  9. data/_includes/pagination.html +23 -0
  10. data/_includes/post-item.html +17 -0
  11. data/_layouts/blog.html +19 -0
  12. data/_layouts/default.html +21 -0
  13. data/_layouts/homepage.html +26 -0
  14. data/_layouts/page.html +5 -0
  15. data/_layouts/post.html +14 -0
  16. data/_sass/_layout.scss +25 -0
  17. data/_sass/_main.scss +38 -0
  18. data/_sass/syntax.scss +209 -0
  19. data/assets/css/app.scss +5 -0
  20. data/assets/js/app.js +25 -0
  21. data/node_modules/bulma/CHANGELOG.md +1254 -0
  22. data/node_modules/bulma/LICENSE +21 -0
  23. data/node_modules/bulma/README.md +124 -0
  24. data/node_modules/bulma/bulma.sass +9 -0
  25. data/node_modules/bulma/css/bulma.css +10599 -0
  26. data/node_modules/bulma/css/bulma.css.map +1 -0
  27. data/node_modules/bulma/css/bulma.min.css +1 -0
  28. data/node_modules/bulma/package.json +78 -0
  29. data/node_modules/bulma/sass/base/_all.sass +5 -0
  30. data/node_modules/bulma/sass/base/generic.sass +142 -0
  31. data/node_modules/bulma/sass/base/helpers.sass +281 -0
  32. data/node_modules/bulma/sass/base/minireset.sass +85 -0
  33. data/node_modules/bulma/sass/components/_all.sass +15 -0
  34. data/node_modules/bulma/sass/components/breadcrumb.sass +75 -0
  35. data/node_modules/bulma/sass/components/card.sass +79 -0
  36. data/node_modules/bulma/sass/components/dropdown.sass +81 -0
  37. data/node_modules/bulma/sass/components/level.sass +77 -0
  38. data/node_modules/bulma/sass/components/list.sass +39 -0
  39. data/node_modules/bulma/sass/components/media.sass +48 -0
  40. data/node_modules/bulma/sass/components/menu.sass +57 -0
  41. data/node_modules/bulma/sass/components/message.sass +87 -0
  42. data/node_modules/bulma/sass/components/modal.sass +113 -0
  43. data/node_modules/bulma/sass/components/navbar.sass +443 -0
  44. data/node_modules/bulma/sass/components/pagination.sass +149 -0
  45. data/node_modules/bulma/sass/components/panel.sass +103 -0
  46. data/node_modules/bulma/sass/components/tabs.sass +151 -0
  47. data/node_modules/bulma/sass/elements/_all.sass +15 -0
  48. data/node_modules/bulma/sass/elements/box.sass +24 -0
  49. data/node_modules/bulma/sass/elements/button.sass +305 -0
  50. data/node_modules/bulma/sass/elements/container.sass +23 -0
  51. data/node_modules/bulma/sass/elements/content.sass +155 -0
  52. data/node_modules/bulma/sass/elements/form.sass +1 -0
  53. data/node_modules/bulma/sass/elements/icon.sass +21 -0
  54. data/node_modules/bulma/sass/elements/image.sass +69 -0
  55. data/node_modules/bulma/sass/elements/notification.sass +35 -0
  56. data/node_modules/bulma/sass/elements/other.sass +39 -0
  57. data/node_modules/bulma/sass/elements/progress.sass +67 -0
  58. data/node_modules/bulma/sass/elements/table.sass +127 -0
  59. data/node_modules/bulma/sass/elements/tag.sass +121 -0
  60. data/node_modules/bulma/sass/elements/title.sass +70 -0
  61. data/node_modules/bulma/sass/form/_all.sass +8 -0
  62. data/node_modules/bulma/sass/form/checkbox-radio.sass +21 -0
  63. data/node_modules/bulma/sass/form/file.sass +180 -0
  64. data/node_modules/bulma/sass/form/input-textarea.sass +60 -0
  65. data/node_modules/bulma/sass/form/select.sass +85 -0
  66. data/node_modules/bulma/sass/form/shared.sass +55 -0
  67. data/node_modules/bulma/sass/form/tools.sass +205 -0
  68. data/node_modules/bulma/sass/grid/_all.sass +4 -0
  69. data/node_modules/bulma/sass/grid/columns.sass +504 -0
  70. data/node_modules/bulma/sass/grid/tiles.sass +34 -0
  71. data/node_modules/bulma/sass/layout/_all.sass +5 -0
  72. data/node_modules/bulma/sass/layout/footer.sass +9 -0
  73. data/node_modules/bulma/sass/layout/hero.sass +143 -0
  74. data/node_modules/bulma/sass/layout/section.sass +13 -0
  75. data/node_modules/bulma/sass/utilities/_all.sass +8 -0
  76. data/node_modules/bulma/sass/utilities/animations.sass +5 -0
  77. data/node_modules/bulma/sass/utilities/controls.sass +50 -0
  78. data/node_modules/bulma/sass/utilities/derived-variables.sass +85 -0
  79. data/node_modules/bulma/sass/utilities/functions.sass +62 -0
  80. data/node_modules/bulma/sass/utilities/initial-variables.sass +76 -0
  81. data/node_modules/bulma/sass/utilities/mixins.sass +261 -0
  82. data/package-lock.json +13 -0
  83. data/package.json +17 -0
  84. metadata +253 -0
checksums.yaml ADDED
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA1:
3
+ metadata.gz: ac3dc3cceac4c520e7e6bafe2dafe03c728025ce
4
+ data.tar.gz: 6e76d01e7da2aeea836c23b4ca1b8d2979320bcf
5
+ SHA512:
6
+ metadata.gz: f6a38556e42a13ea666dec76cd04e5d397d0b5d75c47185ac70b0f727b25d43ad51f77145905f2cd0670303f69e78378d81c1b9d5e20eb4ebc86334f94cb2a1d
7
+ data.tar.gz: 984dc5239fc5df961256f2702bde910c9c5bb594a22c1387d9a5e84b82ac6695e5e3397c709c5861692f4321d0a80abbe41c5897461a031896013e93ab281235
data/LICENSE.txt ADDED
@@ -0,0 +1,21 @@
1
+ The MIT License (MIT)
2
+
3
+ Copyright (c) 2019 chrisrhymes
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,98 @@
1
+ # mere-blog-theme
2
+
3
+ Mere is a minimal and simple blog theme, and nothing more, for use with Jekyll and GitHub Pages. It has been built with the Bulma frontend framework.
4
+
5
+ It has a homepage which displays the latest 6 posts and a paginated blog page used to list out all blog posts.
6
+
7
+
8
+ ## Installation
9
+
10
+ Add this line to your Jekyll site's `Gemfile`:
11
+
12
+ ```ruby
13
+ gem "mere-blog-theme"
14
+ ```
15
+
16
+ And add this line to your Jekyll site's `_config.yml`:
17
+
18
+ ```yaml
19
+ theme: mere-blog-theme
20
+ ```
21
+
22
+ And then execute:
23
+
24
+ $ bundle
25
+
26
+ Or install it yourself as:
27
+
28
+ $ gem install mere-blog-theme
29
+
30
+ ## Usage
31
+
32
+ * [Blog Setup](#blog-setup)
33
+ * [Posts](#posts)
34
+ * [Homepage](#homepage)
35
+ * [Google Analytics](#google-analytics)
36
+
37
+ ### Blog Setup
38
+
39
+ Create a `blog` directory with an `index.html` file inside it. Set the front matter of the `blog/index.html` page with the layout of blog.
40
+
41
+ ```yaml
42
+ layout: blog
43
+ title: Blog
44
+ ```
45
+
46
+ Set the paginator up in the `_config.yml` file with the posts per page and the path to the blog.
47
+
48
+ ```yaml
49
+ paginate: 5
50
+ paginate_path: "/blog/page:num"
51
+ ```
52
+
53
+ ### Posts
54
+
55
+ Posts should be created in the _posts directory as per standard Jekyll usage. The frontmatter should contain the layout of post, the image to use in the header and the homepage / blog page, the title of the post and the author of the post. You can also set a subtitle for the post if you want to.
56
+
57
+ ```yaml
58
+ layout: post
59
+ title: First Post
60
+ image: /img/home.jpg
61
+ author: C.S. Rhymes
62
+ ```
63
+
64
+ Wide images will work best, with a minimum width of 1400px.
65
+
66
+ ### Homepage
67
+
68
+ Finally, configure the homepage by creating an `index.html` page and configure the frontmatter with the layout of homepage, the title, subtitle (optional) and the image. You can set the hero_height to is-large if you want to make the homepage header a bit larger.
69
+
70
+ ```yaml
71
+ layout: homepage
72
+ title: Mere Blog Theme
73
+ subtitle: This is the demo site for the Mere Blog Theme
74
+ image: /img/home.jpg
75
+ hero_height: is-large
76
+ ```
77
+
78
+ ### Google Analytics
79
+
80
+ To enable Google Analytics add `google_analytics: UA-xxxxxxxx` to your `_config.yml` replacing the UA-xxxxxxxx with your Google Analytics property.
81
+
82
+ ## Contributing
83
+
84
+ Bug reports and pull requests are welcome on GitHub at https://github.com/chrisrhymes/mere-blog-theme. 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.
85
+
86
+ ## Development
87
+
88
+ To set up your environment to develop this theme, run `bundle install`.
89
+
90
+ 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.
91
+
92
+ When your theme is released, only the files in `_layouts`, `_includes`, `_sass` and `assets` tracked with Git will be bundled.
93
+ To add a custom directory to your theme-gem, please edit the regexp in `mere-blog-theme.gemspec` accordingly.
94
+
95
+ ## License
96
+
97
+ The theme is available as open source under the terms of the [MIT License](https://opensource.org/licenses/MIT).
98
+
@@ -0,0 +1,8 @@
1
+ <script async src="https://www.googletagmanager.com/gtag/js?id={{ site.google_analytics }}"></script>
2
+ <script>
3
+ window['ga-disable-{{ site.google_analytics }}'] = window.doNotTrack === "1" || navigator.doNotTrack === "1" || navigator.doNotTrack === "yes" || navigator.msDoNotTrack === "1";
4
+ window.dataLayer = window.dataLayer || [];
5
+ function gtag(){dataLayer.push(arguments);}
6
+ gtag('js', new Date());
7
+ gtag('config', '{{ site.google_analytics }}');
8
+ </script>
File without changes
@@ -0,0 +1,13 @@
1
+ <head>
2
+ <meta charset="utf-8">
3
+ <meta name="viewport" content="width=device-width, initial-scale=1">
4
+ <title>{{ page.title }} - {{ site.title }}</title>
5
+ <link rel="stylesheet" href="{{ site.baseurl }}/assets/css/app.css">
6
+ <link rel="shortcut icon" type="image/png" href="{{ site.baseurl }}/favicon.png" />
7
+ <script defer src="https://use.fontawesome.com/releases/v5.3.1/js/all.js"></script>
8
+ {% seo %}
9
+ {%- if site.google_analytics -%}
10
+ {%- include google-analytics.html -%}
11
+ {%- endif -%}
12
+ {%- include head-scripts.html -%}
13
+ </head>
@@ -0,0 +1,8 @@
1
+ <section class="hero {% if page.hero_height %} {{ page.hero_height }} {% else %} is-medium {% endif %} is-bold is-dark" {% if page.image %} style="background: url('{{ page.image | prepend: site.baseurl }}') no-repeat center center; background-size: cover;" {% endif %}>
2
+ <div class="hero-body">
3
+ <div class="container">
4
+ <p class="title is-2">{{ page.title }}</p>
5
+ <p class="subtitle is-3">{{ page.subtitle }}</p>
6
+ </div>
7
+ </div>
8
+ </section>
@@ -0,0 +1,19 @@
1
+ <div class="navbar is-white">
2
+ <div class="container">
3
+ <div class="navbar-brand">
4
+ <a class="navbar-item" href="{{ site.baseurl }}/">
5
+ {{ site.title }}
6
+ </a>
7
+ <a role="button" class="navbar-burger burger" aria-label="menu" aria-expanded="false" data-target="navMenu">
8
+ <span aria-hidden="true"></span>
9
+ <span aria-hidden="true"></span>
10
+ <span aria-hidden="true"></span>
11
+ </a>
12
+ </div>
13
+ <div class="navbar-menu">
14
+ <div class="navbar-end">
15
+ <a class="navbar-item" href="{{ site.baseurl }}/blog/">Blog</a>
16
+ </div>
17
+ </div>
18
+ </div>
19
+ </div>
@@ -0,0 +1,23 @@
1
+ <nav class="pagination is-centered">
2
+ {% if paginator.previous_page %}
3
+ <a href="{{ site.baseurl }}{{ paginator.previous_page_path }}" class="pagination-previous is-info"><i class="fas fa-chevron-left"></i></a>
4
+ {% else %}
5
+ <p class="pagination-previous" disabled><i class="fas fa-chevron-left"></i></p>
6
+ {% endif %}
7
+ {% if paginator.next_page %}
8
+ <a href="{{ site.baseurl }}{{ paginator.next_page_path }}" class="pagination-next is-info"><i class="fas fa-chevron-right"></i></a>
9
+ {% else %}
10
+ <p class="pagination-next" disabled ><i class="fas fa-chevron-right"></i></p>
11
+ {% endif %}
12
+ <ul class="pagination-list">
13
+ {% for page in (1..paginator.total_pages) %}
14
+ {% if page == paginator.page %}
15
+ <li><a class="pagination-link is-current">{{ page }}</a></li>
16
+ {% elsif page == 1 %}
17
+ <li><a href="{{ paginator.previous_page_path | prepend: site.baseurl | replace: '//', '/' }}" class="pagination-link">{{ page }}</a></li>
18
+ {% else %}
19
+ <li><a href="{{ site.paginate_path | prepend: site.baseurl | replace: '//', '/' | replace: ':num', page }}" class="pagination-link">{{ page }}</a></li>
20
+ {% endif %}
21
+ {% endfor %}
22
+ </ul>
23
+ </nav>
@@ -0,0 +1,17 @@
1
+ <div class="card">
2
+ <div class="card-image">
3
+ <img src="{{ post.image | prepend: site.baseurl }}" alt="{{ post.title }}" width="100%">
4
+ </div>
5
+ <div class="card-content">
6
+ <div class="content">
7
+ <a href="{{ site.baseurl }}{{ post.url }}">
8
+ <p class="title is-4">{{ post.title}}</p>
9
+ </a>
10
+ <p class="subtitle is-6">Published {{ post.date | date: "%b %-d, %Y" }} by {{ post.author }}</p>
11
+ <p>{{ post.excerpt | strip_html | strip_newlines | truncate: 200 }}</p>
12
+ </div>
13
+ <div class="has-text-centered">
14
+ <a href="{{ site.baseurl }}{{ post.url }}" class="button is-dark is-fullwidth">Read more</a>
15
+ </div>
16
+ </div>
17
+ </div>
@@ -0,0 +1,19 @@
1
+ ---
2
+ layout: default
3
+ ---
4
+
5
+ {{ content }}
6
+
7
+ <div class="columns is-multiline">
8
+ <div class="column is-12">
9
+ {% include pagination.html %}
10
+ </div>
11
+ {% for post in paginator.posts %}
12
+ <div class="column is-12">
13
+ {% include post-item.html %}
14
+ </div>
15
+ {% endfor %}
16
+ <div class="column is-12">
17
+ {% include pagination.html %}
18
+ </div>
19
+ </div>
@@ -0,0 +1,21 @@
1
+ <!doctype html>
2
+ <html>
3
+ {% include head.html %}
4
+ <body>
5
+ {% include navbar.html %}
6
+ {% include hero.html %}
7
+ <section class="section">
8
+ <div class="container">
9
+ {{ content }}
10
+ </div>
11
+ </section>
12
+ <section class="section">
13
+ <div class="container">
14
+ <div class="has-text-centered">
15
+ <p>Theme built by <a href="https://www.csrhymes.com">C.S. Rhymes</a></p>
16
+ </div>
17
+ </div>
18
+ </section>
19
+ </body>
20
+ </html>
21
+
@@ -0,0 +1,26 @@
1
+ ---
2
+ layout: default
3
+ ---
4
+
5
+ <div class="content">
6
+ {{ content }}
7
+ </div>
8
+
9
+ <div class="columns is-multiline">
10
+ {% assign post_width = "6|6|12|4|4|4" | split: "|" %}
11
+ {% for post in site.posts limit:6 %}
12
+ <div class="column is-{{ post_width[forloop.index0] }}">
13
+ {% include post-item.html %}
14
+ </div>
15
+ {% endfor %}
16
+
17
+ <div class="column is-12">
18
+ <div class="columns is-centered">
19
+ <div class="column is-3">
20
+ <a class="button is-dark is-fullwidth" href="{{ site.baseurl }}/blog/">More</a>
21
+ </div>
22
+ </div>
23
+ </div>
24
+ </div>
25
+
26
+
@@ -0,0 +1,5 @@
1
+ ---
2
+ layout: default
3
+ ---
4
+
5
+ {{ content }}
@@ -0,0 +1,14 @@
1
+ ---
2
+ layout: default
3
+ ---
4
+
5
+ <div class="content">
6
+ <p>Published: {{ page.date | date: "%b %-d, %Y" }} by {{ page.author }}</p>
7
+ {{ content }}
8
+ </div>
9
+
10
+ <div class="tags">
11
+ {% for tag in page.tags %}
12
+ <span class="tag is-primary">{{ tag }}</span>
13
+ {% endfor %}
14
+ </div>
@@ -0,0 +1,25 @@
1
+ .content {
2
+ ul.pagination-list {
3
+ list-style: none;
4
+ margin-left: 0;
5
+ margin-top: 0;
6
+
7
+ li+li {
8
+ margin-top: 0;
9
+ }
10
+ }
11
+ }
12
+
13
+ div.highlight {
14
+ margin-bottom: 1rem;
15
+ }
16
+
17
+ @include desktop {
18
+ .navbar-item {
19
+ &.is-hoverable:hover {
20
+ .navbar-dropdown {
21
+ display: block;
22
+ }
23
+ }
24
+ }
25
+ }
data/_sass/_main.scss ADDED
@@ -0,0 +1,38 @@
1
+ @charset "utf-8";
2
+
3
+ // Fonts
4
+ @import url('https://fonts.googleapis.com/css?family=Open+Sans|Righteous&display=swap');
5
+ $family-sans-serif: 'Open Sans', sans-serif;
6
+ $family-serif: 'Righteous', cursive;
7
+ $family-primary: $family-sans-serif;
8
+ $family-secondary: $family-serif;
9
+ $title-family: $family-secondary;
10
+ h1, h2, h3, h4, h5, h6 {
11
+ font-family: $family-secondary;
12
+ }
13
+
14
+ // Colours
15
+ $primary: #4fa6a3 !default;
16
+ $dark: #363636;
17
+ $light: #f6f6f6;
18
+ $white: #ffffff;
19
+
20
+ //Cards
21
+ $card-shadow: none;
22
+ $card-footer-border-top: none;
23
+ $card-background-color: $light;
24
+
25
+ // Pagination
26
+ $pagination-focus-border-color: $dark;
27
+ $pagination-current-color: $white;
28
+ $pagination-current-background-color: $dark;
29
+ $pagination-current-border-color: $dark;
30
+
31
+ // Radius
32
+ $radius: 0;
33
+ $radius-large: 0;
34
+ $radius-small: 0;
35
+
36
+ @import "../node_modules/bulma/bulma.sass";
37
+ @import "layout";
38
+ @import "syntax";
data/_sass/syntax.scss ADDED
@@ -0,0 +1,209 @@
1
+ .highlight table td { padding: 5px; }
2
+ .highlight table pre { margin: 0; }
3
+ .highlight .cm {
4
+ color: #999988;
5
+ font-style: italic;
6
+ }
7
+ .highlight .cp {
8
+ color: #999999;
9
+ font-weight: bold;
10
+ }
11
+ .highlight .c1 {
12
+ color: #999988;
13
+ font-style: italic;
14
+ }
15
+ .highlight .cs {
16
+ color: #999999;
17
+ font-weight: bold;
18
+ font-style: italic;
19
+ }
20
+ .highlight .c, .highlight .cd {
21
+ color: #999988;
22
+ font-style: italic;
23
+ }
24
+ .highlight .err {
25
+ color: #a61717;
26
+ background-color: #e3d2d2;
27
+ }
28
+ .highlight .gd {
29
+ color: #000000;
30
+ background-color: #ffdddd;
31
+ }
32
+ .highlight .ge {
33
+ color: #000000;
34
+ font-style: italic;
35
+ }
36
+ .highlight .gr {
37
+ color: #aa0000;
38
+ }
39
+ .highlight .gh {
40
+ color: #999999;
41
+ }
42
+ .highlight .gi {
43
+ color: #000000;
44
+ background-color: #ddffdd;
45
+ }
46
+ .highlight .go {
47
+ color: #888888;
48
+ }
49
+ .highlight .gp {
50
+ color: #555555;
51
+ }
52
+ .highlight .gs {
53
+ font-weight: bold;
54
+ }
55
+ .highlight .gu {
56
+ color: #aaaaaa;
57
+ }
58
+ .highlight .gt {
59
+ color: #aa0000;
60
+ }
61
+ .highlight .kc {
62
+ color: #000000;
63
+ font-weight: bold;
64
+ }
65
+ .highlight .kd {
66
+ color: #000000;
67
+ font-weight: bold;
68
+ }
69
+ .highlight .kn {
70
+ color: #000000;
71
+ font-weight: bold;
72
+ }
73
+ .highlight .kp {
74
+ color: #000000;
75
+ font-weight: bold;
76
+ }
77
+ .highlight .kr {
78
+ color: #000000;
79
+ font-weight: bold;
80
+ }
81
+ .highlight .kt {
82
+ color: #445588;
83
+ font-weight: bold;
84
+ }
85
+ .highlight .k, .highlight .kv {
86
+ color: #000000;
87
+ font-weight: bold;
88
+ }
89
+ .highlight .mf {
90
+ color: #009999;
91
+ }
92
+ .highlight .mh {
93
+ color: #009999;
94
+ }
95
+ .highlight .il {
96
+ color: #009999;
97
+ }
98
+ .highlight .mi {
99
+ color: #009999;
100
+ }
101
+ .highlight .mo {
102
+ color: #009999;
103
+ }
104
+ .highlight .m, .highlight .mb, .highlight .mx {
105
+ color: #009999;
106
+ }
107
+ .highlight .sb {
108
+ color: #d14;
109
+ }
110
+ .highlight .sc {
111
+ color: #d14;
112
+ }
113
+ .highlight .sd {
114
+ color: #d14;
115
+ }
116
+ .highlight .s2 {
117
+ color: #d14;
118
+ }
119
+ .highlight .se {
120
+ color: #d14;
121
+ }
122
+ .highlight .sh {
123
+ color: #d14;
124
+ }
125
+ .highlight .si {
126
+ color: #d14;
127
+ }
128
+ .highlight .sx {
129
+ color: #d14;
130
+ }
131
+ .highlight .sr {
132
+ color: #009926;
133
+ }
134
+ .highlight .s1 {
135
+ color: #d14;
136
+ }
137
+ .highlight .ss {
138
+ color: #990073;
139
+ }
140
+ .highlight .s {
141
+ color: #d14;
142
+ }
143
+ .highlight .na {
144
+ color: #008080;
145
+ }
146
+ .highlight .bp {
147
+ color: #999999;
148
+ }
149
+ .highlight .nb {
150
+ color: #0086B3;
151
+ }
152
+ .highlight .nc {
153
+ color: #445588;
154
+ font-weight: bold;
155
+ }
156
+ .highlight .no {
157
+ color: #008080;
158
+ }
159
+ .highlight .nd {
160
+ color: #3c5d5d;
161
+ font-weight: bold;
162
+ }
163
+ .highlight .ni {
164
+ color: #800080;
165
+ }
166
+ .highlight .ne {
167
+ color: #990000;
168
+ font-weight: bold;
169
+ }
170
+ .highlight .nf {
171
+ color: #990000;
172
+ font-weight: bold;
173
+ }
174
+ .highlight .nl {
175
+ color: #990000;
176
+ font-weight: bold;
177
+ }
178
+ .highlight .nn {
179
+ color: #555555;
180
+ }
181
+ .highlight .nt {
182
+ color: #000080;
183
+ }
184
+ .highlight .vc {
185
+ color: #008080;
186
+ }
187
+ .highlight .vg {
188
+ color: #008080;
189
+ }
190
+ .highlight .vi {
191
+ color: #008080;
192
+ }
193
+ .highlight .nv {
194
+ color: #008080;
195
+ }
196
+ .highlight .ow {
197
+ color: #000000;
198
+ font-weight: bold;
199
+ }
200
+ .highlight .o {
201
+ color: #000000;
202
+ font-weight: bold;
203
+ }
204
+ .highlight .w {
205
+ color: #bbbbbb;
206
+ }
207
+ .highlight {
208
+ background-color: #f8f8f8;
209
+ }
@@ -0,0 +1,5 @@
1
+ ---
2
+ ---
3
+
4
+ // Import Main CSS file from theme
5
+ @import "main";
data/assets/js/app.js ADDED
@@ -0,0 +1,25 @@
1
+ document.addEventListener('DOMContentLoaded', () => {
2
+
3
+ // Get all "navbar-burger" elements
4
+ const $navbarBurgers = Array.prototype.slice.call(document.querySelectorAll('.navbar-burger'), 0);
5
+
6
+ // Check if there are any navbar burgers
7
+ if ($navbarBurgers.length > 0) {
8
+
9
+ // Add a click event on each of them
10
+ $navbarBurgers.forEach( el => {
11
+ el.addEventListener('click', () => {
12
+
13
+ // Get the target from the "data-target" attribute
14
+ const target = el.dataset.target;
15
+ const $target = document.getElementById(target);
16
+
17
+ // Toggle the "is-active" class on both the "navbar-burger" and the "navbar-menu"
18
+ el.classList.toggle('is-active');
19
+ $target.classList.toggle('is-active');
20
+
21
+ });
22
+ });
23
+ }
24
+
25
+ });